/*
	Plugin name: Equal Height
	Call: $('.col, .summary, .item').equalHeight();
*/

(function($){    
    $.fn.equalHeight = function() {  
        var tallest = 0;
        this.each(function() {    
            var thisHeight = $(this).height();
            if (thisHeight > tallest) {
                tallest = thisHeight;
            }
        }); // each
        return this.each(function() {    
            $(this).height(tallest);
        });
    }; // fn
}(jQuery));

$(function(){
	
	/* set some columns to the same height */
	$('#footer ul').equalHeight();
	$('.col').equalHeight();
	$('#nav-sub,#content-main,#content-sub').equalHeight();
	$('.info,.bio').equalHeight();
	
	/* active nav */
	$('#nav li').hover(function(){
		$(this).addClass('hovered');
		$(this).children('div').hide().stop(true,true).slideDown(300);
	},function(){
		$(this).removeClass('hovered');
		$(this).children('div').hide();
	});
	$('#nav ul li:nth-child(1n+6)').addClass('reverseDrop');
	
});
