with (navigator) if (appName.indexOf('Microsoft')!= -1 && appVersion.indexOf('Mac') == -1) document.write(''+
'<SCRIPT language="VBScript">\nOn error resume next\n'+
'flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))\n</SCRI'+'PT>');

function isFlashPlugin() {

	with (navigator)
	{   // IE on Win OS
		if (userAgent.indexOf("MSIE") != -1 &&
			userAgent.indexOf("Windows") != -1 &&
			userAgent.indexOf("Opera") == -1)
			return window.flash;
		// Others
		if (plugins['Shockwave Flash'])
		{
			plgIn = plugins['Shockwave Flash'].description
			return (parseInt(plgIn.substring(plgIn.indexOf(".") - 1)) >= 6);
		}
		return 0;
	}
}
function setCookie(name, record, path) {
	var expires = new Date();
	expires.setTime(expires.getTime() + (24*60*60*1000));
	document.cookie = name + "=" + record.toString() + "; expires=" + expires.toGMTString(); +
		((path) ? ("; path=" + path) : "; path=/");
}
function getCookie(name, type) {

	var cookieData = document.cookie;
	
	if ((cookieData.length != 0) && (cookieData.indexOf(name) != -1))
		if (type == 'int')
			return parseInt(cookieData.charAt(cookieData.indexOf(name) + (name.length + 1)));
		else
			return (cookieData.charAt(cookieData.indexOf(name) + (name.length + 1)));

	return 0;
}
function detectFlash(name) {

	var plugin = 0;

	if (!getCookie(name, 'int'))
	{
		(isFlashPlugin()) ? plugin = 1 : plugin = 0;
		setCookie(name, plugin);
	}
	else
		plugin = 1;

	if (!plugin)
		window.flash=0;
	else
	{
		var flashmode = 0;

		if (flashmode = getCookie('flashmode', null))
			window.flash = (flashmode == 'n') ? 0 : 1;
		else
			window.flash = 1;
	}
}
function setFlash (value)
{
	setCookie("flashmode", value);
	setCookie("flash", 1);
	/*
	if (getCookie('flash', 'int') != 0)
		setCookie("flashmode", value);
	else
		window.alert ("Требуется установить плагин flash");
	*/
	location.reload();
}
function over (mode, obj) {
	
	if (mode == 'on')
		obj.className = 'over';
	else
		obj.className = 'table.menu td';
}

detectFlash('flash');