var flashversion = 8;
var myflashversion =0;

function detectFlash()
{
	
	
		var vNumber 
		var MM_contentVersion = flashversion;
		
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

		if ( plugin ) {

					var words = navigator.plugins["Shockwave Flash"].description.split(" ");
					for (var i = 0; i < words.length; ++i)
					{
					if (isNaN(parseInt(words[i])))
					continue;
					var MM_PluginVersion = words[i]; 
					}
					vNumber = MM_PluginVersion;
					var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
			
			}
			else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {

				try
				{
					var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
					vNumber =  parseInt(flash.GetVariable("$version").split(",")[0].split(" ")[1]);
					
				}
				catch(e)
				{
					vNumber=0;
				}
			
				if (vNumber >=MM_contentVersion){
					MM_FlashCanPlay=true
				}

				
				
			}


		writeHTML(MM_FlashCanPlay);

}


function writeHTML(MM_FlashCanPlay,src,detect)
{

	if ( (MM_FlashCanPlay) ) {
		var ePath = document.getElementById("entersite")
		ePath.style.height="181px"		
	} else{
		var dPath = document.getElementById("downloadflash")
		dPath.style.height="181px"	
		
	}
}


