function flashDetect () {
	var Flash_contentVersion = 8;
	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 Flash_PluginVersion = words[i]; 
			}
		var FlashCanPlay = Flash_PluginVersion >= Flash_contentVersion;

		choose( FlashCanPlay );

	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('On Error resume next\n');
		document.write('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + Flash_contentVersion + ')))\n');
		document.write('choose( FlashCanPlay ) \n');
		document.write('<\/SCR' + 'IPT\> \n');
		
	}
}

function choose( MM_FlashCanPlay ) {
	noFlash('noFlash_menu', !MM_FlashCanPlay?'block':'none');
	noFlash('flash_menu', !MM_FlashCanPlay?'none':'block');

	noFlash('rightMenu_noflash', !MM_FlashCanPlay?'block':'none');
	noFlash('rightMenu_flash', !MM_FlashCanPlay?'none':'block');

	noFlash('noFlash_offers', !MM_FlashCanPlay?'block':'none');
	noFlash('flash_offers', !MM_FlashCanPlay?'none':'block');
}

function noFlash(id, type) {
	if (document.getElementById(id) !== null){
		document.getElementById(id).style.display = type;
	}
}

