$(document).ready(function() {

	//When page loads...
	$(".tab_content_head").hide(); //Hide all content
	$("ul.tabs_head li:first").addClass("aktiv").show(); //Activate first tab
	$(".tab_content_head:first").show(); //Show first tab content
	//On Click Event
	$("ul.tabs_head li").click (function()  	  { 
	
		$("ul.tabs_head li").removeClass("aktiv"); //Remove any "active" class
		$(this).addClass("aktiv"); //Add "active" class to selected tab
		$(".tab_content_head").hide(); //Hide all tab content
		var activeTab = $(this).find("a.tab_head").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;	  
	});
});
