//the document.write calls must be in a separate js file (not an included cfm) for the activeX fix to work
var swfName = "swf/mainImage.swf";
var swfWidth = 633;
var swfHeight = 135;
var swfObjectTagID = "mainImageSWF";

//all supporting functions are contained in flashInclude.cfm
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {	
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\"" + swfObjectTagID + "\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,29,0\" width=\"" + swfWidth + "\" height=\"" + swfHeight + "\">");
	document.write("<param name=\"movie\" value=\"" + swfName + "\">");
	document.write("<param name=\"quality\" value=\"high\">");
	document.write("<param name=\"wmode\" value=\"opaque\">");
	document.write("<embed src=\"" + swfName + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + swfWidth + "\" height=\"" + swfHeight + "\" wmode=\"opaque\"></embed>");
	document.write("</object>");
}else{
	//these variables are written in the view
	//writeStaticImage(staticImgName,staticImgAlt);
	document.write("<div id=\"noFlashContainer\"><p>You need to have Flash 7 or higher to view this content.</p><p><a href=\"http://www.adobe.com/go/getflashplayer\" target=\"_blank\">Download the latest Flash player here.</a></p></div>");
}


//<PARAM NAME=FlashVars VALUE="theLink=<cfoutput>#variables.linkToPass#</cfoutput>"> 