var theDiv;
var prevDiv = '';

function expandDiv(theDiv, theSWF, theVideo){
	if (prevDiv != ''){
	document.getElementById(prevDiv).style.display="none";
	document.getElementById(prevDiv).innerHTML = "";
	}


	document.getElementById(theDiv).style.display="block";
	document.getElementById(theDiv).innerHTML = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='650' height='400' name='"+theVideo+"'>"+
            "<param name='movie' value='http://www.semsynergy.com/"+theSWF+".swf?file="+theVideo+"' wmode='transparent'>"+
            "<param name='quality' value='high'>"+
			 "<param name='wmode' value='transparent'>"+
            "<embed src='http://www.semsynergy.com/"+theSWF+".swf?file="+theVideo+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='650' height='400'  name='"+theVideo+"'  wmode='transparent'></embed>"+
	      "</object>";

		  prevDiv = theDiv;

}

function closeDiv(theDiv){
	
	document.getElementById(theDiv).style.display="none";
	document.getElementById(theDiv).innerHTML = "";
}

function expandBib(){
	if (document.getElementById('bibArea').style.display!="block"){
		document.getElementById('bibArea').style.display="block";
	}
	else {
		document.getElementById('bibArea').style.display="none";
	}
}