$(document).ready(function() {
	
	$(document).pngFix();
	
	$("#isteps").animate({ 
        left: "0px"
      }, 600 );
      
    $("li.switch1").hover(function(){
		//alert("allleeeerte");
    	$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "1px" }, 250);
		$(".scroll").animate( { left: "0px" }, 350);
		$("#steps li.step1txt").fadeIn("slow");
		$("#steps li.step2txt").fadeOut("fast");
		$("#steps li.step3txt").fadeOut("fast");
		//$("#steps li.step4").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});

	$("li.switch2").hover(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "73px" }, 250);
		$(".scroll").animate( { left: "-172px" }, 350);
		$("#steps li.step1txt").fadeOut("fast");
		$("#steps li.step2txt").fadeIn("slow");
		$("#steps li.step3txt").fadeOut("fast");
		//$("#steps li.step4").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	
	$("li.switch3").hover(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "145px" }, 250);
		$(".scroll").animate( { left: "-353px" }, 350);
		$("#steps li.step1txt").fadeOut("fast");
		$("#steps li.step2txt").fadeOut("fast");
		$("#steps li.step3txt").fadeIn("slow");
		//$("#steps li.step4").fadeOut("fast");
	},
		function(){$(this).addClass("done");
	});
	/*
	$("li.switch4").hover(function(){
		$("#switcher #pill").stop(true, true);
		$("#switcher #pill").animate( { left: "274px" }, 250);
		$(".scroll").animate( { left: "-675px" }, 350);
		$("#steps li.step1").fadeOut("fast");
		$("#steps li.step2").fadeOut("fast");
		$("#steps li.step3").fadeOut("fast");
		//$("#steps li.step4").fadeIn("slow");
	},
		function(){$(this).addClass("done");
	});
	*/
	
	/*
	$('#screenshots a#one').fancyZoom({directory: '/i/wg/'});
	$('#screenshots a#two').fancyZoom({directory: '/i/wg/'});
	$('#screenshots a#three').fancyZoom({directory: '/i/wg/'});
	//$('#screenshots a#four').fancyZoom({directory: '/images/'});
	*/
	
	/*
	$("input.sign-name").focus(function(){
		if ( $(this).val() == "Enter your name")
        $(this).val('');
	});
	$("input.sign-name").blur(function(){
		if ( $(this).val() == "")
		$(this).val('Enter your name');
	});
	
	$("input.sign-email").focus(function(){
		if ( $(this).val() == "Enter your email address")
        $(this).val('');
	});
	$("input.sign-email").blur(function(){
		if ( $(this).val() == "")
		$(this).val('Enter your email address');
	});
	
	$("#head span a").hover(function(){
		$(this).children().stop(true, true);
    	$(this).children().fadeIn("fast");
	},
		function(){$(this).children().fadeOut("fast");
	});
	
	$("#head strong").hover(function(){
		$(this).stop(true, true);
    	$(this).fadeTo("fast", 0.8);
	},
		function(){$(this).fadeTo("fast", 1.0);
	});
	
	$("#head h1 a").hover(function(){
		$(this).children().stop(true, true);
    	$(this).children().fadeIn("fast");
	},
		function(){$(this).children().fadeOut("fast");
	});
	
	*/
	
	
	
	
	/*$('#screenshots a#one').hover(function(){
			$("#screenshots img").stop(true, true);
			$('#screenshots a#two img, #screenshots a#three img, #screenshots a#four img').fadeTo("fast", 0.4);
		},
		function(){
			$('#screenshots a#two img, #screenshots a#three img, #screenshots a#four img').fadeTo("slow", 1.0);
		}
	);
	
	$('#screenshots a#two').hover(function(){
			$("#screenshots img").stop(true, true);
			$('#screenshots a#one img, #screenshots a#three img, #screenshots a#four img').fadeTo("fast", 0.4);
		},
		function(){
			$('#screenshots a#one img, #screenshots a#three img, #screenshots a#four img').fadeTo("slow", 1.0);
		}
	);
	
	$('#screenshots a#three').hover(function(){
			$("#screenshots img").stop(true, true);		
			$('#screenshots a#one img, #screenshots a#two img, #screenshots a#four img').fadeTo("fast", 0.4);
		},
		function(){
			$('#screenshots a#one img, #screenshots a#two img, #screenshots a#four img').fadeTo("slow", 1.0);
		}
	);
	
	$('#screenshots a#four').hover(function(){
			$("#screenshots img").stop(true, true);
			$('#screenshots a#one img, #screenshots a#two img, #screenshots a#three img').fadeTo("fast", 0.4);
		},
		function(){
			$('#screenshots a#one img, #screenshots a#two img, #screenshots a#three img').fadeTo("slow", 1.0);
		}
	);*/
	
});
