//earthechoes.js

function getElementWithId(name) {
  if (document.getElementById) return(document.getElementById(name));
  if (document.all) return(document.all[name]);
}

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

function setIframeHeight() { if (getWindowHeight()<800) getElementWithId('iframe').style.height='550px'; else getElementWithId('iframe').style.height=((getWindowHeight()-250)+'px'); }

