ww_left=-325;
ww_top=51;
// BANNER >>>
ww_el='<div style="position:relative; width:305px; overflow:hidden; background:#CC0000 url(/ww/ww.jpg) repeat-x;"><div style="height:180px; padding:10px 10px 10px 15px; overflow:hidden; border:1px solid #660000;"><div style="color:#FFFFFF; font:bold italic 16px Georgia; padding:0 0 10px; text-align:left;"><a href="http://scaranio.com/node/1159590" style="color:#FFFFFF; font:bold italic 16px Georgia; text-decoration:none;">Уникальная возможность <br />для инвестора, покупателя проекта недвижимости!</a></div><span style="color:#EEEEEE; font:11px Arial;">Компания Сфера 2012 предлагает на продажу Жилой комплекс <b style="color:#FFCC00;">«Жемчужина Ирпеня»</b> расположенный в центре г. Ирпень. (15 км От Киева). Общая площадь комплекса более <b style="color:#FFCC00;">20 тыс. кв м.</b> В комплексе <b style="color:#FFCC00;">344&nbsp;квартиры 3-х секционный</b> жилой дом с видовыми квартирами, высота секций 9, 11 этажей и на 14 этажей поднимается центральная секция. <a href="http://scaranio.com/node/1159590" style="color:#FFFFFF; font:bold italic 11px Georgia;">Читайте подробнее...</a></span></div><div style="position:absolute; top:3px; left:286px;"><a style="display:block; width:16px; height:16px; overflow:hidden; color:#FFFFFF;background-color:#660000;text-decoration:none;font:bold 10px Verdana; line-height:16px; text-align:center;" href="javascript:void(0);" onclick="javascript:ww_hide();return false;" title="">&nbsp;X&nbsp;</a></div></div>';
// <<< BANNER

ww_l=document.layers
ww_a=document.all
ww_i=document.getElementById&&!document.all

if (ww_l){document.write('<layer name="ww_el" top='+0+'px left='+2000+'px>'+ww_el+'</layer>')}
else{document.write('<div id="ww_el" style="position:absolute;top:'+0+'px;left:'+2000+'px">'+ww_el+'</div>')}

ww_left_start=ww_top_start=0

function ww_scroll_y(){
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}
function ww_scroll_x(){
  return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}
function ww_move(){     
  ydiff=ww_top_start-ww_scroll_y(); xdiff=ww_left_start-ww_scroll_x();

  if(ydiff!=0){movey=Math.round(ydiff/10);ww_top_start-=movey}
  if(xdiff!=0){movex=Math.round(xdiff/10);ww_left_start-=movex}

  if(ww_l){document.layers.ww_el.top=ww_top_start+ww_c('h')+ww_top+'px';document.layers.ww_el.left=ww_left_start+ww_c('w')+ww_left+'px'}
  if(ww_a){document.all.ww_el.style.top=ww_top_start+ww_c('h')+ww_top+'px';document.all.ww_el.style.left=ww_left_start+ww_c('w')+ww_left+'px'}
  if(ww_i){document.getElementById("ww_el").style.top=ww_top_start+ww_c('h')+ww_top+'px';document.getElementById("ww_el").style.left=ww_left_start+ww_c('w')+ww_left+'px'}
}
function ww_hide(){
  if(ww_l){document.layers.ww_el.visibility="hide"}
  if(ww_a){document.all.ww_el.style.visibility = "hidden"}
  if(ww_i){document.getElementById("ww_el").style.display="none"}
  clearInterval(ww_run);
}
function ww_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;
  }
  myHeight = 0;
  r = (s=='h') ? myHeight : myWidth;
  //r = r / 2;
  r = Math.round(r);
  return r;
}
ww_run=setInterval("ww_move()",10)


