// JavaScript Document
$(document).ready(function() {
//Set default open/close settings
	$('.acc_container').hide(); //Hide/close all containers
	$('.acc_trigger:first').addClass('active').next().show(); //Add "active" class to first trigger, then show/open the immediate next container

	//On Click
	$('.acc_trigger').click(function(){
		if( $(this).next().is(':hidden') ) { //If immediate next container is closed...
			$('.acc_trigger').removeClass('active').next().slideUp(); //Remove all "active" state and slide up the immediate next container
			$(this).toggleClass('active').next().slideDown(); //Add "active" state to clicked trigger and slide down the immediate next container
		}
	return false; //Prevent the browser jump to the link anchor
	});

	$(".tab_content").hide(); //Hide all content
	$("div.tabs .event_tab_wrapper:eq(0)").addClass("active").show(); //Activate first tab
	$(".tab_content:eq(0)").show(); //Show first tab content

	//On Click Event
	$("div.tabs .event_tab_wrapper").click(function() {
		$("div.tabs .event_tab_wrapper").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		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;
	});



});
