

function TB_getWindowHeight(){
  if( typeof( window.innerWidth ) == 'number' ) {

    windowHeight = window.innerHeight;
    windowWidth = window.innerWidth;
    return windowHeight;
    return windowWidth;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {

    windowHeight = document.documentElement.clientHeight;
    windowWidth = document.documentElement.clientWidth;
    return windowHeight;
    return windowWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {

    windowHeight = document.body.clientHeight;
    windowWidth = document.body.clientWidth;
    return windowHeight;
    return windowWidth;
  }

}//end getWindowHeight
