var agt=navigator.userAgent.toLowerCase();
var swf_plugin = 0;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] &&    
    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {

	var version_check = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
	var flash_ver = parseInt(version_check.description.substring(version_check.description.indexOf(".")-1))

	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && flash_ver > 5 )
		swf_plugin = 1;

}
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('<SCRIPT LANGUAGE=VBScript> \n');
		document.write('on error resume next \n');
		document.write('swf_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
		document.write('if ( swf_plugin <= 0 ) then swf_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
		document.write('</SCRIPT> \n');
}

var is_win = (agt.indexOf("windows") != -1);