var obj=null;
var T=0;

function new_win(){
  open('', 'barosshotel_win', 'resizable=1, menubar=0, toolbar=0, scrollbars=1, location=0, status=0, height=500, width=600');
}

function resizer(wid){
  if (window.menubar){
    window.menubar.visible=false;
    window.toolbar.visible=false;
    window.locationbar.visible=false;
    window.personalbar.visible=false;
    window.scrollbars.visible=true;
    window.statusbar.visible=false;
  }
  myh=document.getElementById("resize").offsetHeight+70;
  talcaw=screen.width-screen.availWidth;
  talcah=screen.height-screen.availHeight;
  
  window.moveTo(talcaw+screen.availWidth/2-(wid/2),talcah+screen.availHeight/2-(myh/2));
 // window.moveTo(10,10);  
  window.resizeTo(wid,myh);
  
  //alert(talcaw+" - "+talcah+" - "+myh);
}

function loading(d){
  obj=document.getElementById('load');
  obj.style.display='block';
  //alert(parseInt(document.getElementById(d).parentNode.offsetTop)+'px');
  obj.style.top=parseInt(document.getElementById(d).parentNode.offsetTop)+'px';
  s=obj.style.top;
  T=Number(s.slice(0,s.length-2));
}

function loadend(){
  obj.style.display='none';
 // alert(obj.id);
  obj=null;
}

function lebeg() {
  if (obj!=null){
    Y=0;
    if (typeof(window.pageYOffset)=='number') {
      Y=window.pageYOffset;
    } else
    if (document.body && document.body.scrollTop) {
      Y=document.body.scrollTop;
    } else
    if (document.documentElement && document.documentElement.scrollTop) {
      Y=document.documentElement.scrollTop;
    }
  
    obj.style.top=T+Y+'px';
  }
}

/*function addtoonload(fname){
  s=String(window.onload);
  //if (s.length>10){
    tmp=s.split('{');
  //alert(self.onload);
    tt=tmp[1].split('}');
    core=tt[0];
    window.onload=new Function(core+' '+fname);
  //}
  
}
*/
window.onscroll=lebeg;

