function hideContent(d) {
if(d.length <1) {return;}
document.getElementById(d).style.display = "none";
}
function showContent(d) {
if(d.length <1) {return;}
document.getElementById(d).style.display = "block";
}
function moveFooter() {
  var objSpacer = document.getElementById('pageSpacer');
  var objMain = document.getElementById('main');
  var objFooter = document.getElementById('footer');
  
  var intMainHeight = objMain.offsetHeight; 
  var intFooterHeight = objFooter.offsetHeight;
  
  var windowHeight = 0; //height

  //IE
  if(!window.innerHeight) { 
    if(!(document.documentElement.clientHeight == 0)) 
    { /*strict mode*/ windowHeight = document.documentElement.clientHeight; }
    else { /*quirks mode*/ windowHeight = document.body.clientHeight; }
  } else { /*w3c*/ windowHeight = window.innerHeight; }

  if (windowHeight < 700) {
    //Place the footer to start at 700px
    objSpacer.style.height=(700-intMainHeight)+intFooterHeight+"px";
  } else {
    if (intMainHeight < 700) {
      //Place the footer at the BOTTOM of the page
      objSpacer.style.height=(windowHeight-intMainHeight)+(intFooterHeight)/4+"px";
    } else {
      //Otherwise, sit at the bottom of the content
      objSpacer.style.height="0px";
    }
  }
}