
$(document).ready(function(){

	var duration = 500;
	
	$("#nav ul a.selectedLink")
		.bind("mouseover",function(){
		
			$(this).css("color","#e4ead1").css("background-color","#3a4c00");
			
		}).bind("mouseout",function(){
			
			$(this).css("color","#e4ead1").css("background-color","#3a4c00");
			
		});	
		
	
	$("#nav ul a")
		.not(".selectedLink")
		.not("#nav ul ul a")
		.bind("mouseover",function(){
		
			$(this).animate({
								color: 				"#e4ead1",
								backgroundColor: 	"#3a4c00"},duration);
			
		}).bind("mouseout",function(){
			
			$(this).stop().animate({
								color: 				"#000000",
								backgroundColor: 	"#e8e6e7"},duration);
			
		});	
		
		
		
	$("#nav ul ul a")
		.bind("mouseover",function(){
		
			$(this).animate({
								color: 				"#e4ead1",
								backgroundColor: 	"#3a4c00"},duration);
		
		}).bind("mouseout",function(){
			
			$(this).stop().animate({
								color: 				"#3a4c00",
								backgroundColor: 	"#e4ead1"},duration);
			
		});	
	
});
