$(document).ready(function() {
	/*$(function(){
		positionFooter(); 
		function positionFooter(){
			if($(document).height() < $(window).height()){
				$("#footer_wrapper").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$("#footer_wrapper").height())+"px"})
			}	
		}
	 
		$(window)
			.scroll(positionFooter)
			.resize(positionFooter)
	});*/
	$(function(){
		positionFooter(); 
		function positionFooter(){
			//$("#footer_wrapper").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$("#footer_wrapper").height())+"px"})
			//$("#footer_wrapper").css({'z-index' : '1001'})
			
			//var testHeight = $(window).scrollTop()+$(window).height()-$("#footer_wrapper").height();
			//alert(testHeight);
			$("#footer_wrapper").css({position: "absolute"});
			$("#footer_wrapper").animate({top:($(window).scrollTop()+$(window).height()-$("#footer_wrapper").height())+"px"}, 'medium');
		}
	 
		$(window)
			.scroll(positionFooter)
			.resize(positionFooter)
	});
});

