function CommonInit()
{
var AvailHt = window.screen.availHeight;
var AvailWdth = window.screen.availWidth;
var ScreenHt = window.screen.height;
var ScreenWdth = window.screen.width;

Aspect = ScreenWdth / ScreenHt;
window.moveTo(0,0);
window.resizeTo(ScreenWdth,ScreenHt);

if (ScreenWdth > 1024)
{
  Aspect = 1.3333;
  myWidth = 1150;
  myHeight = 847;
  FontSz = myHeight / 8;
  window.document.getElementById("logo").style.height = "115.6px";
  window.document.getElementById("logo").style.width = "381.2px";
}
else
{
  Aspect = 1.3333;
  myWidth = 944;
  myHeight = 591;
  FontSz = myHeight / 7;
  window.document.getElementById("logo").style.height = "76.8px";
  window.document.getElementById("logo").style.width = "253.3px";
}


window.document.getElementById("wrapper").style.width =  myWidth + "px";
window.document.getElementById("wrapper").style.fontSize = FontSz + "%";
window.document.getElementById("wrapper").style.lineHeight = 1.6 * FontSz + "%";
  
}


function DetectBrowser()
{
var Browser = navigator.appName;
var Version = navigator.appVersion;

if (Browser.search(/Microsoft/i) != -1)
{
 if ( Version.search(/MSIE 6/i) != -1)
  alert('Your browser is too old for this website. Please upgrade your browser. ');
}
}

function OldBrowser()
{
var Browser = navigator.appName;
var Version = navigator.appVersion;

if (Browser.search(/Microsoft/i) != -1)
{
 if ( Version.search(/MSIE 6/i) != -1)
   return(true);
 else
   return(false); 
}
else
  return(false);
}

function myHeight()
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return(myHeight);
}

function myWidth()
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return(myWidth);
}

