$(document).ready(function() {



	//When page loads...

	$(".tab_content").hide(); //Hide all content

	$("ul.tabs2 li:first").addClass("active").show(); //Activate first tab

	$(".tab_content:first").show(); //Show first tab content



	//On Click Event

	$("ul.tabs2 li").click(function() {



		$("ul.tabs2 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;

	});



	//On Click Event on Traditional

	$("p.tabs3").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(5)").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



		window.scrollTo(0, $('#Traditional').position().top);



		return false;

	

	});





	//On Click Event on Traditional
	
	$("p.tabs4").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(1)").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;

	

	});

	

	

		$("p.tabs5").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(2)").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;

	

	});

	

		$("p.tabs6").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(3)").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;

	

	});

	

	

		$("p.tabs7").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(4)").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;

	

	});

	

	

		$("p.tabs8").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class	

		$("ul.tabs2 li:nth-child(5)").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;

	

	});





/*	//faqpagelink

	$("#faq_page").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class

		$("ul.tabs2 li.faq_tab").addClass("active"); //Add "active" class to selected tab

		$(".tab_content").hide(); //Hide all tab content



		var activeTab = $("#FAQ").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;

	});*/



});


































$(document).ready(function() {



	//When page loads...

	$(".tab_content").hide(); //Hide all content

	$("ul.tabs2 li:first").addClass("active").show(); //Activate first tab

	$(".tab_content:first").show(); //Show first tab content



	//On Click Event

	$("ul.tabs2 li").click(function() {



		$("ul.tabs2 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;

	});



	//On Click Event on Traditional

	$("p.tabs3").click(function() {



		$("ul.tabs2 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



		window.scrollTo(0, $('#Traditional').position().top);



		return false;

	

	});





	//On Click Event on Traditional

	$("p.tabs4").click(function() {



		$("ul.tabs2 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;

	

	});

	

	

		$("p.tabs5").click(function() {



		$("ul.tabs2 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;

	

	});

	

		$("p.tabs6").click(function() {



		$("ul.tabs2 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;

	

	});

	

	

		$("p.tabs7").click(function() {



		$("ul.tabs2 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;

	

	});

	

	

		$("p.tabs8").click(function() {



		$("ul.tabs2 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;

	

	});





/*	//faqpagelink

	$("#faq_page").click(function() {



		$("ul.tabs2 li").removeClass("active"); //Remove any "active" class

		$("ul.tabs2 li.faq_tab").addClass("active"); //Add "active" class to selected tab

		$(".tab_content").hide(); //Hide all tab content



		var activeTab = $("#FAQ").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;

	});*/



});
