		
$(document).ready(function(){
	$(".searchMenu > li").click(function(e){
		switch(e.target.id){
			case "complete":
				//change status & style menu
				$("#complete").addClass("active");
				$("#onlyFly").removeClass("active");
				$("#links").removeClass("active");
				//display selected division, hide others
				$("div.complete").fadeIn();
				$("#vacanze-searchbox-widget").css("display","block");
				$("div.onlyFly").css("display", "none");
				$("div.links").css("display", "none");
			break;
			case "onlyFly":
				//change status & style menu
				$("#complete").removeClass("active");
				$("#onlyFly").addClass("active");
				$("#links").removeClass("active");
				//display selected division, hide others
				$("div.onlyFly").fadeIn();
				$("div.complete").css("display", "none");
				$("#vacanze-searchbox-widget").css("display","none");
				$("div.links").css("display", "none");
			break;
			case "links":
				//change status & style menu
				$("#complete").removeClass("active");
				$("#onlyFly").removeClass("active");
				$("#links").addClass("active");
				//display selected division, hide others
				$("div.links").fadeIn();
				$("div.complete").css("display", "none");
				$("div.onlyFly").css("display", "none");
			break;
		}
		//alert(e.target.id);
		return false;
	});
});






$(document).ready(function(){
	$(".centralTab > li").click(function(e){
//	alert($(".tabscoll").length);
		for(i=1;i<$(".tabscoll").length+1;i++){
//		alert(i  + " " +  e.target.id);
			$("#tab" +i).removeClass("active");
			$("div.tab" + i).css("display", "none");
		}
		$("div."+e.target.id).fadeIn();
		$("#"+e.target.id).addClass("active");

		//alert(e.target.id);
		return false;
	});
});

$(document).ready(function(){
	$("a[rel='map']").colorbox();
	$("a[rel='gallery']").colorbox();	
});

//Animate Holiday tab
$(document).ready(function(){
						
 $('#vacanze-searchbox-widget').height('300px');  


	  /*  $("#completePack").stop(true, false).animate({ height: "300px" });                                   
	    $('#vacanze-searchbox-widget').stop(true, false).animate({ top: "-290px" });
	$('#vacanze-searchbox-widget').css('position','relative');				    
            $('#vacanze-searchbox-widget').height('300px');               */
/*              $('#vacanze-searchbox-widget').css('position','relative');                      
              $('#vacanze-searchbox-widget').css('background','transparent');                      
              $('#vacanze-searchbox-widget').css('top','-210px');                      
              $('#vacanze-searchbox-widget').css('left','970px');                      
						$("#vacanze-searchbox-widget").hover(function() {       							
						    $("#completePack").stop(true, false).animate({ height: "300px" });						    
						    $('#vacanze-searchbox-widget').stop(true, false).animate({ top: "-290px" });
						$('#vacanze-searchbox-widget').css('position','relative');						    
						    $('#vacanze-searchbox-widget').height('300px');  
						}, function() {
						     $("#completePack").stop(true, false).animate({ height: "203px" });						     
								 $('#vacanze-searchbox-widget').stop(true, false).animate({ top: "-200px" });
								 $('#vacanze-searchbox-widget').height('300px');  
								 //$('#vacanze-searchbox-widget').css('position','relative');
						});            



*/
            
                                  
});					


