// enterlux.js
var idiv='';
var eh='';
var clX = 800;
var clY = 600;

function $(id)
{
  if(document.all)
  {
    return document.all(id);
  }
  return document.getElementById(id);
}

function init()
{
  return scale_page();
}

function scale_page()
{
  var mx=window.innerWidth;
  var my=window.innerHeight;
  var scale = 1;
  var mp=$('mainpage');
  mp.style.height=my+'px';
  mp.style.width=clX+'px';
  if(mx <=825 && mx >= 780)
  {
    self.resizeBy(-60,0);
  }
  if(mx < clX)
  {
    scale = ( mx / clX );
    mp.style.width=Math.round(scale*mx)+'px';
  }
  var SCW = Math.round(scale * 295);
  var c1=$('c1');
  c1.style.width=SCW+'px';
  var c3=$('c3');
  c3.style.width=SCW+'px';
//  alert(mp.style.width+' x '+mp.style.height + '\n' + c3.style.width+' and '+c3.style.width);
/*
  var SCH = Math.round(scale * (my - 180));
  var SCP = Math.round(scale * 8);
  var CBT = Math.round(scale * 50);
  var CCW = Math.round( mx - ( 2*SCW + 2*SCP ));
  var fs = (Math.round(11 * scale * 1.2))+"pt";
  var tbx = Math.round(scale * 750 );
  var tby = Math.round(scale * 208 );
  var dtop = (tby + 8);
  var cx=Math.round(scale*750);
  var cy=Math.round(scale*109);
  var uct=Math.round(scale*192);
  var ucd=$('undercon');
  ucd.style.top=uct+'px';
  ub=$('ucbanner');
  ub.style.width=cx+'px';
  ub.style.height=cy+'px';
  tl=$('tlogo');
  tl.style.width=tbx+'px';
  tl.style.height=tby+'px';
  pt=$('pagetop');
  pt.style.height=tby+'px';
  PCT=$('pcontent');
  PCT.style.top=Math.round(scale*240)+"px";
  PCT.style.fontSize = fs;
*/
}
