var ucoz_rndid = 'aOzIpM';
function uOnDomOrLater(f){
if(document.readyState == 'loading') {
if(document.addEventListener) {
document.addEventListener('DOMContentLoaded',f);
} else {
window.attachEvent('onload',f);
}
} else {
setTimeout(f,0);
}
}
document.write('
');
function resizeDiv(islasttry){
var WX,WY,BX,BY;
var o=document.getElementById("dVaOzIpM"),t,d;
if (!o) return;
if(typeof window.self_getsizes == 'function'){
var s=self_getsizes();
if(s.err==1 && !islasttry) return;
if(isNaN(s.BX)) s.BX==0;
if(isNaN(s.BY)) s.BY==0;
if(s.err==1){
if (!(t=document.getElementById("bannerXaOzIpM"))) return;
else s.BX=t.value;
if (!(t=document.getElementById("bannerYaOzIpM"))) return;
else s.BY=t.value;
}
BX=s.BX;
BY=s.BY;
}else{
if (!(t=document.getElementById("bannerXaOzIpM"))) return;
else BX=t.value;
if (!(t=document.getElementById("bannerYaOzIpM"))) return;
else BY=t.value;
}
if (!(t=document.getElementById("wrapperXaOzIpM"))) WX=0;
else WX=t.value;
if (!(t=document.getElementById("wrapperYaOzIpM"))) WY=0;
else WY=t.value;
d=document.getElementById("mainadsdvaOzIpM");
if(d){
if (BX<0) d.style.width="100%";
else if (BX>0) d.style.width=BX+"px";
if (BY<0) d.style.height="100%";
else if (BY>0) d.style.height=BY+"px";
}
BX=parseInt(BX)+parseInt(WX);
BY=parseInt(BY)+parseInt(WY);
if (BX<0) o.style.width="100%";
else if (BX>0) o.style.width=BX+"px";
if (BY<0) o.style.height="100%";
else if (BY>0) o.style.height=BY+"px";
o.style.display='';
return true;
}
function waitForIframe(triesCount){
if(triesCount>10) return;
if(typeof resizeDiv == 'function' && !resizeDiv(triesCount==10 ? 1 : 0)) return setTimeout(function() { waitForIframe(triesCount + 1); }, 500);
};
document.write('waitForIframe(0);');
new Image().src = "//counter.yadro.ru/hit;narodadst2?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random();