function getViewportScrollY() {
  var scrollY = 0;
  if( document.documentElement && document.documentElement.scrollTop ) {
    scrollY = document.documentElement.scrollTop;
  }
  else if( document.body && parent.document.body.scrollTop ) {
    scrollY = document.body.scrollTop;
  }
  else if(window.pageYOffset ) {
    scrollY = window.pageYOffset;
  }
  else if( window.scrollY ) {
    scrollY = window.scrollY;
  }
  return(scrollY);
}

function floatDiv() {
  n6=(document.getElementById&&!document.all);
  n4=(document.layers);
  ie=(document.all);
  d=(n4||ie)?'document.':'document.getElementById("';
  a=(n4||n6)?'':'all.';
  n6r=(n6)?'")':'';
  s=(n4)?'':'.style';
  browser="";
  var _winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20;
  document.getElementById("divReklam").style.top = getViewportScrollY() + 'px';
  z = setTimeout("floatDiv()",0);
}