$(document).ready(function() {
	Cufon.replace(".menu2 li a, .button", { fontFamily: 'Futura BdCn BT', hover:true  });
	Cufon.replace("h1, .slogan1, .slogan2", { fontFamily: 'Sui Generis' });

	$(".menu2 li a").hover(
		function() {
			Cufon.refresh();
			$(this).addClass("hover");
		}, function() {
			$(this).removeClass("hover");
		}
	);
	var maxHeightFix = function() {
		var maxHeight = 0;
		$('.maxheight').each(function() {
			var h = $(this).height();
			if(h > maxHeight)
				maxHeight = h;
		});
		if($.browser.msie == true)
			$('.maxheight').css("height", (maxHeight + 40) + "px");
		else
			$('.maxheight').css("min-height", (maxHeight + 20) + "px");
	}
	/*$(window).resize(maxHeightFix);*/
	maxHeightFix();
});
