jQuery(function( $ ){
	$('*[title]').removeAttr('title');
	
	
	$.easing.elasout = function (x, t, b, c, d, s) {
	if (s == undefined) s = 0.75;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	};
	
		$.easing.easeOutSine = function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	
	
	$.scrollTo( 0 );

	$('#mainContent a').click(function(){
		$.scrollTo( this.hash, 1000, { easing:'easeOutSine', offset:{ top:-180 }});
		$(this.hash).find('span.message').text( this.title );
		return false;
	});
	
});

$(document).ready(function(){

$("#footer").hover(function(){
$(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
},function(){
$(this).fadeTo("slow", 0.3); // This should set the opacity back to 60% on mouseout
});
});

