var d=document,dyn=0,iebdy=0,nv=navigator,n=nv.userAgent.toLowerCase(),m=n.indexOf('msie'),i=m >=0&&n.indexOf('opera')==-1&&nv.vendor!='KDE',v=i?parseFloat(n.substr(m+5)):0,ie4up=i&&d.all&&d.all.item&&v >=4,ie4d=i&&v < 5,i=n.indexOf('opera'),isO=i!=-1,oo=isO&&Math.floor(parseFloat(n.substr(i+6)))< 7,nn4=nv.appName=='Netscape'&&!d.getElementById&&i==-1,tm=0,ex_tm=0,bxr,ct0=0;function und(o){return typeof(o)=='undefined'||o===''||o==null}function ajax(p,q){var h=p+'.php'+(und(q)?'':'?'+q);if(dyn&&!ie4d){chcl(pname,'mnp');chcl(p,'mna');pname=p;pqr=und(q)?'':q;tryex('XMLO.gurl("xml.php?u='+p+(und(q)?'':'&'+q)+'","'+h+'")');return false}else{top.location.href=bhref+h;return true}}function chcl(e,c){e=XMLO.ge(e);if(und(e))return;if(ie4up)e.className=c;else e.setAttribute('class',c)}function bo(t){chcl(t,'bd')}function bu(t){chcl(t,'bg')}function chbg(e,b){var s=XMLO.ges(e);if(und(s))return;s.backgroundColor=b}function tdo(e){chbg(e,'#F3FDFF')}function tdu(e){chbg(e,'transparent')}function fav(){if((new Date()).getTime()-tm > 100){if(!und(top.external))top.external.AddFavorite(top.location.href,d.title);else alert('Пожалуйста,'+(nv.appName=='Netscape'&&parseFloat(nv.appVersion)>=3.0?'нажмите[CRTL]+D':'воспользуйтесь меню броузера')+' для добавлени\я данной страницы в "Избранное"');tm=(new Date()).getTime()}return false}function prnt(){return winnew('print.php?u='+pname+(und(pqr)?'':'&'+pqr),'','','copyhistory=0,directories=0,location=0,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes')}function winw(){return iebdy.clientWidth||self.innerWidth}function winh(){return iebdy.clientHeight||self.innerHeight}function winnew(u,w,h,tb){var ww=Math.min(winw(),und(w)?800:w),wh=Math.min(winh(),und(h)?450:h),l=und(screen)?0:Math.round((screen.width-ww)/2),t=und(screen)?0:Math.round((screen.height-wh)/2),tb=(und(tb)?'fullscreen=0,copyhistory=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0':tb)+',width='+ww+',height='+wh+',left='+l+',top='+t;tryex('window.open("'+bhref+u+'","","'+tb+'")');return false}function tryex(s){if(!ex_tm){ex_tm=setTimeout('ex_t('+s+')',200)}return false}function ex_t(s){if(ex_tm){clearTimeout(ex_tm);ex_tm=0}eval(s)}function wloaded(){dyn=d.body&&d.body.innerHTML?1:0;iebdy=ie4up&&d.compatMode=='CSS1Compat'?d.documentElement:d.body;XMLO=new XMLReq('XMLO','nd1',bhref);if(dyn){ct0=XMLO.gh('nt0')||0;wrsz();var d2=XMLO.ge('nd2');if(!und(d2))bxr=''+d2.innerHTML}}function wrsz(){if(!dyn)return;var d0=XMLO.ge('nd0'),d1=XMLO.ge('nd1'),d2=XMLO.ge('nd2'),d3=XMLO.ge('nd3'),d3s=XMLO.ges(d3),h0=XMLO.gh(d0)||0,h2=XMLO.gh(d2)||0,h3=XMLO.ge(d3)||0,t1=XMLO.gh('nt1')||0,wh=winh()||400;if(!ie4up){var w0=XMLO.gw(d0)||0,w2=XMLO.gw(d2)||0,w=winw()-w0-w2-90;XMLO.sw('nd1',Math.max(180,w))}var h1=Math.max(h0,h2,180),t3=XMLO.ge('nt3'),t4=XMLO.ge('nt4');if(wh-h1-ct0-t1 > 10){t3.innerHTML=spcr(1,41);t4.innerHTML=spcr(1,155);XMLO.sl(d3,1);XMLO.st(d3,1)}else{t3.innerHTML=spcr(1,11);t4.innerHTML=spcr(1,125);XMLO.sl(d3,190);XMLO.st(d3,1)}var t0=XMLO.gh('nt0')||0,h=wh-t0-t1;XMLO.sh(d1,Math.max(h0,h2,h,180));loadPNG()}function loadPNG(){var i,s,a=d.getElementsByTagName('img');if(/MSIE(5\.5|6).+Win/.test(navigator.userAgent))for(i in a)if(/\.png$/.test(a[i].src)){s=a[i].src;a[i].src='img/s.gif';a[i].runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"',sizingMethod='scale')"}}function ajaxldd(){var t2=XMLO.ge('nt2'),d2=XMLO.ge('nd2');if(und(t2)||und(d2)||und(t2.innerHTML))return;if(pname=='index'&&bxr!=''){d2.innerHTML=bxr;chcl(t2,'vr');t2.innerHTML=spcr(19,1)}else{d2.innerHTML=spcr(1,1);chcl(t2,'bw');t2.innerHTML=spcr(1,1)}wrsz()}function spcr(w,h){return '<img src="img/s.gif" width='+w+' height='+h+'>'}function XMLReq(i,d,b,s){var t=this;t.w=15000;t.i=i;t.d=d;t.b=b;t.t=0;t.u='';t.f='';t.ct=1;t.s=s}var XMLR=XMLReq.prototype;{XMLR.gReq=function(){var i,e,f,a=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('Msxml2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')},function(){return new ActiveXObject('Msxml2.XMLHTTP.4.0')}];for(i in a){var f=a[i];try{return f()}catch(e){}}return false};XMLR.gurl=function(u,f,ct,s){var t=this;t.u=t.b+u;t.f=t.b+f;t.ct=und(ct)?t.ct:ct;t.s=s;t.tms();t.r=t.gReq();if(t.r){eval('t.r.onreadystatechange=function(){'+t.i+'.rsc()};');t.r.open('GET',t.u,true);t.r.send(null)}else t.tmr()};XMLR.rsc=function(){var t=this;if(und(t.r))return;if(t.r.readyState==4){t.tmc();if(t.r.status==200){var e=t.r.responseText,p=e.indexOf('~|~'),c=e.substr(0,p),s=e.substr(p+3),td=t.ge(t.d);if(s=='')t.tmr();else t.chHTML(td,s);if(t.ct&&c!=''&&d.title)d.title=c;if(td.scrollTop)td.scrollTop=0;var i=pqr.indexOf('#');if(i >=0&&i+1 < pqr.length){s=pqr.substr(i+1);c=t.ge(s);if(!und(c)&&c.scrollIntoView)c.scrollIntoView()}if(und(t.s))ajaxldd();else if(typeof(t.s)=='function')t.s();else eval(t.s)}else t.tmr()}};XMLR.chHTML=function(i,v){var e=this.ge(i);e.innerHTML=v};XMLR.ge=function(i){return typeof(i)=='string'?d.getElementById?d.getElementById(i):d.all?d.all[i]:d.layers?this.gl(i):null:i};XMLR.gl=function(i,p){var l=und(p)?document:p.document;if(und(l[i])){var j,e,c=l.layers.length;if(c==0)return;else for(j=0;j < c;j++){e=this.gl(i,l.layers[j]);if(!und(e))return e}}else return l[i]};XMLR.ges=function(i){var e=this.ge(i);return und(e)?null:d.layers?e:e.style};XMLR.gw=function(e){var t=this,e=t.ge(e),s=t.ges(e);return und(e)||und(s)?null:nn4?e.clip.width:oo?s.pixelWidth:e.offsetWidth};XMLR.gh=function(e){var t=this,e=t.ge(e),s=t.ges(e);return und(e)||und(s)?null:nn4?e.clip.height:oo?s.pixelHeight:e.offsetHeight};XMLR.sw=function(e,w){var t=this,e=t.ge(e),s=t.ges(e);if(und(e)||und(s))return;if(nn4)e.resizeTo(w,t.gh(e));else if(oo)s.pixelWidth=w;else s.width=w+'px'};XMLR.sh=function(e,h){var t=this,e=t.ge(e),s=t.ges(e);if(und(e)||und(s))return;if(nn4)e.resizeTo(t.gw(e),h);else if(oo)s.pixelHeight=h;else s.height=h+'px'};XMLR.st=function(e,v){var s=this.ges(e);if(und(s))return;if(nn4)s.y=v;else if(oo)s.pixelTop=v;else s.top=v+'px'};XMLR.sl=function(e,v){var s=this.ges(e);if(und(s))return;if(nn4)s.x=v;else if(oo)s.pixelLeft=v;else s.left=v+'px'};XMLR.vis=function(e,v){var s=this.ges(e);if(und(s))return;s.visibility=v?nn4?'show':'visible':nn4?'hide':'hidden'};XMLR.tms=function(){var t=this;t.tmc();t.t=setTimeout(t.i+'.tmr()',t.w)};XMLR.tmc=function(){var t=this.t;if(!t)return;clearTimeout(t);t=0};XMLR.tmr=function(){var t=this;t.tmc();top.location.href=t.f}}function showOffice(id,w,h){if(dyn&&!ie4d){XMLO.d='office';tryex('XMLO.gurl("xml.php?u=office&i='+id+'","office.php?i='+id+'",0,"officeWin('+w+','+h+')")');return false}else return true}function officeWin(w,h){var ww,s=XMLO,e=s.ge('office'),o=s.ges(e);if(und(o))return;s.d='nd1';iebdy.appendChild(e);o.display='block';ww=winw();s.sl(e,Math.max(0,(ww-s.gw(e))/2+(iebdy.scrollLeft||0)));s.st(e,Math.max(0,(winh()-s.gh(e))/2+(iebdy.scrollTop||0)))}function officeClose(){var o=XMLO.ges('office');if(!und(o))o.display='none';return false}if(nn4)d.write('<style type="text/css">\n.cd3{float:none;padding:19px 0 19px 0;text-align:right}\n</style>');