$(document).ready(function() {

	var mnColorSpeedIn = 150;
	var mnColorSpeedOut = 50;
	var mnColorIn = '#000000';
	var mnColorOut = '#FFFFFF';
	var animateSpeed = 250;

	$("li.switch1").hover(function(){
    	$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "0px" }, animateSpeed);
	
		$("#steps li.step1").fadeIn("normal");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		$("li.switch1 a").animate({ color: mnColorIn }, mnColorSpeedIn);
		$("li.switch2 a").animate({ color: mnColorOut }, mnColorSpeedOut);
		$("li.switch3 a").animate({ color: mnColorOut }, mnColorSpeedOut);
	},
		function(){$(this).addClass("done");});

	$("li.switch2").hover(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "138px" }, animateSpeed);

		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeIn("normal");
		$("#steps li.step3").fadeOut("fast");
		$("li.switch1 a").animate({ color: mnColorOut }, mnColorSpeedOut);
		$("li.switch2 a").animate({ color: mnColorIn }, mnColorSpeedIn);
		$("li.switch3 a").animate({ color: mnColorOut }, mnColorSpeedOut);
	},
		function(){$(this).addClass("done");});
	
	$("li.switch3").hover(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "274px" }, animateSpeed);

		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeIn("normal");
		$("li.switch1 a").animate({ color: mnColorOut }, mnColorSpeedOut);
		$("li.switch2 a").animate({ color: mnColorOut }, mnColorSpeedOut);
		$("li.switch3 a").animate({ color: mnColorIn }, mnColorSpeedIn);
	},
		function(){$(this).addClass("done");});
	
	});
