jQuery(function ($) {
  //if($('.hotel') && $('.hotel').length == 1) $('.hotel').css({'background': 'none'});
  $('.hotel:last').css({'background': 'none'});

	$('#destinations>li>ul>li>ul').hide();
  /*$('#destinations>li>ul>li').hover(function() {
       $(this).find('>ul').stop().height('auto').slideDown();
  }, function() {
       $(this).find('>ul').stop().slideUp();
  });*/
  $('#destinations span.toggle').click(function() {
    if($(this).next().is(':hidden')) {
      $(this).next().stop().height('auto').slideDown();
    } else {
      $(this).next().stop().slideUp();
     } 
  });

	$(".tab_content").hide(); // Hide all content
	//$("ul.tabs li:first").addClass("active").show(); // Activate first tab
	//$(".tab_content:first").show(); // Show first tab content

	$("ul.tabs li").click(function() {
		$(this).parent().find("li").removeClass("active"); // Remove any "active" class
		$(this).addClass("active"); // Add "active" class to selected tab
		$(this).parent().next().find(".tab_content").hide();

		var activeTab = $(this).find("a").attr("href"); // Find the href attribute value to identify the active tab + content
    $(activeTab).fadeIn(); // Fade in the active ID content
		return false;
	});
});