// maintab function
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").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;
	});

});

// maintab-inner function
$(document).ready(function() {

	//When page loads...
	$(".tab-inner_content").hide(); //Hide all content
	$("ul.tabs-inner li:first").addClass("active").show(); //Activate first tab
	$(".tab-inner_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs-inner li").click(function() {

		$("ul.tabs-inner li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab-inner_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;
	});

});


// maintab-inner2 function
$(document).ready(function() {

	//When page loads...
	$(".tab-inner2_content").hide(); //Hide all content
	$("ul.tabs-inner2 li:first").addClass("active").show(); //Activate first tab
	$(".tab-inner2_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs-inner2 li").click(function() {

		$("ul.tabs-inner2 li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab-inner2_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;
	});

});

// newstab function
$(document).ready(function() {

	//When page loads...
	$(".tabnews_content").hide(); //Hide all content
	$("ul.tabsnews li:first").addClass("active").show(); //Activate first tab
	$(".tabnews_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabsnews li").click(function() {

		$("ul.tabsnews li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tabnews_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;
	});

});


// newstab-small function
$(document).ready(function() {

	//When page loads...
	$(".tabnews-small_content").hide(); //Hide all content
	$("ul.tabsnews-small li:first").addClass("active").show(); //Activate first tab
	$(".tabnews-small_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabsnews-small li").click(function() {

		$("ul.tabsnews-small li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tabnews-small_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;
	});

});
