$(document).ready(function() {
						   
	$(".etkinlik_var").mouseover(function() {
			$(this).addClass("hover").mouseout(function() {
				$(this).removeClass("hover");
			});
	})
	
	$("#programs").animate({ 
        left: "0px"
      }, 600 );
      
    $("li.switch1").click(function(){
    	$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "2px" }, 250);
		$(".scroll").animate( { left: "0px" }, 350);
		$("#steps li.step1").fadeIn("slow");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});

	$("li.switch2").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "64px" }, 250);
		$(".scroll").animate( { left: "-550px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeIn("slow");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch3").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "124px" }, 250);
		$(".scroll").animate( { left: "-1100px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeIn("slow");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch4").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "186px" }, 250);
		$(".scroll").animate( { left: "-1650px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeIn("slow");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch5").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "248px" }, 250);
		$(".scroll").animate( { left: "-2200px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeIn("slow");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});	
	
	$("li.switch6").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "310px" }, 250);
		$(".scroll").animate( { left: "-2750px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeIn("slow");
		$("#steps li.step7").fadeOut("fast");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch7").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "372px" }, 250);
		$(".scroll").animate( { left: "-3300px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeIn("slow");
		$("#steps li.step8").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch8").click(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "434px" }, 250);
		$(".scroll").animate( { left: "-3850px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("#steps li.step4").fadeOut("fast");
		$("#steps li.step5").fadeOut("fast");
		$("#steps li.step6").fadeOut("fast");
		$("#steps li.step7").fadeIn("fast");
		$("#steps li.step8").fadeOut("slow");
	},
		function(){$(this).addClass("done");
	});
	
	 $(function () {
		var tabContainers = $('div.tabs > div');
		tabContainers.hide().filter(':first').show();
		
		$('div.tabs .tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.tabs .tabNavigation a').removeClass('selected');
				$(this).addClass('selected');
				return false;
		}).filter(':first').click();
	});
	
});