jQuery(document).ready(function() {
	jQuery("#toolBar").delegate("li A", "mouseover mouseout", function(e) {
		if (e.type == 'mouseover') {
		jQuery("#toolBar li A").not(this).dequeue().animate({opacity: "0.3"}, 300);
   	} else {
		jQuery("#toolBar li A").not(this).dequeue().animate({opacity: "1"}, 300);
   		}
	});
});

jQuery(document).ready(function() {
	jQuery("#toolSuperiore").delegate("li A", "mouseover mouseout", function(e) {
		if (e.type == 'mouseover') {
		jQuery("#toolSuperiore li A").not(this).dequeue().animate({opacity: "0.3"}, 300);
   	} else {
		jQuery("#toolSuperiore li A").not(this).dequeue().animate({opacity: "1"}, 300);
   		}
	});
});

//disattivare l'effetto alle sottotool
jQuery(document).ready(function() {
	jQuery("#toolBar").delegate("LI A", "mouseover mouseout", function(e) {
		if (e.type == 'mouseover') {
		jQuery("#toolBar LI UL LI A").not(this).dequeue().animate({opacity: "1"}, 300);
   	} else {
		jQuery("#toolBar LI UL LI A").not(this).dequeue().animate({opacity: "1"}, 300);
   		}
	});
});


jQuery(document).ready(function() {
	jQuery("#toolBarFooter").delegate("li A", "mouseover mouseout", function(e) {
		if (e.type == 'mouseover') {
		jQuery("#toolBarFooter li A").not(this).dequeue().animate({opacity: "0.3"}, 300);
    	} else {
		jQuery("#toolBarFooter li A").not(this).dequeue().animate({opacity: "1"}, 300);
   		}
	});
});


$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".opacityNorm").css("opacity","0.5");
// ON MOUSE OVER
$(".opacityNorm").hover(function () {
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "normal");
},
// ON MOUSE OUT
function () {
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "normal");
});
});
/* OPACITY BUTTON REVERSE *****************************/
$(function() {
// OPACITY OF BUTTON SET TO 50%
$(".opacityRev").css("opacity","1.0");
// ON MOUSE OVER
$(".opacityRev").hover(function () {
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 0.5
}, "normal");
},
// ON MOUSE OUT
function () {
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 1.0
}, "normal");
});
}); 
