$(function() {
	$('#menu LI').hover(function(){
		c = $(this).attr('class');
		if ((c == 'm1') || (c == 'm2') || (c == 'm3') || (c == 'm4')) {
			if (($.browser.msie) && ($.browser.version == '6.0')) {	$(this).find('UL').css('display','block'); }
			b = $('BODY').height();
			w = $(window).height();
			if (b > w) h = b - 21;
			else h = w - 21;
			$(this).stop().animate({ height: h, opacity: 0.9 }, 200);
			
			$(this).find('A:first').height('69px');
			$(this).find('A:first').animate({paddingTop: '10px'}, 100);
		}
	}, function(){
		c = $(this).attr('class')
		if ((c == 'm1') || (c == 'm2') || (c == 'm3') || (c == 'm4')) {
			if (($.browser.msie) && ($.browser.version == '6.0')) {	$(this).find('UL').css('display','none'); }
			$(this).stop().animate({ height: '79px', opacity: 1 }, 200);
			
			$(this).find('A:first').height('21px');
			$(this).find('A:first').animate({paddingTop: '58px'}, 100);
		}
	});
	
	$('.side-block .menu A').hover(function(){
		$(this).animate({ fontSize: '15px'}, 100);
	}, function(){
		$(this).animate({ fontSize: '11px'}, 200);
	});
	
	$('.photo A').hover(function(){
		$(this).prepend('<div class="frame"></div>');
		$('.frame').animate({ opacity: 0.5 }, 300);
	}, function(){
		$(this).find('.frame').remove();
	});
	
	$('.noscroll EM').animate({opacity: 0.5}, 0);
	
	$('#marchi A').removeAttr('style');
	
	$('.nolink').click(function(){ return false; });
});
