eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('4 h(b,c,d){1(3(b.5)!=\'6\'){b.5(c,d,j)}k 1(3(b.7)!=\'6\'){b.7(\'l\'+c,d)}k{2 f=\'q\'+c;2 g=\'l\'+c;1(3(b[f])==\'6\'){b[f]=[];1(3(b[g])!=\'6\'){b[f].m(b[g])}b[g]=4(e){2 a=r;n(2 i=0;a!=j&&i<b[f].o;i++){a=b[f][i](e)}s a}}b[f].m(d)}}4 t(){2 a=8.5||8.7?8:p.5?p:u;1(a){n(2 i=0;i<9.o;i++){1(\'4\'==3(9[i])){h(a,\'v\',9[i])}}}}',32,32,'|if|var|typeof|function|addEventListener|undefined|attachEvent|window|arguments||||||||addHandler||false|else|on|push|for|length|document|_handlerStack_|true|return|addOnLoadEvent|null|load'.split('|'),0,{}));
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h(9);c 9(){2(/j (5\\.5|6).+l/.7(m.n)){4 a=o.p(\'q\');4 b=/\\.8$/i;r(4 i=0;i<a.s;++i){2(b.7(a[i].t(\'3\'))){k=u;2(d(a[i])){k=e}}}}}c d(a){4 b;2(a.v==\'w\'){2(/\\.8$/.7(a.3)){b=a.3;a.3="/i/x.y"}}z{b=a.A.f.B(/C\\("(.+\\.8)"\\)/i);2(b){b=b[1];a.g.f="D"}}2(b){a.g.E="F:G.H.I(3=\'"+b+"\',J=\'K\')"}L e}',48,48,'||if|src|var|||test|png|initIMG|||function|fixPNG|true|backgroundImage|runtimeStyle|addOnLoadEvent||MSIE||Win|navigator|userAgent|document|getElementsByTagName|img|for|length|getAttribute|false|tagName|IMG|1x1|gif|else|currentStyle|match|url|none|filter|progid|DXImageTransform|Microsoft|AlphaImageLoader|sizingMethod|image|return'.split('|'),0,{})); // initIMGpng
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('r 7(){6 a=7.8[0];9(7.8[1]){6 w=7.8[1]}k{6 w=l.n-s}9(7.8[2]){6 h=7.8[2]}k{6 h=l.o-t}9(7.8[3]){6 b=7.8[3];9(b==\'u\'||b==\'1\'){w+=v}}k{6 b=\'j\'}9(7.8[4]){6 c=7.8[4]}k{6 c=\'j\'}9(7.8[5]){6 d=7.8[5]}k{6 e=\'x\'+p.y(p.z()*A)}6 f=(l.o-h)/2;6 g=(l.n-w)/2;6 i=\'B=j,C=j,D=j,E=j,F=j,G=\'+b+\',H=\'+c+\',I=\'+f+\',J=\'+g+\',n=\'+w+\',o=\'+h;m=K.L(a,e,i);9(m.q==M){m.q=N}m.O()}',51,51,'||||||var|w_open|arguments|if||||||||||no|else|screen|openedWindow|width|height|Math|opener|function|10|100|yes|17||wname|round|random|10000|toolbar|location|directories|status|menubar|scrollbars|resizable|top|left|window|open|null|self|focus'.split('|'),0,{})); // w_open

function msend ()
{
	var email;
	email = 'mois1'; 
	email = email + '@';
	email = email + 'mail.ru'; 
	window.location = "mailto:" + email;
}

function ShowMenuColumn(id, hd, l, bShow)
{
	var a = 1;
	if (bShow == 'a')
	{
		if ($.cookie(id) == "N")
			bShow = true;
		else
			bShow = false;
	} else if (bShow == 0)
	{
		a = 0;
		if ($.cookie(id) == "N")
			bShow = false;
		else
			bShow = true;

		$("#"+hd).css('cursor', 'pointer');
		$("#"+hd).bind("click", function(){ShowMenuColumn(id, hd, l, "a");});
	}

	$.cookie(id, bShow? "Y":"N", {expires: 365});
	s = bShow ? 'Y': 'N';
	var array = {'l': {'Y': '/i/be_built_objects.gif', 'N': '/i/be_built_objects_n.gif'}, 'r': {'Y': '/i/were_buit_objects.gif', 'N': '/i/were_buit_objects_n.gif'}};

	$("#"+hd).attr('src', array[l][s]);
	if (a != 0)
	{
		if (bShow)
			$("#"+id).BlindRight(500);
		else
			$("#"+id).BlindLeft(500);
	} else
	{
		$("#"+id).css('display', bShow ? "":"none");
	}
}

