function hideFlash(toggle) {
 var flashLayer = document.getElementById("flashLayer");
 var gifLayer = document.getElementById("gifLayer");
 var ns = navigator.appName == "Netscape";
 var mac = navigator.userAgent.toLowerCase().indexOf("mac")!=-1?1:0;
 if(ns || mac) {
 if(fflag == 1) {
 if(toggle == 1) {
 if (flashLayer != null) flashLayer.style.display = "none";
 if (gifLayer != null) gifLayer.style.display = "block";
 } else {
 if (flashLayer != null) flashLayer.style.display = "block";
 if (gifLayer != null) gifLayer.style.display = "none";
 }
 }
 } else {
 if(fflag == 1) {
 if(toggle == 0) {
 if (flashLayer != null) flashLayer.style.display = "block";
 if (gifLayer != null) gifLayer.style.display = "none";
 }
 //else {
 // if (flashLayer != null) flashLayer.style.display = "none";
 // if (gifLayer != null) gifLayer.style.display = "block";
 //}
 }
 }

}

function FlashInstalled()
{
 result = false;

 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
 {
 result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
 }
 else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
 {
 // IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
 eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj) result = true; xObj = null; } catch (e) {}');
 }
 return result;
}

function FlashWrite(url,width,height)
{

 document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
 document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
 document.write(' WIDTH=' + width + ' HEIGHT=' + height + '>');
 document.write('<PARAM NAME=movie VALUE="' + url + '"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><PARAM NAME=wmode VALUE=transparent>');
 document.write('<EMBED src="' + url + '" quality=high bgcolor=#FFFFFF ');
 document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
 document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
 document.write('</EMBED></OBJECT>');
}
