// JavaScript Document
function positionPage() {
  var iHeight = 0;
  var iWidth = 0;
  var nHeight = null;
  var pHeight = null;

  if (window.innerHeight) {
    iHeight = parseInt(window.innerHeight,10);
    iWidth  = parseInt(window.innerWidth,10);
  } else if (document.documentElement && document.documentElement.clientHeight){
    iHeight = parseInt(document.documentElement.offsetHeight,10);
    iWidth = parseInt(document.documentElement.offsetWidth,10);
  } else if (document.body){
    iHeight = parseInt(document.body.offsetHeight,10);
    iWidth = parseInt(document.body.offsetWidth,10);
  }

  if (iHeight < 575) /* -- set 575 to the height of the site -- */
  { nHeight = iHeight/2 - 288;
    pHeight = -278 - nHeight;
    document.getElementById("body_div").style.top = pHeight + 'px';
  } else {
    document.getElementById("body_div").style.top = '-288px';
  }

  if (iWidth < 955) /* -- set 800 to the width of your browser window -- */
  { document.getElementById("body_div").style.left = '485px';
  } else {
    document.getElementById("body_div").style.left = '50%';
  } 
}

function initPage() {
  positionPage();  
}