function getWinXOffset()  { return window.pageXOffset; }
function getWinYOffset()  { return window.pageYOffset; }
function getWindowWidth (){ return window.innerWidth; }
function getWindowHeight(){ return window.innerHeight; }
function getDivFromName(nm){
  var s='';
  for(var i=1; i<arguments.length; i++) s+='document.layers.'+arguments[i]+'.';
  return eval(s+'document.layers.'+nm);
}
function createLayer(left,top,width,height,parentLayer){
  var div;
  if(parentLayer) div = new Layer(width,parentLayer);
  else            div = new Layer(width);
  if(height>0) div.resizeTo(width,height);
  div.moveTo(left,top);
  return div;
}
function initDivPos(div){}
function getDivLeft(div){ return div.left; }
function getDivTop(div) { return div.top;  }
function moveDivTo(div,left,top){ div.moveTo(left,top); }
function moveDivBy(div,left,top){ div.moveBy(left,top); }
function initDivSize(div){}
function getDivWidth (div){ return div.clip.width;  }
function getDivHeight(div){ return div.clip.height; }
function setDivVisibility(div,visible){
  div.visibility = (visible)?'inherit':'hide';
}
function writeDivHTML(div,op,cl){
  var s='';
  if(op) div.document.open('text/html','replace');
  for(var i=3; i<arguments.length; i++) s+=arguments[i];
  div.document.writeln(s);
  if(cl) div.document.close();
}
