

$(document).ready(function() {

	
	// Add hover effect to all images with "data-hover" attribute
		
	$("img[data-hover]").each(function(i,v) {

		var orig = $(this).attr("src"),
			hover = $(this).attr("data-hover");

		$(this).css("cursor", "pointer");
		
		$(this).hover(function() {
			$(this).attr("src", hover);
		}, function() {
			$(this).attr("src", orig);	
		});
		
	});
	
	
	// Add "last" class to last menu item in each menu section,
	// to get rid of the right-side border
	
	var menu = $(".menu");
		menu.each(function(i,v) {
		
			$("a:last", this).addClass("last");
		
		});

	
	// This keeps the date column as tall as the news article on the news section
	
	var articles = $(".newsArticle");
		articles.each(function() {
		
			var d = $(".date", this),
				p = $(".post", this);
				
				d.height(p.outerHeight() + 20);
		
		});
	
	

		
	
});




	
	
	
