function getScreenWidth(){
  // (C) 2004 Teun Roodvoets
  // Determines and returns the available width 
  // of the client's browserwindow in pixels
  var scrWidth=undefined;
  var scrSource='none';
  if(document.body){
    scrWidth=document.body.clientWidth;
    scrSource='document.body.clientWidth';
  }else{
    if(self.innerWidth){
      scrWidth=self.innerWidth;
      scrSource='self.innerWidth';
    }else{
      if(screen){
        scrWidth=screen.availWidth;
        scrSource='screen.availWidth';
      }
    }
  }
  //alert(scrSource+'='+scrWidth);
  //scrWidth=prompt('Override screenwidth',scrWidth);
  return scrWidth;
}
function isWideScreen(){
  return (getScreenWidth()>=796);
}
