var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-2)) >= 10 || parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
	document.write('</SCR'+'IPT\> \n');
}
if ( plugin ) {
	adFlashCode =' <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	adFlashCode +=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	adFlashCode +=' ID="kioskleft" WIDTH='+leftWidth+' HEIGHT='+leftHeight+'>';
	adFlashCode +=' <PARAM NAME=movie VALUE="'+leftSWFurl+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=exactfit> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE=window> <PARAM NAME=bgcolor VALUE=#'+leftBkgCol+'> <PARAM NAME=FlashVars VALUE='+leftVars+'> <PARAM NAME=AllowScriptAccess VALUE=always> '; 
	adFlashCode +=' <EMBED src="'+leftSWFurl+'" name="kioskleft" menu=false quality=high scale=exactfit salign=LT wmode=window bgcolor=#'+leftBkgCol+' swLiveConnect=FALSE WIDTH='+leftWidth+' HEIGHT='+leftHeight+' FlashVars='+leftVars;
	adFlashCode +=' AllowScriptAccess=always TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>';
	document.write(adFlashCode);
}
function newContent(url) {
	window.frames['kioskcontent'].location = url;
}
