$(function()
	{
		var view = $(window).height();
		var doc = $("#container").height();
		var offset = 286;
		
		if (($.url.param("p") == '') ||	($.url.param("p") == 'splash'))
		{
			offset = 180;
		}
		
		if ((doc + offset) < view)
		{
			var adjust = view - (doc + offset);
			$("#footpad").css("height",adjust.toString() + "px");
		}
	}
);
