/*
 * jQuery slider for footer elements
 * Source
 */
function footerSlider() {
	var slide = false;
	var selector = $(this).attr("title");
	var height = $("#"+selector).height();
	var docHeight = $(document).height();
	var windowHeight = $(window).height();
	var scrollPos = docHeight - windowHeight + height;
	
	$("#"+selector).animate({ height: "toggle"}, 500);
	if(!slide) {
		if($.browser.opera) { //Fix opera double scroll bug by targeting only HTML.
			$('html').animate({scrollTop: scrollPos+'px'}, 500);
		} else {
			$('html, body').animate({scrollTop: scrollPos+'px'}, 500);
		}
	}
	slide = !slide
}
