$(document).ready(function()
{	
	$("#promo-1-tab").click(function() {
		$("#promo-tabs li.active").removeClass("active");
		$(this).addClass("active");
		$(this).css("display", "none");
		if (jQuery.browser.msie) {
			$(this).css("display", "block");
		}
		else {
			$(this).fadeIn();
		}
		$(".promo-content.active").css("display", "none");
		//$("#promo-1-content").css("display", "block");
		if (jQuery.browser.msie) {
			$("#promo-1-content").css("display", "block");
		}
		else {
			$("#promo-1-content").fadeIn();
		}
		
		$("#promo-1-content").addClass("active");
	});
	
	$("#promo-2-tab").click(function() {
		$("#promo-tabs li.active").removeClass("active");
		$(this).addClass("active");
		$(this).css("display", "none");
		if (jQuery.browser.msie) {
			$(this).css("display", "block");
		}
		else {
			$(this).fadeIn();
		}
		$(".promo-content.active").css("display", "none");
		//$("#promo-2-content").css("display", "block");
		if (jQuery.browser.msie) {
			$("#promo-2-content").css("display", "block");
		}
		else {
			$("#promo-2-content").fadeIn();
		}
		$("#promo-2-content").addClass("active");
	});
	
	$("#promo-3-tab").click(function() {
		$("#promo-tabs li.active").removeClass("active");
		$(this).addClass("active");
		$(this).css("display", "none");
		if (jQuery.browser.msie) {
			$(this).css("display", "block");
		}
		else {
			$(this).fadeIn();
		}
		$(".promo-content.active").css("display", "none");
		//$("#promo-3-content").css("display", "block");
		if (jQuery.browser.msie) {
			$("#promo-3-content").css("display", "block");
		}
		else {
			$("#promo-3-content").fadeIn();
		}
		$("#promo-3-content").addClass("active");
	});
	
	$("#nav li").hover(function() {
		$(this).children("a").css("color", "#019604");
		if (jQuery.browser.msie) {
			$(this).children("ul").css("display", "block");
		}
		else {
			$(this).children("ul").fadeIn();
		}
	},
	function() {
		$(this).children("ul").css("display", "none");
		$(this).children("a").css("color", "#605C5C");
	});
	
	$("#nieuwsbrief").click(function() {
		if ($(this).attr("value") == "Vul hier je e-mailadres in") {
			$(this).attr("value", "");
		}
	});
	
	if ($("textarea#callback").val() == "Wanneer kunnen wij u contacteren?") {
	  $("textarea#callback").css("color", "#888888");        
	  $("textarea#callback").css("font-style", "italic"); 
	  
	  $("textarea#callback").click(function() {
	   if ($("textarea#callback").val() == "Wanneer kunnen wij u contacteren?") {
	     $(this).val("");
     }      
	   $("textarea#callback").css("color", "#333333");        
	   $("textarea#callback").css("font-style", "normal");  
	  });
	}
	else {
	  $("textarea#callback").css("color", "#333333");        
	  $("textarea#callback").css("font-style", "normal");  
	}
});
