var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
		
	
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}



function placeflash(moviename,widd,hidd) {

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+widd+'" height="'+hidd+'">');
document.write('<param name="movie" value="'+moviename+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="'+moviename+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+widd+'" height="'+hidd+'" wmode="transparent" ></embed>');
document.write('</object>');

}


function swapimage(bit1,bit2) {
var objRef = document.getElementById(bit1);
objRef.style.backgroundImage="url("+bit2+")";

}


function swapimage2(bit1,bit2) {
var objRef = document.getElementById(bit1);
objRef.src=bit2;

}

function althome() {
 document.write("<div style='background:url(/images/noflash/homepic.jpg) left top no-repeat;width:750px;height:291px;display:block;'>&nbsp;</div>");
}


function swapimage(bit1,bit2) {
var objRef = document.getElementById(bit1);
objRef.src=bit2;

}


function writeflash(functionname,data) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="750" height="291">');
document.write('<param name="movie" value="'+functionname+'" />');
document.write('<PARAM NAME=FlashVars VALUE="datalocation='+data+'">');
document.write('<param name="quality" value="high" />');
document.write('<embed FlashVars="datalocation='+data+'" src='+functionname+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="291"></embed>');
document.write('</object>');
}

function writeflash2(functionname,data) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="543" height="291">');
document.write('<param name="movie" value="'+functionname+'" />');
document.write('<PARAM NAME=FlashVars VALUE="datalocation='+data+'">');
document.write('<param name="quality" value="high" />');
document.write('<embed FlashVars="datalocation='+data+'" src='+functionname+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="543" height="291"></embed>');
document.write('</object>');
}

function showinfo(bit) {
	
document.getElementById("dirtext1").style.textIndent="0";
document.getElementById("dirtext2").style.textIndent="0";
document.getElementById("dirtext3").style.textIndent="0";
document.getElementById("dirtext4").style.textIndent="0";
document.getElementById("dirtext5").style.textIndent="0";


document.getElementById("dirtext1").style.marginTop="0";
document.getElementById("dirtext2").style.marginTop="0";
document.getElementById("dirtext3").style.marginTop="0";
document.getElementById("dirtext4").style.marginTop="0";
document.getElementById("dirtext5").style.marginTop="0";


if (bit==1) {
document.getElementById("dirtext1").style.display="block";
document.getElementById("dirtext2").style.display="none";	
document.getElementById("dirtext3").style.display="none";	
document.getElementById("dirtext4").style.display="none";	
document.getElementById("dirtext5").style.display="none";
}

if (bit==2) {
document.getElementById("dirtext1").style.display="none";
document.getElementById("dirtext2").style.display="block";	
document.getElementById("dirtext3").style.display="none";	
document.getElementById("dirtext4").style.display="none";	
document.getElementById("dirtext5").style.display="none";
}

if (bit==3) {
document.getElementById("dirtext1").style.display="none";
document.getElementById("dirtext2").style.display="none";	
document.getElementById("dirtext3").style.display="block";	
document.getElementById("dirtext4").style.display="none";	
document.getElementById("dirtext5").style.display="none";
}

if (bit==4) {
document.getElementById("dirtext1").style.display="none";
document.getElementById("dirtext2").style.display="none";	
document.getElementById("dirtext3").style.display="none";	
document.getElementById("dirtext4").style.display="block";	
document.getElementById("dirtext5").style.display="none";
}

if (bit==5) {
document.getElementById("dirtext1").style.display="none";
document.getElementById("dirtext2").style.display="none";	
document.getElementById("dirtext3").style.display="none";	
document.getElementById("dirtext4").style.display="none";	
document.getElementById("dirtext5").style.display="block";
}


}



function popup(varbit) {
window.open (varbit,"mywindow","width=410,height=360,scrollbars=0,left=10,top=10");	
}