// JavaScript Document


//window.onload = fixFooter;

function fixFooter()
{
	
	if(
	   	navigator.userAgent.toLowerCase().indexOf("msie") == -1
		|| navigator.userAgent.indexOf("6") == -1
	)
	{
		var footer = document.getElementById("footer");
		footer.style.position = "fixed";
		footer.style.bottom = "0";
		footer.style.display = "block";
	}
	else
	{
		window.onscroll = fixLayout;
			fixLayout();
	}
	SGLoad();
}
 
function fixLayout()
{
	var theDiv = document.getElementById("formBG");
	if(!theDiv) theDiv =  document.getElementById("container");
	else document.body.style.backgroundPosition = "center 100px";
	theDiv.style.marginTop = "100px";
	//theDiv.style.overflow = "hidden";
	footer.style.display = "block";
}

