// x_core.js
// X v3.15.1, Cross-Browser DHTML Library from Cross-Browser.com
// Copyright (c) 2002,2003,2004 Michael Foster (mike@cross-browser.com)
// This library is distributed under the terms of the LGPL (gnu.org)

// Variables:
var xVersion='3.15.1',xNN4=false,xOp7=false,xOp5or6=false,
  xIE4Up=false,xIE4=false,xIE5=false,xUA=navigator.userAgent.toLowerCase();

if(window.opera){
  xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1);
  if(!xOp7)
    xOp5or6=(xUA.indexOf('opera 5')!=-1 ||
      xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 ||
      xUA.indexOf('opera/6')!=-1);
}
else if (document.all) {
  xIE4Up=xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;
  xIE4=xUA.indexOf('msie 4')!=-1;
  xIE5=xUA.indexOf('msie 5')!=-1;
}
// Object:
function xGetElementById(e) {
  if(typeof(e)!='string') return e;
  if(document.getElementById) e=document.getElementById(e);
  else if(document.all) e=document.all[e];
  else e=null;
  return e;
}

function checkRes() {
  var theElement = xGetElementById('contentframe');
  var theHeight;
  var theWidth;
  if (document.all) {
    theHeight = document.body.clientHeight;
    theWidth = document.body.clientWidth;
  }
  else {
    theHeight = window.innerHeight;
    theWidth = window.innerWidth;
  }
  theElement.style.height = (theHeight - 110) + "px";
}