function showSub (item)
{
	var _sub = $("div.sub"+item.id);

	if (_sub.css('display') != 'none')
	{
		return true;
	} else
	{
		$.map($("div.lvl2"), function (i){if ($(i).css('display') != 'none') {$("a.active").removeClass ('active'); $(i).slideToggle(300);}});
		$(item).addClass ('active');
		_sub.BlindToggleVertically(1000);
		return false;
	}
}
 function hideSub ()
 {
	 $("div.lvl2").css ('display', 'none');
	 $("a.active").removeClass ('active');
 }
/*показываем сообщения по теме*/
function showSubReply (i)
{
	if (!$("div.s"+i.id).attr('name') || $("div.s"+i.id).attr('name') == 0)
	{
		$("div.s"+i.id).attr('name', 1);
		$("div.s"+i.id).BlindToggleVertically(1000, function()
		{
			$("div.s"+i.id).attr('name', 0);
			$(i).text($(i).text ()=="просмотр ответов" ? "свернуть ответы" : "просмотр ответов")
		});
	}
}
/*показываем форму комментариев*/
function showFormReply (i)
{
	if (!$("#form"+i.id).attr('name') || $("#form"+i.id).attr('name') == 0)
	{
		fr_id = i.id.substr(2, i.id.length);
		if ($("#form"+i.id).css('display') == 'none')
		{
			var form = $("#form").html();
			$("#form"+i.id).html(form);
			$("#form"+i.id).attr('name', 1);
			$(".ff:visible").BlindUp(500).html('');
			$("span.ot").text("ответить");
			$("[@id='_f0']").text("открыть новую тему");

			$("[@id='"+i.id+"']").text("свернуть форму");
			$("#form"+i.id+" input[@name='group']").attr('value', i.id.substr(2, i.id.length));
			if (i.id != '_f0')
			{
				$("#form"+i.id+" input[@name='titl']").parent().parent().remove();
				$(document.createElement('input')).attr({type: 'hidden', name:'titl', value: ' '}).prependTo("#form"+i.id+" form");
			}
			$("#form"+i.id).BlindDown(1000, function()
				{
					$("#form"+i.id).attr('name', 0);
					if ($.browser.msie)
					{
						b = document.getElementById("form"+i.id).offsetWidth;
						a = 65;
						x = 100 - 100*a/b
						$("#form"+i.id+" #form_table").css('width', x+"%");
					}
				});
		} else
		{
			$("[@id='"+i.id+"']").text( fr_id == 0 ? "открыть новую тему" : "ответить");
			$("#form"+i.id).BlindUp(1000, function()
				{
					$("#form"+i.id).attr('name', 0).html('');
				});
		}
	}
}

function showSwf(swf, vars, w, h)
{
if (/\.swf/.test(swf))
{
	if (showSwf.arguments[4]) 
	{
		var trans = showSwf.arguments[4];
	} else
	{
		var trans = 0;
	} 

document.write ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ w +'" height="'+ h +'" id="plan" align="middle">'
	+'<param name="allowScriptAccess" value="sameDomain" />'
	+'<param name="movie" value="'+ swf +'" />'
	+'<param name=FlashVars VALUE="'+ vars +'">'
	+(trans == 1 ? '<param name="wmode" value="transparent" />' : '')
	+'<param name="menu" value="false" />'
	+'<param name="quality" value="high" />'
	+'<param name="bgcolor" value="#ffffff" />'
	+'<embed src="'+ swf +'" FlashVars="'+ vars +'" menu="false" '+(trans == 1 ? 'wmode="transparent"' : '')+' quality="high" bgcolor="#ffffff" width="'+ w +'" height="'+ h +'" name="plan" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
+'</object>');
} else {
document.write('<img src="' + swf + '" width="' + w + '" height="' + h + '">');
}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
