function NeScoro(){			$("#left_menu").animate({"marginLeft":2000});		$("#right_menu").animate({"marginLeft":-600});		$("#head").animate({"marginTop":-400});		$("#content_container").animate({"marginTop":2000});		$("#bot_l").animate({"right":-400});					//setTimeout('$("#bbg").animate({"marginTop":2000});',500);									setTimeout('NeScoro1()',1000);}function NeScoro1(){	//$("body").text('тест');			$("#left_menu").css("display","none");		$("#right_menu").css("display","none");		$("#head").css("display","none");		$("#content_container").css("display","none");						$("#neskoro").animate({"opacity":"show"},900);}	function toggleMenu(type){	if(type=='static')	{		if($(".static").css('display')=='none'){			setTimeout('$(".static:invisible").toggle("bounce","fast")',1500);			$(".blog:visible").toggle("blind","fast");			setTimeout('$("#content_container").animate({"marginLeft":0})',1000);			setTimeout('$("#bbg").animate({"left":0})',1000);					}	}	else	{		if($(".blog").css('display')=='none'){			setTimeout('$(".blog:invisible").toggle("bounce","fast")',1500);		 	$(".static:visible").toggle("blind","fast");			setTimeout('$("#content_container").animate({"marginLeft":202})',1000);			setTimeout('$("#bbg").animate({"left":-900})',1000);		 	}	}}var Pages=new Array();function loadPage(pageId,pageType){		var pId=pageId+"___"+pageType;	if(Pages[pId])	{		toggleMenu(pageType);		$("#content").animate({right:Pages[pId]});		setTimeout('$("#loadS").css({display:"none"});$("body").css({"overflow":"auto"});',2000);			}	else	{		$("html").animate({"scrollTop":"0px"},0);		$("#loadS").css({'display':"block"});		$("body").css({'overflow':"hidden"});		$.get("loadPage.php",{type:pageType,id:pageId},function(data,status){						var oldW=parseInt($("#content").css("width"))+1200;			$("#content").css({"width":oldW});			$("#content").append("<div id='"+pId+"' class='page'>"+data+"</div>");			Pages[pId]=$("#"+pId)[0].offsetLeft;			loadPage(pageId,pageType);			$("a[rel=i]").each(function(){			$(this).unbind();			$(this).bind('click',function(){					setTimeout('parseUrl()',200);					})			});			});	}}function parseUrl(){//	alert(top.location.href);	var pageId='';	var pageType='';	var workUrl=top.location.href.split('#')[1];	if(!workUrl)	{		pageId='';		pageType='blog';	}	else	{		pageId=workUrl.split(':')[1];		pageType=workUrl.split(':')[0];		if(!pageId&&pageType=='blog') {pageType='blog'; pageId='list';}		if(!pageId&&pageType=='static') {pageType='static'; pageId='list';}	}	//alert(pageId+ " | "+ pageType);	loadPage(pageId,pageType);}$(function(){parseUrl();$("a[rel=i]").each(function(){	$(this).bind('click',function(){			setTimeout('parseUrl()',200);			})	});});
