// JavaScript Document

function setBackground()
{
	if (document.getElementById('content').offsetHeight < document.body.offsetHeight)
	{
		document.getElementById('footer').style.paddingTop = (document.body.offsetHeight - document.getElementById('content').offsetHeight) + "px";
	}
	
	var bgLocation = "/Images/Dynamic/dynamic_background.jpg?height=" + document.body.offsetHeight + "&width=" + document.body.offsetWidth;
	document.body.style.background = "url('" + bgLocation + "') top center no-repeat #FFF";
}

window.onload = setBackground;
window.onresize = setBackground;

function clearContents(element, value)
{
	if (element.value == value)
	{
		element.value = "";	
	}
}