//Animates width of pictures on rollover

$(function(){
	$("img.navimg").hover(
		function(){
			$(this).addClass("over");
			$(this).animate(".large" , 100);
			$(this).parent().next("li").children().animate({
					"width": "100px",					
					"height": "73px",
					"marginTop": "-6px",
				  	"marginLeft": "-6px"
			} , 50);
			$(this).parent("li").next("li").children().addClass("medium");
			$(this).parent("li").prev("li").children().animate({
					"width": "100px",					
					"height": "73px",
					"marginTop": "-6px",
				  	"marginLeft": "-6px"
			} , 50);
			$(this).parent("li").prev("li").children().addClass("medium");			
			$(this).parent("li").next("li").next("li").children().animate(".normal" , 50);
			$(this).parent("li").prev("li").prev("li").children().animate(".normal" , 50);
			$(this).parent("li").next("li").next("li").children().removeClass("medium");
			$(this).parent("li").prev("li").prev("li").children().removeClass("medium");
		},
		function(){
			$(this).removeClass("over");
			$(this).animate(".normal" , 100);
			$(this).removeClass("large");
			$(this).parent("li").next("li").children().animate({
					"width": "88px",					
					"height": "65px",
					"marginTop": "0px",
				  	"marginLeft": "0px"
			} , 50);
			$(this).parent("li").prev("li").children().animate({
					"width": "88px",					
					"height": "65px",
					"marginTop": "0px",
				  	"marginLeft": "0px"
			} , 50);
			$(this).parent("li").next("li").next("li").children().animate(".normal" , 50);
			$(this).parent("li").prev("li").prev("li").children().animate(".normal" , 50);
		}
	)
});


$(function(){
	$("img#nav1").click(function(){
		window.location="groups.aspx";
	});
});
$(function(){
	$("img#nav2").click(function(){
		window.location="jdvlog.aspx";
	});
});
$(function(){
	$("img#nav3").click(function(){
		window.location="events.aspx";
	});
});
$(function(){
	$("img#nav4").click(function(){
		window.location="downloads.aspx";
	});
});
$(function(){
	$("img#nav5").click(function(){
		window.location="messagedownloads.aspx";
	});
});
$(function(){
	$("img#nav6").click(function(){
		window.location="calendar.aspx";
	});
});
$(function(){
	$("img#nav7").click(function(){
		window.location="testimonies.aspx";
	});
});
$(function(){
	$("img#nav8").click(function(){
		window.location="training.aspx";
	});
});
$(function(){
	$("img#nav9").click(function(){
		window.location="http://ncmi.tv";
	});
});
$(function(){
	$("img#nav10").click(function(){
		window.location="giving.aspx";
	});
});



