// h content the width window or screen
var ws;

window.onload = bgImgCacheIE;

function adjust() {

if (document.all) {
  ws=document.body.clientWidth;
    if(ws<=800){
      document.getElementById('mainCanvas').style.width = "750px";
      document.getElementById('content').style.width = "560px";
    }
    
} else if (document.getElementById && !document.all) {
  ws=window.innerWidth;
  
    if(ws<=800){
      document.getElementById('mainCanvas').style.width = "750px";
      document.getElementById('content').style.width = "560px";      
    }
    
  }
  
}

function bgImgCacheIE() {

  try {
    document.execCommand("BackgroundImageCache", false, true);
  } catch(err) {}
  
}
function openWindow(url, name, w, h, mb, sb) {
  if(!mb) { mb = "no" }
  if(!sb) { sb = "yes" }
  var windowOptions = "directories=no,location=no,width="+w+",height="+h+",scrollbars="+sb+",menubar="+mb;
  var myWindow = open(url, name, windowOptions);

}


