if(!String.prototype.trim)String.prototype.trim=function(){var a=/^\s*((?:.|\n)+?)\s*$/.exec(this);return a?a[1]:this.toString()};if(typeof document.getElementsByClassName=="undefined")document.getElementsByClassName=function(a){var b=document.all,c=[];a=RegExp("\\b"+a+"\\b","ig");for(var d=0;d<b.length;d++)if(b[d].className)if(b[d].className.search(a)!=-1)c[c.length]=b[d];return c};function _get(a){return document.getElementById?document.getElementById(a):null}window.onDOMComplete=[];
DOMSTATE=window.setInterval(function(){try{document.body.appendChild(document.createElement("DIV")).id="-layout-dummy";document.body.removeChild(document.getElementById("-layout-dummy")).id=""}catch(a){return}window.clearInterval(DOMSTATE);window.setTimeout(function(){for(var b=0;b<window.onDOMComplete.length;b++)window.onDOMComplete[b]()},500)},1);function smrAJAX(){this.enabled=true;this.ajaxId="ajaxLoader";this.objects=[];this.results=[]}
smrAJAX.prototype={createNewObject:function(a){var b;try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){try{b=new XMLHttpRequest}catch(e){this.enabled=false;return null}}}if(a)this.objects[a]=b;return this.objects[a]},query:function(a,b,c,d,e){this.ajaxLoader();c=c.toUpperCase();if(this.createNewObject(a)){dataString="ajax=1";for(i in d)dataString+="&"+i+"="+escape(d[i]);if(c=="POST"){this.objects[a].open("POST",b,true);this.objects[a].setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");this.objects[a].send(dataString)}else{this.objects[a].open("GET",b+(b.indexOf("?")==-1?"?":"&")+dataString,true);this.objects[a].send(null)}this.objects[a].onreadystatechange=function(){smrAJAX.handleRSC(a,e)}}},ajaxLoader:function(){},handleRSC:function(a,b){if(this.objects[a].readyState==4){AJAXOutput=this.objects[a].status==200?this.objects[a].responseText:"";eval(b)}}};function Virta(){this.browser={}}function Virta(){}
Virta.prototype={setOpacity:function(a,b){if(typeof a.style.KhtmlOpacity!="undefined")a.style.KhtmlOpacity=b;else if(typeof a.style.MozOpacity!="undefined")a.style.MozOpacity=b;else if(typeof a.filters!="undefined")a.style.filter="Alpha(Opacity='"+b*100+"');";else if(typeof a.style.opacity!="undefined")a.style.opacity=b},getPageSize:function(){if(self.innerHeight)return{width:self.innerWidth,height:self.innerHeight};else if(document.documentElement&&document.documentElement.clientHeight)return{width:document.documentElement.clientWidth,
height:document.documentElement.clientHeight};else if(document.body)return{width:document.body.clientWidth,height:document.body.clientHeight};return{width:0,height:0}},getPageScroll:function(){if(self.pageYOffset)return{x:self.pageXOffset,y:self.pageYOffset};else if(document.documentElement&&document.documentElement.scrollTop)return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop};else if(document.body)return{x:document.body.scrollLeft,y:document.body.scrollTop};return{x:0,
y:0}},getElementPos:function(a){var b=0,c=0;if(a.offsetParent){do{b+=a.offsetLeft;c+=a.offsetTop}while(a=a.offsetParent)}return{x:b,y:c}},createElement:function(a,b,c){a=document.createElement(a);if(b)for(key in b)if(key=="class")a.className=b[key];else if(key=="id")a.id=b[key];else a.setAttribute(key,b[key]);if(c)for(key in c)a.style[key]=c[key];return a},checkLength:function(a,b){if(a.length>b)a=a.substring(0,b);return a},displayError:function(a){if(_get("error-box")==null){this.getPageSize();var b=
this.createElement("DIV",{id:"error-box"},{marginTop:this.getPageScroll().y+"px"}).appendChild(this.createElement("DIV",{"class":"entry"}));b.innerHTML="<h1>\u041e\u0448\u0438\u0431\u043a\u0430</h1>"+a;a=b.appendChild(this.createElement("A",{title:"\u0437\u0430\u043a\u0440\u044b\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0435","class":"closer"}));a.href="javascript:void(0);";a.innerHTML="\u0437\u0430\u043a\u0440\u044b\u0442\u044c";
a.onclick=function(){document.body.removeChild(this.parentNode.parentNode)};document.body.appendChild(b.parentNode);return 0}},fade:function(a,b,c){var d=(new Date).getTime();setTimeout(function(){var e=((new Date).getTime()-d)/100;Virta.setOpacity(a,e>1?c:(c-b)*e+b);e<1&&setTimeout(arguments.callee,10)},10)},appear:function(a,b){if(b<1){b+=1-Math.sin(Math.acos(0.3));this.setOpacity(a,b);t=setTimeout(function(){Virta.appear(a,b)},30)}}};Virta=new Virta;smrAJAX=new smrAJAX;
