    var skwidth   = screen.width;
    var skheight  = screen.height;
    var winheight = skheight - 96;
    var winwidth  = skwidth;
    if (winwidth >= 850)
       winwidth = 850;
    if (winheight >= 900)
       winheight = 900;
    var winleft = (skwidth - winwidth) / 2;
    var wintop  = (skheight - 96 - winheight) / 2;    


    function out() {
      window.status=' ';
      return true;
    }
    
    function won() {
       window.status='Žś hefur įšur skošaš žessa eign';return true;
    }
      
  
    function GoWin(houseid) {
       img = eval('document.sj'+houseid);
       img.src='http://www.habil.is/habilis/new/skodad.gif';
       img.onmouseover=won;
       img.onmouseout=out;        
       window.open('http://www.habil.is/lix/jalta?HabilView=80511&Shop&Habilis&&HouseId='+houseid+'&Fast&0&',houseid,'scrollbars=1,status=1,menubar=1,resizable=1,top=' + wintop + ',left=' + winleft + ',width=' + winwidth + ',innerwidth=' + winwidth + ',height=' + winheight + ',innerheight=' + winheight);       
       return false;
    }
    
    function GoWinENG(houseid) {
       img = eval('document.sj'+houseid);
       img.src='http://www.habil.is/habilis/new/skodad.gif';
       img.onmouseover=won;
       img.onmouseout=out;        
       window.open('http://www.habil.is/lix/jalta?HabilView=80511&Devo&english&HouseId='+houseid+'&Fast&0&',houseid,'scrollbars=1,status=1,menubar=1,resizable=1,top=' + wintop + ',left=' + winleft + ',width=' + winwidth + ',innerwidth=' + winwidth + ',height=' + winheight + ',innerheight=' + winheight);       
       return false;
    }                      
    function GoWinNoImg(houseid) {	
       window.open('http://www.habil.is/lix/jalta?HabilView=80511&Shop&Habilis&HouseId='+houseid+'&Fast&0&',houseid,'scrollbars=1,status=1,menubar=1,resizable=1,top=' + wintop + ',left=' + winleft + ',width=' + winwidth + ',innerwidth=' + winwidth + ',height=' + winheight + ',innerheight=' + winheight);       
       return false;
    }
    function GoItm(houseid) {
        window.open('http://www.habil.is/lix/jalta?PurseItm=&Fast&0&HouseId='+houseid,'PurseItm'+houseid,'scrollbars=1,status=1,resizable=1,width=660,height=500');
    }
    function lon(txt) {
       window.status="Skoša sķšu nśmer "+txt;
       return true;
    }
    function hon() {
       window.status="Skoša žessa eign nįnar";
       return true;
    }
    function son() {
      window.status="Žessi eign er ķ skjóšunni žinni";            
      return true;
    }