// JavaScript Document
$(document).ready(
function(){
	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("sel").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	//On Click Event
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("sel"); //Remove any "active" class
		$(this).addClass("sel"); //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;
	});
	$(function() { // display icon number tab 1
 	$("#tab1 li").each(function (i) {
    i = i+1;
    $(this).prepend('<span class="nuro'+i+'"></span>');
   });
		});
	$(function() { // display icon number tab 2
 	$("#tab2 li").each(function (i) {
    i = i+1;
    $(this).prepend('<span class="nuro'+i+'"></span>');
   });
		});
		$(function() { // display icon number tab 1
 	$("ul.cont li").each(function (i) {
    i = i+1;
    $(this).prepend('<span class="num">'+i+'</span>');
   });
		});
});

