/*/////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* ksessential.js.min */
/* @group ksSetHeight plugin v1.0.0 05-13-10 14:27 modified from seyDoggy (Adam Merrifield) */(function(jQuery) { jQuery.fn.ksSetHeight = function() { var tallest = 0; jQuery(this).each(function(){ if (jQuery(this).outerHeight(true) > tallest) tallest = jQuery(this).outerHeight(true); }); jQuery(this).height(tallest); }; })(jQuery);/* @end */
/*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

	// set height for filesharing items and movie index items
	jQuery(document).ready(function() {
		jQuery('.movie-thumbnail-frame').ksSetHeight();
		jQuery(".filesharing-item-description").contents().filter(function(){ return this.nodeType != 1; }).wrap("<p class='fileshare-paragraph'></p>");
		jQuery(".filesharing-item-title a").contents().filter(function(){ return this.nodeType != 1; }).wrap("<span> </span>");
		jQuery(".filesharing-item-title a").addClass("fsbutton dload");
		jQuery(".filesharing-item-title a").prepend("<span class='dlarrow'></span>");
		// custom classes added to fileshare and movie index items to allow for rounded corners 
		/* add rounded corners to file sharing items */
		jQuery(".movie-thumbnail-frame").wrap("<div class='movie-paragraph'></div>");
		jQuery(".movie-paragraph:first").addClass("movie-first");
		jQuery(".movie-thumbnail-frame").prepend("<div class='movie-shine'></div>");

		// custom classes added to fileshare and movie index items to allow for rounded corners 
		jQuery('.filesharing-item').addClass('css3');/* add rounded corners to file sharing items */
		jQuery('.movie-thumbnail-frame').addClass('css3');/* add rounded corners to movie index items */
		jQuery('.filesharing-item').ksSetHeight();
		jQuery(".sf-menu ul li:last-child, .sf-menu ul ul li:last-child, .sf-menu ul ul ul li:last-child").addClass("ullastli");
		

	});


jQuery(document).ready(function() {

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

	//On Click Event
	jQuery("ul.tabs li").click(function() {

		jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content").hide(); //Hide all tab content

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


});

jQuery(document).ready(function() {

	//When page loads...
	jQuery(".tab_content_b").hide(); //Hide all content
	jQuery("ul.tabs_b li:first").addClass("active").show(); //Activate first tab
	jQuery(".tab_content_b:first").show(); //Show first tab content

	//On Click Event
	jQuery("ul.tabs_b li").click(function() {

		jQuery("ul.tabs_b li").removeClass("active"); //Remove any "active" class
		jQuery(this).addClass("active"); //Add "active" class to selected tab
		jQuery(".tab_content_b").hide(); //Hide all tab content

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


});

jQuery(document).ready(function() {
	jQuery('.acc_container').hide(); //Hide/close all containers
	jQuery('.acc_trigger:nth(0)').addClass('active').next().show(); 
	
	jQuery('.acc_trigger').click(function(){
		if(jQuery(this).next().is(':hidden')) {
			jQuery('.acc_trigger').removeClass('active').next().slideUp({
		duration:400
	});
	
	jQuery(this).addClass('active').next().slideDown({
		duration:400
	}); 
	
}
	else {
		jQuery(this).removeClass('active').next().slideUp({
			duration:400
		})
	}
		return false; 
	});
});




