$(document).ready(function() {
	$(".flash-msg").fadeTo(2000,1).fadeOut();
	
	equalHeight = function(group) {
		tallest = 0;
		extended = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}
	
	equalHeight($(".2cols"));
});

$("#nav ul li").hover(function(){
	$(this).children("ul").css('display','block');
	$(this).children("a").addClass("hover");
},function(){
	$(this).children("ul").css('display','none');
	$(this).children("a").removeClass("hover");
});