function resizeWindow()
{
	var scrollwrapper 		= document.getElementById('scrollwrapper');
	var backgroundwrapper   = document.getElementById('backgroundwrapper');
	var visual        		= document.getElementById('visual');
	var bottom		  		= document.getElementById('bottom');
	var bottommain	  		= document.getElementById('bottom_main');
	
	var mainheight	  = bottommain.clientHeight;
	var bottomheight  = bottom.clientHeight;
	
    // calculate windowheight 
	var winHeight = 0;
	var winWidth  = 0;
	  
	if( typeof(window.innerWidth ) == 'number' )
	{
	  //Non-IE
	  winHeight = window.innerHeight;
	  winWidth = window.innerWidth;
	}
	else if( document.documentElement && document.documentElement.clientHeight )
	{
	  //IE 6+ in 'standards compliant mode'
	  winHeight = document.documentElement.clientHeight;
	  winWidth  = document.documentElement.clientWidth;
	}
	else if( document.body && document.body.clientHeight )
	{
	  //IE 4 compatible
	  winHeight = document.body.clientHeight;
	  winWidth  = document.body.clientWidth;
	}

 	scrollwrapper.style.height     = (winHeight - bottomheight + 1) + 'px';
	scrollwrapper.style.width      = winWidth + 'px';
	backgroundwrapper.style.height = (winHeight - bottomheight + 1) + 'px';
	  
	if(visual)
	{
	    visual.style.height = (winHeight - mainheight + 1) + 'px';
	}
}
