$(function()
{
	$(window).resize(SetViewportHeight);

	if ($.browser.msie)
	{
		try	{ document.execCommand('BackgroundImageCache', false, true); }
		catch(e) {}
	}

	$(window).load(SetViewportHeight);
});

var InitialContHeight = 0;

function SetViewportHeight()
{
	if (!InitialContHeight)
	{
		InitialContHeight = $('#Container').height();
	}

	ContHeight = $('#Container').height();
	WinHeight = $(window).height();

	if (ContHeight < WinHeight || (ContHeight > InitialContHeight && WinHeight > InitialContHeight))
	{
		$('#Copyright').css('position', 'absolute').css('bottom', '10px').css('width', '720px');
		$('#Container').height(WinHeight);
		if (SetupTwitter)
		{
			SetupTwitter();
		}
	}
}
