var hasFlash, unableToDetect;



// The URLs below are set to null.asp, as we have modified the MM_FlashDispatch function 
// to ignore the redirects and just set the hasFlash and unableToDetect variables

MM_FlashDispatch(
	"null.asp",							// URL of document containing Flash content
	flashVersion,	// Version of Flash software used to author content							
	false,									// Don't require latest revision of player
	"null.asp",							// Document to load if player must be upgraded and automated updating is not supported
	false,									// Don't install if player is not installed
	"null.asp",							// Document to load if 'install' is true and automated installation is not supported				
	"null.asp",							// Document to load if 'install' is false
	false,									// Don't set the PLUGINSPAGE attribute to 'installURL'
	true										// Don't disable auto-install
);

function DisplayFlashMovie(blnHasFlash,strFileName,strLink,strQueryString,blnShowAlternativeImage,intWidthInPixels,intHeightInPixels,strQuality,blnUpgradeFlash,strRedirect) {

a=arguments;
popUpLink=a[9]||false;

		if(blnHasFlash){
	
		var datToday = new Date;
		var strDate = datToday.getTime();
		
		document.write("<object tabindex=\"-1\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
		if (blnUpgradeFlash) document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" ")
		document.write("width=\""+intWidthInPixels+"\" height=\""+intHeightInPixels+"\"><param name=movie value=\"");
		document.write(strFileName + "&date=" + strDate);
		document.write("&java=true");		
		if (popUpLink) {document.write("&target=" + popUpLink);}
		if (strLink != "") document.write("&link=" + strLink);
		if (strQueryString != "") document.write("&" + strQueryString);
		document.write("\"><param name=\"quality\" value=\""+strQuality+"\">");
		document.write("<param name=\"wmode\" value=\"opaque\">");
		document.write("<embed src=\"" + strFileName + "&date=" + strDate);
		document.write("&java=true");		
		if (popUpLink) {document.write("&target=" + popUpLink);}
		if (strLink != "") document.write("&link=" + strLink);
		if (strQueryString != "") document.write("&" + strQueryString);
		document.write("\" quality=\""+strQuality+"\" wmode=\"opaque\" ");
		if (blnUpgradeFlash) document.write("pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ") 
		document.write("type=\"application/x-shockwave-flash\" width=\""+intWidthInPixels+"\" height=\""+intHeightInPixels+"\"></embed></object>");
	}
	else if (blnShowAlternativeImage) {
		if (strLink != "") {
		document.write("<a href=\""+ strLink + "\"")
						if (popUpLink) {
						document.write(" target=\"_blank\"")
						}
		document.write(" >");
		}
		document.write("<img src=\""+strFileName+".gif\" width=\"" + intWidthInPixels + "\" height=\"" + intHeightInPixels + "\" border=\"0\">");
		if (strLink != "") document.write("</a>");
	}
	else {
	window.location=strRedirect;
	}
}


function DisplayDemoFromFlash(blnHasFlash,strFileName,strLink,strQueryString,blnShowAlternativeImage,intWidthInPixels,intHeightInPixels,strQuality,blnUpgradeFlash) {

a=arguments;
popUpLink=a[9]||false;
flashLink=a[13]||false;

	if (blnHasFlash) {

		var datToday = new Date;
		var strDate = datToday.getTime();

		document.write("<object tabindex=\"-1\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
		if (blnUpgradeFlash) document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=<%=flashVersion%>,0,0,0\" ")
		document.write("width=\""+intWidthInPixels+"\" height=\""+intHeightInPixels+"\"><param name=movie value=\"");
		document.write(strFileName + ".swf?date=" + strDate);
		if (popUpLink) {document.write("&target=" + popUpLink);}
		if(flashLink){
			if (strLink != "") document.write("&link=" + strLink);
		}else{
			if (strLink != "") document.write("&page=" + strLink+ "&width=" + a[11] + "&height=" + a[12]);
		}
		if (strQueryString != "") document.write("&" + strQueryString);
		document.write("\"><param name=\"quality\" value=\""+strQuality+"\">");
		document.write("<param name=\"wmode\" value=\"opaque\">");
		document.write("<embed src=\"" + strFileName + ".swf?date=" + strDate);
		if (popUpLink) {document.write("&target=" + popUpLink);}
		if(flashLink){
			if (strLink != "") document.write("&link=" + strLink);
		}else{
			if (strLink != "") document.write("&page=" + strLink+ "&width=" + a[11] + "&height=" + a[12]);
		}
		if (strQueryString != "") document.write("&" + strQueryString);
		document.write("\" quality=\""+strQuality+"\" wmode=\"opaque\" ");
		if (blnUpgradeFlash) document.write("pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ") 
		document.write("type=\"application/x-shockwave-flash\" width=\""+intWidthInPixels+"\" height=\""+intHeightInPixels+"\"></embed></object>");
	}
	else if (blnShowAlternativeImage) {
		if (strLink != "") {
		document.write("<a href=\""+ strLink + "\"")
						if (popUpLink) {
						document.write(" target=\"_blank\"")
						}
		document.write(" >");
		}
		document.write("<img src=\""+strFileName+".gif\" width=\"" + intWidthInPixels + "\" height=\"" + intHeightInPixels + "\" border=\"0\">");
		if (strLink != "") document.write("</a>");
	}
}


function Launch(page,width,height) { 
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=" +width +",height="+ height); 
} 

