Cufon.replace('.button, h1, h3, span strong', { fontFamily: 'nv.fontFamily' });

if($.browser.msie && $.browser.version<7)
	DD_belatedPNG.fix('#logo img, #menu .button, #content');

$(document).ready(function(){
	$('.photo a').lightBox({fixedNavigation:true});
	var width = (915/il_menu)-0.55;
	$('#menu .button').last().css('margin-right', '0px');
	$('#menu .button').each(function(){
		$(this).css('width', width);
		var wait = 0;
		$(this).mouseenter(function(){
			wait = 1;
			$(this).find('.hovgreen').css('width', width).css('height', '10px');
			$(this).find('.hovgreen').animate({
				//bottom: '+=100px',
				height: '+=70px'
			}, 80, function(){
				wait = 0;
				$(this).css('top', '0px');
				$(this).animate({
					height: '-=75px'
				}, 200);
			});
			before = $(this);
		}).mouseleave(function(){
			//if(wait != 1){
				$(this).find('.hovgreen').animate({
					height: '+=5px'
				}, 150, function(){
					$(this).animate({
						height: '-=10px'
					}, 110, function(){
						$(this).css('top', '').css('bottom', '0px').css('height', '0px').css('width', '0px');	
					});
				});
			//}
		});
	});
});
