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

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

function resetPage() {
  var m_screenHeight = getScreenHeight();
  var m_footerHeight = (m_screenHeight - 600) + 70;
  
  document.getElementById("bottom_padding").style.height = (m_footerHeight + 0) + "px";
  document.getElementById("footer").style.height = m_footerHeight + "px";

  var m_screenWidth = getScreenWidth();
  var m_contentX = (m_screenWidth - 750)/2;
  var m_contentY = 210;  

  document.body.style.backgroundPosition = m_contentX + "px " + m_contentY + "px";

  if(false /*@cc_on || @_jscript_version < 5.7 @*/)
    document.getElementsByTagName("html")[0].style.backgroundPosition =  m_contentX + "px " + m_contentY + "px";
}
