$(function(){
	$('#topnav li#home a').css({
		backgroundPosition: "0px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(0px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(0px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "0px 0px"
			})
		}})
	});
	$('#topnav li#home a.active').css({
		backgroundPosition: "0px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(0px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(0px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "0px -174px"
			})
		}})
	});
	$('#topnav li#locale a').css({
		backgroundPosition: "-106px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-106px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-106px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-106px 0px"
			})
		}})
	});
	$('#topnav li#locale a.active').css({
		backgroundPosition: "-106px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-106px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-106px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-106px -174px"
			})
		}})
	});
	$('#topnav li#guestbook a').css({
		backgroundPosition: "-224px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-224px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-224px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-224px 0px"
			})
		}})
	});
	$('#topnav li#guestbook a.active').css({
		backgroundPosition: "-224px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-224px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-224px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-224px -174px"
			})
		}})
	});
	$('#topnav li#festeprivate a').css({
		backgroundPosition: "-409px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-409px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-409px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-409px 0px"
			})
		}})
	});
	$('#topnav li#festeprivate a.active').css({
		backgroundPosition: "-409px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-409px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-409px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-409px -174px"
			})
		}})
	});
	$('#topnav li#gallery a').css({
		backgroundPosition: "-522px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-522px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-522px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-522px 0px"
			})
		}})
	});
	$('#topnav li#gallery a.active').css({
		backgroundPosition: "-522px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-522px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-522px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-522px -174px"
			})
		}})
	});
	$('#topnav li#contatti a').css({
		backgroundPosition: "-646px 0px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-646px -87px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-646px 0px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-646px 0px"
			})
		}})
	});
	$('#topnav li#contatti a.active').css({
		backgroundPosition: "-646px -174px"
	}).mouseover(function(){
		$(this).stop().animate({
			backgroundPosition:"(-646px -174px)"
		},{duration:200})
	}).mouseout(function(){
		$(this).stop().animate({
			backgroundPosition:"(-646px -174px)"
		},{duration:200, complete:function(){
			$(this).css({
				backgroundPosition: "-646px -174px"
			})
		}})
	});
});
