$(document).ready(function(){
	// for company tabs
	//$(".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 rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	
	
	// for aboutus tabs
	$(".aboutus_tab_content").hide(); //Hide all content
	$("ul.aboutus-tabs li:first").addClass("active").show(); //Activate first tab
	$(".aboutus_tab_content:first").show(); //Show first tab content
	

	//On Click Event
	$("ul.aboutus-tabs li").click(function() {
		$("ul.aboutus-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".aboutus_tab_content").hide(); //Hide all tab content
		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;
	});
	
	
	
	// for sector tabs
	$(".sector_tab_content").hide(); //Hide all content
	//$("ul.sector-tabs li:first").addClass("active").show(); //Activate first tab
	$(".sector_tab_content:first").show(); //Show first tab content
	

	//On Click Event
	$("ul.sector-tabs li").click(function() {
		$("ul.sector-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".sector_tab_content").hide(); //Hide all tab content
		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;
	});
	
	
	// for services tabs
	$(".services_tab_content").hide(); //Hide all content
//	$("ul.services-tabs li:first").addClass("active").show(); //Activate first tab
	$(".services_tab_content:first").show(); //Show first tab content
	

	//On Click Event
	$("ul.services-tabs li").click(function() {
		$("ul.services-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".services_tab_content").hide(); //Hide all tab content
		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;
	});
	
	
	
	
	// for expertise tabs
	$(".expertise_tab_content").hide(); //Hide all content
	$("ul.expertise-tabs li:first").addClass("active").show(); //Activate first tab
	$(".expertise_tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.expertise-tabs li").click(function() {
		$("ul.expertise-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".expertise_tab_content").hide(); //Hide all tab content
		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;
	});
	
	
	
	// for service tabs
	$(".service_tab_content").hide(); //Hide all content
	$("ul.service-tabs li:first").addClass("active").show(); //Activate first tab
	$(".service_tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.service-tabs li").click(function() {
		$("ul.service-tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".service_tab_content").hide(); //Hide all tab content
		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;
	});
	
	
	// for company tabs
	$(".ourpeople_tab_content").hide(); //Hide all content
	//$("ul#second-carousel li:first").addClass("active").show(); //Activate first tab
	//$(".tab_content:first").show(); //Show first tab content
	
	//On Click Event
	$("ul#second-carousel li").click(function() {
		$("ul#second-carousel li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".ourpeople_tab_content").hide(); //Hide all tab content
		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;
	});
	
	

	// for homepage meet peopele
	   jQuery('.first-and-second-carousel').jcarousel({
    });
	

});
