// -----------------------------------------------------
// Get window width in pixels; returns 0 if unidentifiable.
// -----------------------------------------------------

function getWindowHeight(){
  var ww = 0;
  if (window.innerHeight && window.innerHeight > 0)
  {
	ww = window.innerHeight; 
  }
  else if (document.documentElement &&  document.documentElement.clientHeight &&
                                        document.documentElement.clientHeight > 0)
  {
	ww = document.documentElement.clientHeight; 
  }
  else if (document.body && document.body.clientHeight)
  {
	ww = document.body.clientHeight; 
  }
  return ww;
}