/*
© Gil Disatnik (http://gil.disatnik.com)
*/

function msover(img1,ref1,img2,ref2)
        { document.images[img1].src = ref1; document.images[img2].src = ref2;}

function msout(img1,ref1,img2,ref2)
        { document.images[img1].src = ref1; document.images[img2].src = ref2; }

function msover2(img1,ref1)   { document.images[img1].src = ref1; }
function msout2(img1,ref1) {  document.images[img1].src = ref1; }


//************** TEXT COLLAPSE/EXPEND SCRIPT *******************
// Thanks to neatsun and Jumper from #javascript/efnet for helping me with the script (heck - they wrote it :).

function expandIt( span ){
	var expndObj = document.getElementById("expndSpan" + span);
	expndObj.style.display=expndObj.style.display!='block' ? 'block' : 'none';
}

function expandIt2( span ){
	var expndObj = document.getElementById("expndSpan" + span);
	if (typeof(lastobj)!="undefined"){
		if(lastobj==span){
			expndObj.style.display=expndObj.style.display!='block' ? 'block' : 'none';
		}
		else{
			expndObj.style.display=expndObj.style.display!='block' ? 'block' : 'none';
			collapseIt(lastobj);
		}
		lastobj=span;
	}
	else{
		lastobj=span;
		expndObj.style.display=expndObj.style.display!='block' ? 'block' : 'none';
	}
}


function collapseIt( span ){
	var expndObj = document.getElementById("expndSpan" + span);
	expndObj.style.display='none';
}

function justexpand( span ){
	var expndObj = document.getElementById("expndSpan" + span);
	expndObj.style.display='block';
}

function ToggleAll(){
	for(var i=1; i<=+howmuch; i++){
		expandIt( i );
	}
}
function ShowHighlighted(){
	for(var i=0; i<highlighted.length; i++){
		expandIt(highlighted[i]);
	}
}
function ShowPicture(PicFile){
	{document.all("preview").src ="/media/logos/" + document.forms(0).item(PicFile).value;}
}
