jQuery(document).ready(function(){

	// Destinations Page - left side vertical nav - toggle between overviewhotelsclubsevent packagesmeal plansside tripsgallery
	//jQuery("#dest3_all_wrap").tabs({tabs_id:"dest3_nav"content_id:"dest3_content_wrap"});   -  DISABLED 6/23/08TJK
	
	// Overview Wrap - toggle between overviewinclusionsreviewstestimonialsmapsgallery
	jQuery("#dest3_overview_wrap").tabs({tabs_id:"dest3_overview_subnav_wrap", content_id:"dest3_overview_content"});
	
	// Clubs Wrap - toggle between clubs and restaurants
	jQuery("#dest3_clubs_wrap").tabs({tabs_id:"dest3_clubs_subnav_wrap", content_id:"dest3_clubs_content"});
	
	
	
	/* destinations_hotels.php */
	jQuery(".dest3_hotel_item_more_info").hide();
	//jQuery(".dest3_hotel_item_more_info").addClass("more_info_closed");
	
	jQuery(".show_more_info").click(function(){
		$(".dest3_hotel_item_more_info").hide();
		var rel = $(this).attr("rel");
		$("#" + rel).slideDown("fast");
		/*
		if($("#" + rel).hasClass("more_info_closed")){
			$("#" + rel).show("fast");
			$("#" + rel).addClass("more_info_open");
			$("#" + rel).removeClass("more_info_closed");
		} else {
			$("#" + rel).hide();
			$("#" + rel).addClass("more_info_closed");
			$("#" + rel).removeClass("more_info_open");
		}
		*/
	});
	
	jQuery(".hide_more_info").click(function(){
		var parent_id = $(this).parent().parent().attr("id");
		$("#" + parent_id).hide();
	});
	
	jQuery('.innerfade').innerfade({ 
		animationtype:'fade', // Type of animation 'fade' or 'slide' (Default: 'fade')
		speed:'normal', // Fading-/Sliding-Speed in milliseconds or keywords (slow, normal or fast) (Default: 'normal')
		timeout:5000, // Time between the fades in milliseconds (Default: '2000')
		type:'sequence', // Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence')
		containerheight:'372px', // Height of the containing element in any css-height-value (Default: 'auto')
		runningclass:'innerfade_item', // CSS-Class which the container get’s applied (Default: 'innerfade')
		children:null // optional children selector (Default: null)
	}); 
	
});
