jQuery(document).ready(function(){  

	jQuery("#sidebar_2").hover(function() {
	  
		jQuery("#tabtekst_2").stop().animate({ backgroundColor: "#99CC33"}, 500);
		jQuery("#tab_2").add("a.green").stop().animate({ color: "#99CC33"}, 500);
             },function() {  		 

			var currentLocation = document.location.href; 

			if ((currentLocation) != ("http://www.elizabet.nl/wordpress/muziek_pf/")) {

			jQuery("#tabtekst_2").stop().animate({ backgroundColor: "#6B8E23" }, 500);  
			jQuery("#tab_2").add("a.green").stop().animate({ color: "#6B8E23" }, 500);	
			}	
			});	
			
	jQuery("#sidebar_3").hover(function() { 
	 
		jQuery("#tabtekst_3").stop().animate({ backgroundColor: "#FFCC33"}, 500);  
		jQuery("#tab_3").add("a.gold").stop().animate({ color: "#FFCC33"}, 500);  
             },function() {  

			var currentLocation = document.location.href; 

			if ((currentLocation) != ("http://www.elizabet.nl/wordpress/productie_pf/")) {

	 		jQuery("#tabtekst_3").stop().animate({ backgroundColor: "#B8860B" }, 500);
			jQuery("#tab_3").add("a.gold").stop().animate({ color: "#B8860B" }, 500);
			}
			});  

	jQuery("#sidebar_4").hover(function() {  
		jQuery("#tabtekst_4").stop().animate({ backgroundColor: "#B39BE4"}, 500);  
		jQuery("#tab_4").add("a.purple").stop().animate({ color: "#B39BE4"}, 500); 
             },function() {  

			var currentLocation = document.location.href; 
            
			if ((currentLocation) != ("http://www.elizabet.nl/wordpress/techniek_pf/")) {
			             
			jQuery("#tabtekst_4").stop().animate({ backgroundColor: "#765AAD" }, 500);  
			jQuery("#tab_4").add("a.purple").stop().animate({ color: "#765AAD" }, 500);
			}
			});  

	jQuery("#header").hover(function() {  
		jQuery("#header").stop().animate({ backgroundColor: "#606060"}, 50);  
			},function() {  
             
			var currentLocation = document.location.href; 

			if ((currentLocation) == ("http://www.elizabet.nl/wordpress/muziek_pf/")) {
			jQuery("#header").stop().animate({ backgroundColor: "#99CC33" }, 50);  
			}
			
			else if ((currentLocation) == ("http://www.elizabet.nl/wordpress/productie_pf/")) {
			jQuery("#header").stop().animate({ backgroundColor: "#FFCC33" }, 50);  
			}

			else if ((currentLocation) == ("http://www.elizabet.nl/wordpress/techniek_pf/")) {
			jQuery("#header").stop().animate({ backgroundColor: "#B39BE4" }, 50);  
			}			

			else {
			jQuery("#header").stop().animate({ backgroundColor: "#FFF" }, 50);  
			}
						
			});  

});	










