$(document).ready(function() {
	
	//$('.nav-col #nav-box ul:last').hide();
	$('#nav-box ul:last').hide();
	$('.sottosito #nav-box ul:last').show();

	$('#ricerca').hover(
			function() {
				$('#nav-box ul:last').show();
			},
			function() {
				$('#nav-box ul:last').hide();
			}
		);
	
	$('#nav-box #ipo-ops-opv').parent().hide();

	$('#nav-box ul #pm').hover(
		function() {
			$('#nav-box #ipo-ops-opv').parent().show();
		},
		function() {
			$('#nav-box #ipo-ops-opv').parent().hide();
		}
	);
	
	$('mainNews').ready(function() {
		if ( $("#mainNews").height() != null ) {
			var navigationHeight;
			var mainHeight;
			
			navigationHeight = jQuery("#nav").height();
			mainHeight = jQuery("#main-home").height();
			
			if ( navigationHeight > mainHeight )
				jQuery("#main-home").height(navigationHeight);
		}
	});
	
});
