jQuery(document).ready(function(){
	$("#iconbar li").hover(
		function(){
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split(".")[0];
			$(this).find("img").attr({src: "" + origen + "_giu.png"});
			$(this).find("span").attr({
				"style": 'display:inline; color:#cccc00; font-weight:bold; padding-top:10px;'
			});
			$(this).find("span").animate({opacity: 1, top: "-60"}, {queue:false, duration:400});
		}, 
		function(){
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split("_giu.")[0];
			$(this).find("img").attr({src: "" + origen + ".png"});
			$(this).find("span").animate({opacity: 0, top: "-50"}, {queue:false, duration:400}, "linear",
				function(){
					$(this).find("span").attr({"style": 'display:none'});			
				}
			);
		});
	
	
	$("#iconbarfooter li").hover(
		function(){
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split(".")[0];
			$(this).find("img").attr({src: "" + origen + "_giu.png"});
			$(this).find("span").attr({
				"style": 'display:inline; color:#cccc00; font-weight:bold; padding-top:10px;'
			});
			$(this).find("span").animate({opacity: 1, top: "-60"}, {queue:false, duration:400});
		}, 
		function(){
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split("_giu.")[0];
			$(this).find("img").attr({src: "" + origen + ".png"});
			$(this).find("span").animate({opacity: 0, top: "-50"}, {queue:false, duration:400}, "linear",
				function(){
					$(this).find("span").attr({"style": 'display:none'});			
				}
			);
		});
	
	
});