(function(){
function n(b){
	b=b+108E5;
	var a=new Date(b),c=a.getUTCMonth();
	if(c>2&&c<9)return b+36E5;
	if(c<2||c>9)return b;
	var e=a.getUTCDate();
	c=c===2;if(e<=24)return c?b:b+36E5;
	var d=a.getUTCDay();
	if(d===0)return a.getUTCHours()>=2?c?b+36E5:b:c?b:b+36E5;
	return e-d<=24?c?b:b+36E5:c?b+36E5:b
}
function o(b){
	b=new Date(b);
	var a=b.getUTCMonth()+1;
	if(a<10)a="0"+a;
	var c=b.getUTCDate();
	if(c<10)c="0"+c;
	var e=b.getUTCHours();
	if(e<10)e="0"+e;
	var d=b.getUTCMinutes();
	if(d<10)d="0"+d;
	return b.getUTCFullYear()+"."+a+"."+c+" "+e+":"+d
}
function p(b){
	var a=q.ru,c=f.createElement("div"),e,d;(e=c.style).display="inline-block";e.whiteSpace="pre";
	if(e=b.align){
		var h;d=f.createElement("a");
		d.target="_blank";d.href="/encicl/"+((h=parseInt(e))===50?"alchemist":"alignment")+".html";
		if(a=parseFloat(e)===7?a["7="]:a[h])d.title=a;
		a=f.createElement("img");
		a.src="/static/img/i/align"+e+".gif";
		a.width=12;a.height=15;a.border=0;
		d.appendChild(a);
		c.appendChild(d)
	}
	if(b.hasOwnProperty("clan")){
		e=b.clan;
		d=f.createElement("a");
		d.target="_blank";
		d.href="/clans_inf.php?"+e;
		d.title="Информация о клане "+e;
		a=f.createElement("img");
		a.src="/static/img/i/klan/"+e+".gif";
		a.width=24;
		a.height=15;
		a.border=0;
		d.appendChild(a);
		c.appendChild(d)
	}
	d=f.createElement("b");
	d.appendChild(f.createTextNode(e=b.login));
	c.appendChild(d);
	c.appendChild(f.createTextNode(" ["+b.level+"]"));
	d=f.createElement("a");d.target="_blank";
	d.href="/inf.php?"+b.id;
	d.title="Информация о "+e;
	a=f.createElement("img");a.src="/static/img/i/inf.gif";
	a.width=12;
	a.height=11;
	a.border=0;
	d.appendChild(a);
	c.appendChild(d);
	return c
}
function r(b,a,c){
	a=a;i||(i=j());g||(g=new i);
	switch(b){
		case "get":case "GET":if(c!=undefined)a+=c;
		g.open("GET",a,false);
		g.send();break;
		case "post":case "POST":g.open("POST",a,false);g.send(c);break
	}
	if((b=g.status)!==200)return parseInt(b,10);
	else{
		var e;
		try{
			var d=g.responseText;
			e=d.substring(0,2)==="//"?k(d.substring(2)):d=="undefined"?void 0:k(d)
		}
		catch(h){e=500}
		return e
	}
}
var f=document,l=window,q={ru:{"1":"Белое братство","2":"Хаос","3":"Темное братство","7=":"Нейтральное братство","7":"Орден Очищения Стихий","50":"Алхимики"}},k=typeof JSON==="object"&&JSON.parse?JSON.parse:
function(b){
	return eval("("+b+")")
},i,g,j=function(){
					j=undefined;
					var b;if(b=l.XMLHttpRequest)return b;if(b=l.ActiveXObject){
						var a;
						try{a=new b("MSxml2.XMLHTTP.6.0")}catch(c){}
						if(a){
							a=null;
							return function(){
								return new b("MSxml2.XMLHTTP.6.0")
							}
						}
						try{
							a=new b("MSxml2.XMLHTTP.3.0")
						}
						catch(e){}
						if(a){
						a=null;
						return function(){
							return new b("MSxml2.XMLHTTP.3.0")
						}
						}try{a=new b("MSxml2.XMLHTTP")}catch(d){}if(a){a=null;
						return function(){
						return new b("MSxml2.XMLHTTP")}}
						try{a=new b("Microsoft.XMLHTTP")}catch(h){}
						if(a){
							a=null;
							return function(){
								return new b("Microsoft.XMLHTTP")
							}
						}
					}
};
(
	function(b){
		var a=b.CombatsUI;
		a||(b.CombatsUI=a={});
		a.UTCMsec2Moscow=n;
		a.UTCMsec2PlainText=o;
		a.UserLink=p;
		a.SyncJSON=r;
		this.DLoad&&(new this.DLoad.pkg("CombatsUI")).use("LocalText").complete()
	}
)(this)})()