 var $j = jQuery.noConflict(); 
$j(document).ready(function(){	
	
$j("a.fancy").fancybox({});
	
		
// Gallery Prodotto
$j(".galleryProdotto").append("<span class='zoom'></span>");
$j('.thumbs li:first-child a').addClass("selected");       
$j(".thumbs a").click(function(){
    $j('.thumbs a').removeClass("selected");       
	$j(this).toggleClass("selected");       
 $j("#largeImg").hide();
  var largePath = $j(this).attr("href");
  var largeAlt = $j(this).attr("title"); 
  
  setTimeout(function() {
  $j("#largeImg").fadeIn('slow').attr({ src: largePath, alt: largeAlt });
  }, 500); 
  //$j("#largeImg").fadeIn(2000);

  $j(".descrizione-foto em").html(" (" + largeAlt + ")"); return false;
  
  
});

$j("ul li:first-child").addClass('first');
$j("ul li:last-child").addClass('last');
/* layered accordion */
$j("#narrow-by-list dd").hide();
$j("#narrow-by-list dd:first-child").show();
$j("#narrow-by-list dt:first-child ").addClass('active');
$j("#narrow-by-list dt").click(function(){						   
$j(this).next('dd').slideToggle('slow'); // This should set the opacity to 100% on hover
$j(this).toggleClass('active');
});

});
