<!--
function divresize()
{  
  if (vIE() < 7)
  {
      //height of the page
      var window_height;

      if(document.documentElement && document.documentElement.scrollHeight && document.documentElement.offsetHeight) 
      {
        //IE 6+ in 'standards compliant mode'
        if (document.documentElement.scrollHeight > document.documentElement.offsetHeight)
	    { // all but Explorer Mac
		    window_height = document.documentElement.scrollHeight;
	    } 
	    else 
	    { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		    window_height = document.documentElement.offsetHeight;
  	    }
  	    document.getElementById('wrapper').style.height= window_height+'px';
      }
      else if(document.body.scrollHeight && document.body && document.body.offsetHeight)
      {
	    if (document.body.scrollHeight > document.body.offsetHeight)
	    { // all but Explorer Mac
		    window_height = document.body.scrollHeight;
	    } 
	    else 
	    { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		    window_height = document.body.offsetHeight;
  	    }
  	    document.getElementById('wrapper').style.height= window_height+'px';
      }
   }
}
function vIE()
{
    return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;
}
//-->

//onload part
  if (vIE() < 7)
  {
	if (window.addEventListener){
		document.addEventListener("DOMContentLoaded", divresize, false);
		window.addEventListener("load", divresize, false);
	}
	else if (window.attachEvent)
	{
		window.attachEvent("onload", divresize);
	}
	else if (document.all || document.getElementById)
	{
		window.onload=divresize;
	}
    //end of onload part

    //onresize part
    window.onresize = divresize;
  }

