$(document).ready(function()
{
	nav('.nav');
	eq($('.eq'));
	
	$('#gallery').cycle();
});

function eq(obj) {
	var tallest = 0;
	obj.each(function(){
		if($(this).height() > tallest) tallest = $(this).height();
	});
	
	obj.each(function(){
		$(this).height(tallest);
	});
}

function nav(el) {
	$(el + ' ul li').each(function(){
		$(this).find('ul').hide();
		
		$(this).hover(function(){
			//$(this).children('ul').stop(true, true).slideDown();
			$(this).children('ul').show();
		}, function(){
			//$(this).children('ul').stop(true, true).slideUp();
			$(this).children('ul').hide();
		});
	});
}
