idk2_right=-220
idk2_top=200
idk2_el='<div align="right"><a style="color:#FFFFFF;background-color:#D02432;text-decoration:none;font:bold 10px Verdana;" href="javascript:void(0);" onclick="javascript:idk2_hide();return false;" title="">&nbsp;X&nbsp;</a></div><div><img src="/idk2/0.gif" width="1" height="2" alt="" border="0" /></div>'
// BANNER >>>
idk2_el+='<div style="width:190px;border:#D02432 1px solid;background-color:#7D8FA7;color:#FFFFFF;text-align:center;"><br /><div align="center"><img src="/iww/two.gif" width="78" height="53" border="0"></div><br /><div style="font:bold 20px Verdana">ФАСАДЫ<br />ПОД КЛЮЧ</div><br /><div><a style="color:#FFFFFF;font:bold 16px Verdana;" href="http://www.budstars.com.ua">BUDSTARS.COM.UA</a></div><br /><div>комплектация строительных объектов</div><br /><br /><div><b>(044) 501-34-56<br />(044) 501-34-52</b></div><div>04073, Украина, г.Киев, ул.Куренёвская 18</div><br /></div>'
// <<< BANNER

idk2_l=document.layers
idk2_a=document.all
idk2_i=document.getElementById&&!document.all

if (idk2_l){document.write('<layer name="idk2_el" top='+idk2_top+'px right='+0+'px>'+idk2_el+'</layer>')}
else{document.write('<div id="idk2_el" style="position:absolute;top:'+idk2_top+'px;right:'+0+'px">'+idk2_el+'</div>')}

idk2_right_start=idk2_top_start=0

function idk2_scroll_y(){
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}
function idk2_scroll_x(){
  return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}
function idk2_move(){     
  ydiff=idk2_top_start-idk2_scroll_y(); xdiff=idk2_right_start-idk2_scroll_x();

  if(ydiff!=0){movey=Math.round(ydiff/10);idk2_top_start-=movey}
  if(xdiff!=0){movex=Math.round(xdiff/10);idk2_right_start-=movex}

  if(idk2_l){document.layers.idk2_el.top=idk2_top_start+idk2_top+'px';document.layers.idk2_el.right=idk2_right_start+idk2_c('w')+idk2_right+'px'}
  if(idk2_a){document.all.idk2_el.style.top=idk2_top_start+idk2_top+'px';document.all.idk2_el.style.right=idk2_right_start+idk2_c('w')+idk2_right+'px'}
  if(idk2_i){document.getElementById("idk2_el").style.top=idk2_top_start+idk2_top+'px';document.getElementById("idk2_el").style.right=idk2_right_start+idk2_c('w')+idk2_right+'px'}
}
function idk2_hide(){
  if(idk2_l){document.layers.idk2_el.visibility="hide"}
  if(idk2_a){document.all.idk2_el.style.visibility = "hidden"}
  if(idk2_i){document.getElementById("idk2_el").style.display="none"}
  clearInterval(idk2_run);
}
function idk2_c(s) {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  r = (s=='h') ? myHeight : myWidth;
  //r = r / 2;
  r = Math.round(r);
  return r;
}
idk2_run=setInterval("idk2_move()",10)
