// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)var hasProductInstall = DetectFlashVer(6, 0, 65);// Version check based upon the values entered in the framework settingsvar hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);// Location visited after installation is complete if installation is requiredvar MMredirectURL = window.location;// Stored value of document title used by the installation process to close the window that started the installation process// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete// DO NOT MODIFY THE FOLLOWING TWO LINESdocument.title = document.title.slice(0, 47) + " - Flash Player Installation";var MMdoctitle = document.title;var noFlashBgColor = "#8b8b8b";// if flash playback is forced by declaring ?forceflash=1 or if the requested version is detected, embed index.swfif (forceflash==1 || hasReqestedVersion) {    document.title = flashobjectdoctitle;	document.bgColor = bgcolor;	var openmain  = '<iframe id="history" name="history"></iframe> '	+ '<div id="flashobject"> '	+ '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' 	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ' 	+ 'WIDTH="100%" HEIGHT="100%"> '  	+ '<PARAM NAME="movie" VALUE="index.swf"> '  	+ '<PARAM NAME="bgcolor" VALUE="'+bgcolor+'"> '  	+ '<PARAM NAME="salign" VALUE="LT"> '  	+ '<PARAM NAME="scale" VALUE="noscale"> '  	+ '<PARAM NAME="FlashVars" VALUE="movieid=mymovie&qs='+page+'&lang='+lang+'"> '  	+ '<EMBED src="index.swf" bgcolor="'+bgcolor+'" width="100%" height="100%" name="mymovie" swLiveConnect="true" salign="LT" scale="noscale" '	+ '	type="application/x-shockwave-flash" pluginpage="http://www.macromedia.com/go/getflashplayer" FlashVars="movieid=mymovie&qs='+page+'&lang='+lang+'"> </EMBED> '	+ '</OBJECT> '	+ '</div>';    document.write(openmain);}// else if the requested version is not detected but the flash player is capable of auto-update, embed the Flash Product Installation SWFelse if ( hasProductInstall && !hasReqestedVersion ) {	document.bgColor = noFlashBgColor;	var autoupdate = '<div class="autoupdate">'  	+ ' <div class="autoupdate1">'	+ ' 	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'    + ' 	width="215" height="138"'    + ' 	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'    + ' 	<param name="movie" value="framework/detection/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'">'    + ' 	<param name="quality" value="high"><param name="bgcolor" value="#6c6c6c">'    + ' 	<embed src="framework/detection/playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#666666" '    + ' 	width="215" height="138" name="detectiontest" aligh="middle"'    + ' 	play="true"'    + ' 	loop="false"'    + ' 	allowScriptAccess="sameDomain"'    + ' 	type="application/x-shockwave-flash"'    + ' 	pluginspage="http://www.macromedia.com/go/getflashplayer">'    + ' 	<\/embed>'    + ' 	<\/object>' 	+ '  </div>'	+ '</div>';    document.write(autoupdate);} // else the flash player version is too old for auto-update or we can't detect the plugin, show manual update pageelse {	document.bgColor = noFlashBgColor;	document.title = noflashdoctitle;    var noflash = '<div class="noflash">'  	+ '<div class="noflash1">'	+ '	 <a href="http://www.macromedia.com/go/getflashplayer"><img src="media/framework/noflash1.jpg" width="165" height="69" border="0" alt="Get Flash Player!"></a>' 	+ '</div>'  	+ '<div class="noflash2">'	+ '	 <a href="?forceflash=1"><img src="media/framework/noflash2.jpg" width="165" height="69" border="0" alt="Launch Website"></a>' 	+ '</div>'	+ '</div>';    document.write(noflash);}