window.onresize = calculateWrapperSize;
window.onload = calculateWrapperSize;

function calculateWrapperSize() 
{
  var height = 0;
  var wrapper = document.getElementById("wrapper");
  var wrapper1 = document.getElementById("content_wrapper");
  height = wrapper1.offsetHeight;
  if(!(navigator.appName.indexOf("IE 6.0") != -1))
    wrapper.style.height = height + 153 + 89 + 30  + "px";
}

function getWindowHeight() 
{
  var windowHeight = 0;
  if (typeof(window.innerHeight) == 'number') 
  {
    windowHeight = window.innerHeight;
  }
  else 
  {
    if (document.documentElement && document.documentElement.clientHeight) 
	  {
	    windowHeight = document.documentElement.clientHeight;
	  }
	  else 
	  {
	    if (document.body && document.body.clientHeight) 
	    {
	      windowHeight = document.body.clientHeight;
	    }
	  }
  }
  return windowHeight;
}

