function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
	
	
$(document).ready(function() { 
	
	$('#nav li').click( function() {
		var link = $(this).children('a').attr('href');
		window.location = link;
	});
			
	Cufon.replace('#nav,.budStyle', { hover: true, fontFamily: 'BudHand' });
    Cufon.replace('.banner,.bannerSmall,.bannerMedium', { hover: true, fontFamily: 'Happy Sans',textShadow: '2px 2px black' });
    
	$('#nav li#GTA_submenu').hover(
		function () {
			$('ul', this).slideDown(100);
			$(this).children('.selected').css({"border-left":"1px solid #FF0000","padding-bottom" : "2px"})
		}, 
		function () {
			$('ul', this).slideUp(100);	
			$(this).children('.selected').css({"border-left":"1px solid #ffffff","padding-bottom" : "0"});
		}
	);
	
	$('.elencoDate,.chiRight,.yellowContainer').corner("15px");
	
	equalHeight($(".facebookContainer .elencoDate"));
	
//	$("#nav li").hover(
//		function (e) {
//			$(this).css({"background-position": "0px", cursor: "pointer"});
//			},
//		function (e) {
//			$(this).css({"background-position": "-90px", cursor: "normal"});
//			}
//	);

});

