<!-- 
// this should work for all versions of flash from version 3 (and higher)
var reqdVersion = "8";
//  ^^^^^^^^^^^^^^^ important!!
var flashInstalled = false;
var browserName = navigator.appName
var browserVersion = navigator.appVersion
var browserVersionNum = parseFloat(browserVersion)
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;

if (isIE && isWin) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash."+reqdVersion))) \n');
	document.write('</SCR' + 'IPT\> \n');
}

function detectFlash(){	
  if (isIE && isWin) {
    return flashInstalled;
  }
	else if (navigator.plugins){							
		if (navigator.plugins["Shockwave Flash"]) {
			var flashDescription = navigator.plugins["Shockwave Flash"].description;
			var flashVersion = parseInt(flashDescription.substr(flashDescription.indexOf(".") - 2));

			flashInstalled = (flashVersion >= reqdVersion);
			return flashInstalled;
		}
	}
	return false;
}
function outputflash(objid,swffile,width,height,params) {
  // Write the flash object into the page as long as the user's browser has the reqdVersion or higher installed.
  if (detectFlash()) {
    whtml =  "<object";
    whtml += " type='application/x-shockwave-flash'";
    whtml += " data='"+swffile+"'";
    whtml += " pluginspage='http://www.macromedia.com/go/getflashplayer'";
    whtml += " width='"+width+"'";
    whtml += " height='"+height+"'";
    whtml += ">";
    whtml += "<param name='movie' value='"+swffile+"'>";
    pars = params.split(";");
    for (var i=0;i<pars.length;i++) {
      keyval = pars[i].split("=");
      whtml += "<param name='"+keyval[0]+"' ";
      keyval.shift();
      whtml += "value='"+keyval.join("=")+"'>";
    }
    whtml += "</object>";
    document.getElementById(objid).innerHTML = whtml;
    document.getElementById(objid).id = objid+"_swf";
  }
}
//-->