idk_left=-220
idk_top=200
idk_el='<div align="right"><a style="color:#FFFFFF;background-color:#D02432;text-decoration:none;font:bold 10px Verdana;" href="javascript:void(0);" onclick="javascript:idk_hide();return false;" title="">&nbsp;X&nbsp;</a></div><div><img src="/idk/0.gif" width="1" height="2" alt="" border="0" /></div>'
// BANNER >>>
idk_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.ua">BUDSTARS.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

idk_l=document.layers
idk_a=document.all
idk_i=document.getElementById&&!document.all

if (idk_l){document.write('<layer name="idk_el" top='+idk_top+'px left='+0+'px>'+idk_el+'</layer>')}
else{document.write('<div id="idk_el" style="position:absolute;top:'+idk_top+'px;left:'+0+'px">'+idk_el+'</div>')}

idk_left_start=idk_top_start=0

function idk_scroll_y(){
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}
function idk_scroll_x(){
  return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}
function idk_move(){     
  ydiff=idk_top_start-idk_scroll_y(); xdiff=idk_left_start-idk_scroll_x();

  if(ydiff!=0){movey=Math.round(ydiff/10);idk_top_start-=movey}
  if(xdiff!=0){movex=Math.round(xdiff/10);idk_left_start-=movex}

  if(idk_l){document.layers.idk_el.top=idk_top_start+idk_top+'px';document.layers.idk_el.left=idk_left_start+idk_c('w')+idk_left+'px'}
  if(idk_a){document.all.idk_el.style.top=idk_top_start+idk_top+'px';document.all.idk_el.style.left=idk_left_start+idk_c('w')+idk_left+'px'}
  if(idk_i){document.getElementById("idk_el").style.top=idk_top_start+idk_top+'px';document.getElementById("idk_el").style.left=idk_left_start+idk_c('w')+idk_left+'px'}
}
function idk_hide(){
  if(idk_l){document.layers.idk_el.visibility="hide"}
  if(idk_a){document.all.idk_el.style.visibility = "hidden"}
  if(idk_i){document.getElementById("idk_el").style.display="none"}
  clearInterval(idk_run);
}
function idk_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;
}
idk_run=setInterval("idk_move()",10)

