var get_ver;
var MM_contentVersion = 8;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//document.write(plugin);


function pluginchecker(){
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var fornum = 0; fornum < words.length; ++fornum)
	    {
		if (isNaN(parseInt(words[fornum])))
		continue;
		var MM_PluginVersion = words[fornum]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	//document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('get_ver=Left(Hex(Int(CreateObject("ShockwaveFlash.ShockwaveFlash").FlashVersion)),1)\n');
	document.write('</SCR' + 'IPT\> \n');
	//document.write(MM_FlashCanPlay);
	//document.write(get_ver);
	if(get_ver< MM_contentVersion){
	MM_FlashCanPlay=0;
	}else{
	MM_FlashCanPlay=1;
	}
}
//document.write("vvvv");
return MM_FlashCanPlay;
}
//document.write("<br>return:"+pluginchecker());


function flashwrite(){
AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '510',
			'height', '350',
			'src', 'topmovie',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'topmovie',
			'bgcolor', '#ffffff',
			'name', 'topmovie',
			'menu', 'true',
			'allowScriptAccess','sameDomain',
			'movie', 'topflash/topmovie',
			'FlashVars','myxml=topflash/movie.xml',
			'salign', ''
			); //end AC code
};