

function getHeight() 
{
	var y;
	
	if (self.innerHeight) // all except Explorer
	{
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
	{
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		y = document.body.clientHeight;
	}
	
	return y;
}

function adjustPosition() 
{
	var space = getHeight() - 600;
	var top_space = ((space / 2) - 10) < 10 ? 10 : (space / 2) - 10;
	var bg_top = top_space - 300;
	
	$("#content").css({ marginTop:top_space+"px" });
	$("body").css({ backgroundPosition:"center "+bg_top+"px" });
}
