if((flashContentWidth==undefined)||(flashContentWidth<217))
	var flashContentWidth=217;
if((flashContentHeight==undefined)||(flashContentHeight<180))
	var flashContentHeight=180;
if(badgeDirectory==undefined)
	var badgeDirectory="media/flash/";
if(expressInstallDirectory==undefined)
	var expressInstallDirectory="media/flash/";
if(buttonColor==undefined)
	var buttonColor="000000";
if(messageColor==undefined)
	var messageColor="000000";
var hasProductInstall=DetectFlashVer(6,0,65);
var hasReqestedVersion=DetectFlashVer(requiredMajorVersion,requiredMinorVersion,requiredRevision);
if (hasProductInstall&&!hasReqestedVersion) {
	var MMPlayerType=(isIE==true)?"ActiveX":"PlugIn";
	var MMredirectURL=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";
	var MMdoctitle=document.title;AC_FL_RunContent(
			'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
			'width',flashContentWidth,
			'height',flashContentHeight,
			'id','detection',
			'align','middle',
			'src',expressInstallDirectory+'playerProductInstall',
			'quality','high',
			'bgcolor','#3A6EA5',
			'name','detectionExample','allowScriptAccess',
			'always','type',
			'application/x-shockwave-flash',
			'pluginspage','http://www.adobe.com/go/getflashplayer',
			'flashvars',
			'MMredirectURL='+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+'',
			'movie',expressInstallDirectory+'playerProductInstall')
} else if(hasReqestedVersion) {
	AC_FL_RunContent(
			'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
			'width',flashContentWidth,
			'height',flashContentHeight,
			'id','badge',
			'align','middle',
			'src',badgeDirectory+'badge',
			'quality','high',
			'bgcolor','#FFFFFF',
			'name','badge',
			'allowscriptaccess','all',
			'type','application/x-shockwave-flash',
			'pluginspage','http://www.macromedia.com/go/getflashplayer',
			'flashvars','appname='+escape(airApplicationName)+'&appurl='+airApplicationURL+'&airversion='+airVersion+'&imageurl='+airApplicationImage+'&buttoncolor='+buttonColor+'&messagecolor='+messageColor,'movie',badgeDirectory+'badge')
} else {
	var platform='unknown';
	var airLink='';
	if(typeof(window.navigator.platform)!=undefined){
		platform=window.navigator.platform.toLowerCase();
		if(platform.indexOf('win')!=-1)
			platform='win';
		else if(platform.indexOf('mac')!=-1)
			platform='mac'
	}
	if(platform=='win'){
		airLink='http://airdownload.adobe.com/air/win/download/1.0/AdobeAIRInstaller.exe'
	} else if(platform=='mac'){
		airLink='http://airdownload.adobe.com/air/mac/download/1.0/AdobeAIR.dmg'
	} else {
		airLink='http://www.adobe.com/go/getair/'
	}
	var alternateContent='<table id="messageTable"><tr><td>'+'This application requires the following be installed:<ol>'+'<li><a href="'+airLink+'">Adobe&#174; AIR&#8482; Runtime</a></li>'+'<li><a href="'+airApplicationURL+'">'+airApplicationName+'</a></li>'+'</ol>Please click on each link in the order above to complete the installation process.</td></tr></table></div>';
	document.write(alternateContent)
}