

$(document).ready(
    function(){
		$('section#hero').innerfade({
			animationtype: 'fade',
			speed: 1000,
			timeout: 4000,
			type: 'random_start',
			containerheight: '250px'
		});
    }
);


$(document).ready(
    function(){
		$('#breadcrumb-messages').innerfade({
			animationtype: 'slide',
			speed: 1000,
			timeout: 4000,
			type: 'random_start',
			containerheight: '15px'
		});
    }
);




$(document).ready(function() {

	//Default Action
	$(".nightlife-desc").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".nightlife-desc:first").show(); //Show first tab content
	
	//On Hover Event
	$("ul.tabs li").click(function() {
		$(".nightlife-desc").hide(); //Hide all tab content
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});

});



(function($){  
  
        //cache nav  
        var nav = $("#main-nav");  
  
        //add indicators and hovers to submenu parents  
        nav.find("li").each(function() {  
            if ($(this).find("ul").length > 0) {  
  
                $("<span>").text("^").appendTo($(this).children(":first"));  
  
                //show subnav on hover  
                $(this).mouseenter(function() {  
                    $(this).find("ul").stop(true, true).slideDown();  
                });  
  
                //hide submenus on exit  
                $(this).mouseleave(function() {  
                    $(this).find("ul").stop(true, true).slideUp();  
                });  
            }  
        });  
    })(jQuery);
