// JavaScript Document

		function resizefooter(){
			if($(window).height() < $('#footercontent').height()){
				$('#footer').css('bottom', '0px');
				$('#footercontent').css('bottom', '0px');
			} else {
				$('#footer').css('bottom', '0%');
				$('#footercontent').css('bottom', '-'+($('#footercontent').height()/2)+'px');
			}
			if($(window).width() < $('#footercontent').width()){
				$('#footercontent').css('left', ($('#footercontent').width()/2)+'px');
			} else {
				$('#footercontent').css('left', '50%');
			}
		}
		
		//Reposition the content
		$(document).ready(function(){
			resizefooter();
		})
		$(window).bind("resize", function(){ 
			resizefooter();
		});