		//Initialise plugins
		jQuery(function(){
			jQuery('#menu > ul').superfish();
		});

		//Select Offerte
		function findDestinazione(){
			$('select#porto').attr('disabled','disabled');
			$('select#nave').attr('disabled','disabled');
			$('#destinazione').load('./_page/insDestinazione.php',{id_mese:document.ricerca.mese.value});
		}
		function findPorto(){
			$('select#nave').attr('disabled','disabled');
			$('#porto').load('./_page/insPorto.php',{id_mese:document.ricerca.mese.value,id_destinazione:document.ricerca.destinazione.value});
		}
		function findNave(){
			$('#nave').load('./_page/insNave.php',{id_mese:document.ricerca.mese.value,id_destinazione:document.ricerca.destinazione.value,id_porto:document.ricerca.porto.value});
		}

	/*                              ********* POPUP ANIMATO ORARIO NATALIZIO ********* lho spostato in /menu/stmenu.js */

	$(document).ready(function() {
		var popOut = "#popout";
		var adBox = "#adbox"; 
		var adWidth = $(adBox).width() + $("#cap").width();
		function openAd() {
			$(popOut).width(adWidth+"px");
			$(adBox).animate({marginLeft: "0"},1200);
		}
		function closeAd() {
			$(adBox).animate({marginLeft: "-"+adWidth+"px"},1200,"linear",
				function(){ $(popOut).width($("#cap").width() + "px"); }
			);
		}
		$("#open").click(function() {
			openAd();
			return false; 
		});
		$("#close").click(function() {
			closeAd();
			return false;
		});	
		$(popOut).animate({opacity: 1.0}, 1500, "linear", openAd);
	});
	/**/
	$(function(){ 
		$('.Rotator ul li').hide();
		$('.Rotator ul li:first').show(); 
		Rotate();
	});
	function Rotate(){
		var current = $('.Rotator ul li:visible');
		var next = current.next().length ? current.next() : current.parent().children(':first'); 
		current.hide();
		next.show();
		setTimeout(Rotate, 5000);
	} 

