function enableNavShadowCuratori(imagePath) {
		
    
    // Append shadow image to each LI
    $("#aprilo-subito-curatori").append('<img class="shadow" src="' + imagePath + '/shadow-btn-aprilo-subito-curatori.jpg" width="343" height="96" alt="" />');

    // Animate buttons, shrink and fade shadow
    $("#aprilo-subito-curatori").hover(function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "0" }, 250, function() {
            $(e).find("a").animate({ marginTop: "4px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "295px", height: "67px", marginLeft: "20px", opacity: 0.25 }, 250);
    }, function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "20px" }, 250, function() {
            $(e).find("a").animate({ marginTop: "16px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "343px", height: "96px", marginLeft: "0", opacity: 1 }, 250);
    });
    
}


// indica ai css che javascript è attivo
$('html').addClass('js');

/*  OSCURAMENTO PAGINA
-------------------------------------------------
*/
function doOverlay(){
	if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
		/*do nothing: ie6 user won't get the overlay effect*/	
	}else{//all others
		if(document.getElementById("shadow") === null){
			if(jQuery.browser['msie']){$("#container").append("<div id='shadow'></div>");}
			else{$("body").append("<div id='shadow'></div>");}			
			$('#shadow').css({'background-color':'#000','opacity' : '0.3'}).animate({'opacity' : '.5'}, 400);

			afterOverlay();
		}
	}
}

var count = 0;
function afterOverlay(){
	
	if (count == 0){
			$('#shadow').fadeIn().live('click',function(){
				$('#shadow').remove();
				$('#tools').css({'z-index':'7'});
				$('#help div.call-center').fadeOut();
			})			
	}
	count ++;	
}


/*  DOCUMENT:READY
-------------------------------------------------
*/
$(document).ready(function(){	
	//gestione accordion	
	$('ul.accordion li div.accordion-description').hide();
	$('ul.accordion li .open').siblings('div.accordion-description').show();
	$('ul.accordion li h4.accordion-key').hover(function(){
			$(this).css({'cursor': 'pointer'});
	},function(){
			$(this).css({});		
	}).click(function(){
		$(this).toggleClass('open');
		$(this).siblings('div.accordion-description').slideToggle('fast');
	});

	$('embed').css({'z-index':'-1'});

	//pngFix
	//$(document).pngFix();

  //gestione pulsante help
	$('.call-center').click(function(){
		$('#shadow').remove();
		$(this).fadeOut();
	});
	
	$("#help a:first").click(function(evt){
		evt.preventDefault();
		doOverlay();
		$('#tools').css({'z-index':'10'});
		$(this).siblings('.call-center').fadeIn();
	});

	$('#validation-errors').animate({ backgroundColor: '#FCEC27' }, 'slow').animate({backgroundColor: '#f4f4f4'}, 'slow');

    //video youtube
    //if ($('iframe embed', parent.document).length){
    //    $('iframe embed', parent.document).attr('wmode', 'transparent');
    //}
       
	//gestione external
	$('a[rel=external]').click(function(evt){
        evt.preventDefault();
        window.open($(this).attr("href"));
	});
    

});



