$(function() {
	//Set the default directory to find the images needed
	//by the plugin (closebtn.png, blank.gif, loading images ....)
	$.fn.fancyzoom.defaultsOptions.imgDir='/js/plugins/fancy_zoom/ressources/'; //very important must finish with a /

	// Select all links in object with gallery ID using the defaults options
	//$('#gallery a').fancyzoom(); 

	// Select all links with tozoom class, set the open animation time to 1000
	$('a.tozoom').fancyzoom({Speed:500/*,showoverlay:true,overlay:0.5*/});

	// Select all links set the overlay opacity to 80%
	//$('a').fancyzoom({overlay:0.8});
	
	//new rev > 1.2
	//apply fancyzoom effect on all image whose class is fancyzoom !!
	//$('img.fancyzoom').fancyzoom();


});
		
			