function FlashInstalled()
{
result = false;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
{ result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;         }
else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
{ eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)        result = true; xObj = null;        } catch (e)        {}'); }
return result;
}

function FlashWrite(url,width,height,bgcolor)
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write('  WIDTH=' + width + ' HEIGHT=' + height + '>');
document.write(' <PARAM NAME=movie VALUE="' + url + '"> <PARAM NAME=quality VALUE=high>  <PARAM NAME=wmode VALUE=opaque>');
document.write(' <PARAM NAME=wmode VALUE=transparent>  ');
document.write(' <EMBED src="' + url + '" quality=high wmode=opaque bgcolor=' + bgcolor +'  ');
document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED></OBJECT>');
}

function showObject(obj) {obj.className = "visible"}
function hideObject(obj) {obj.className = "hidden"}

function setStyle(uid)
{
  hd01=document.getElementById(uid);
    hd01.style.display = "block";
}
function ResetStyle(uid)
{
  hd01=document.getElementById(uid);
    hd01.style.display = "none";
}

function show_div(d1,d2)
{
	document.getElementById(d1).style.display='block';
	document.getElementById(d2).style.display='none';
}
function UpdateMainInterWindow() {
	clearTimeout(flag_timer);
	flag_timer = setTimeout(function(){
		obj = jQuery('.frame ul.list li.active').next('li').find('a');
		if(jQuery(obj).html()==null) {
			obj = jQuery('.frame ul.list li:first a');
		}
		jQuery(obj).click();
		UpdateMainInterWindow();
	},5000);
}
var parse_str,flag_timer;
jQuery(document).ready(function() {
   parse_str = MP.ParseQueryString();
   if (parse_str['an'] == 'index') {
      MP.PaintDiv('#contentblockmain div[class=news],#contentblockmain div[class=bloglist]','gray', 'class');
      UpdateMainInterWindow();
      jQuery('.frame ul.list li a').bind('click',function(){UpdateMainInterWindow();});
   }

   liveinternet = 'http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl='+encodeURIComponent(window.location.href)+'&cntitle_win='+(unescape(document.title));
   jQuery(".liveinternet").html('<img src="http://i.li.ru/images/icons/16.gif" border="0">');
   jQuery(".liveinternet").attr('href',liveinternet);
   jQuery(".liveinternet").attr('title','Запостить на LiveInternet');
   jQuery(".liveinternet").attr('target','_blank');
}
)

