// JavaScript Document

$(function() {

        // Set CSS for old versions of Firefox (Required to use the backgroundPosition js)
		$('#uno').css({backgroundPosition:"-151px 0"});
		$('#dos').css({backgroundPosition:"-207px 0"});
		$('#tres').css({backgroundPosition:"-160px 0"});
		$('#quatro').css({backgroundPosition:"-176px 0"});
		$('#cinco').css({backgroundPosition:"-224px 0"});
		//$('#nav ul li a.currentpage').css({backgroundPosition:'top left'});
        // Animate the Shutter
		$('.menu a').mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:400})
		})
		$('#uno').mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-151px 0)"}, {duration:300})
		})
		$('#dos').mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-207px 0)"}, {duration:300})
		})
		$('#tres').mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-160px 0)"}, {duration:300})
		})
		$('#quatro').mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-176px 0)"}, {duration:300})
		})
		$('#cinco').mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(-224px 0)"}, {duration:300})
		})
})

