function innerWindowWidth()
{
	var x;
	if (self.innerHeight) // Alles ausser IExplorer
	{
		x = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight) // IE 6 
	{
		x = document.documentElement.clientWidth;
	}
	else if (document.body) 
	{
		x = document.body.clientWidth;
	}
	
	return x;
}

function innerWindowHeight()
{
	var y;
	if (self.innerHeight) // Alles ausser IExplorer
	{
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) // IE 6 
	{
		y = document.documentElement.clientHeight;
	}
	else if (document.body) 
	{
		y = document.body.clientHeight;
	}
	
	return y;
}

function refresh()
{
	$('#content').css('min-height', innerWindowHeight());
	$('#box3').css('width', (innerWindowWidth() - 766) );
	$('#box3').css('display', 'inline');
		
	if($('#content').height() <= innerWindowHeight()){
		$('#footer').css('position', 'fixed');
		$('#footer').css('bottom', '0px');
	}
}

$(function() {
	refresh();
	$(window).bind("resize", function(){
		refresh();
   });

});
