jQuery(document).ready(function() {


	if(jQuery.fn.nivoSlider){
		jQuery(window).load(function() {
	    	jQuery('#slider').nivoSlider({
	    	effect:"fade",
			slices:15,
			boxCols:8,
			boxRows:4,
			animSpeed:200,
			pauseTime:3000,
			startSlide:0,
			directionNav:true,
			directionNavHide:true,
			controlNav:true,
			controlNavThumbs:true,
			controlNavThumbsFromRel:true,
			keyboardNav:true,
			pauseOnHover:true,
			manualAdvance:false            
	    });
	
}); // end of window load

} // end of function existance check

$('nivo-control:last-child').css("margin-right","0px !important");

/* $('.history .goBack').replaceWith('<a class="backLink" href="#">Indietro</a>'); */
$(' .goBack').replaceWith('<a class="backLink" href="#">Indietro</a>');
$('.backLink').live('click',function(){
	history.go(-1);
	return false;
	});
	
});


  


