function setFooterPosition() {
	var containerHeight = $("#container").innerHeight();
	var footerHeight = $("#footer").innerHeight();
	
	var contentHeight = $("#content").innerHeight()+180;
	if (contentHeight > containerHeight) containerHeight = contentHeight;

		windowHeight = $(window).height();
	if(windowHeight > (containerHeight + footerHeight))	{
	$("#footer").css("top", (windowHeight - footerHeight)+"px");
	} else	{
		$("#footer").css("top", (containerHeight + 7)+"px");
	}
}