jQuery.noConflict();

jQuery(document).ready(function(){
		
		k_menu(); // controls the dropdown menu
		// NB nel file navigation.js c'è la definizione di questa funzione + lo stile del menu hover
		
		jQuery(".articolo_primopiano").hover(function() {
			jQuery(this).find("h3.titolo").css({ color: "#B00" });
			jQuery(this).css({ backgroundColor: "#EBEFF2" });
		},function() {
			jQuery(this).find("h3.titolo").css({ color: "#345" });
			jQuery(this).css({ background: "none" });
		});
		
		jQuery(".articolo_news").hover(function() {
			jQuery(this).find("h3.titolo").css({ color: "#B00" });
			jQuery(this).css({ backgroundColor: "#EBEFF2" });
		},function() {
			jQuery(this).find("h3.titolo").css({ color: "#345" });
			jQuery(this).css({ background: "none" });
		});
		
		
		jQuery(".news_lat").hover(function() {
			jQuery(this).find("a.tit_news").css({ textDecoration: "underline" });
		},function() {
			jQuery(this).find("a.tit_news").css({ textDecoration: "none" });
		});
		
		
		var fadeDuration = 200; //time in milliseconds
		jQuery('#sottomenu li a.normale').hover(function() {
			jQuery(this).animate({ paddingLeft: '16px' }, fadeDuration);
		}, function() {
			jQuery(this).animate({ paddingLeft: '12px' }, fadeDuration);      
		});
		
		jQuery(".voce_gallery").hover(function() {
			jQuery(this).find("h3.titolo").css({ color: "#B00" });
			jQuery(this).css({ backgroundColor: "#EBEFF2" });
		},function() {
			jQuery(this).find("h3.titolo").css({ color: "#345" });
			jQuery(this).css({ background: "none" });
		});
	
		
		jQuery(".voce_insegnante").hover(function() {
			jQuery(this).find("h4").css({ color: "#B00" });
			jQuery(this).css({ backgroundColor: "#EBEFF2" });
		},function() {
			jQuery(this).find("h4").css({ color: "#345" });
			jQuery(this).css({ background: "none" });
		});
		
		jQuery(".voce_sede").hover(function() {
			jQuery(this).find("h4").css({ color: "#B00" });
			jQuery(this).css({ backgroundColor: "#EBEFF2" });
		},function() {
			jQuery(this).find("h4").css({ color: "#345" });
			jQuery(this).css({ background: "none" });
		});
		
	});
