$(document).ready(function(){
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/

	$("#nudgeUs2 li").each(function(){
		if($(this).hasClass('select')){
			var largeur = $("#nudgeUs2").width() - ($(this).children('a').outerWidth());
			$(this).css({backgroundPosition:largeur + 'px 0px'});
		}
		else{
			$(this).css({backgroundPosition:'148px 0px'});
		}
	});

	//Remove outline from links
	$("#nudgeUs2 a").click(function(){
		$(this).blur();
	});

	//When mouse rolls over
	$("#nudgeUs2 li").mouseover(function(){
		if($(this).hasClass('select')){
		}
		else{
			var largeur = $("#nudgeUs2").width() - ($(this).children('a').outerWidth());
			$(this).stop().animate({backgroundPosition:largeur + 'px 0px'},{queue:false, duration:300, easing: 'jswing'})
		}
	});

	//When mouse is removed
	$("#nudgeUs2 li").mouseout(function(){
		if($(this).hasClass('select')){
		}
		else{
			$(this).stop().animate({backgroundPosition:'148px 0px'},{queue:false, duration:300, easing: 'jswing'})
		}
	});

});
