

jQuery(document).ready(function() {
	jQuery.fn.fancyzoom.defaultsOptions.imgDir='/pagemedia/jquery-ui/fancyzoom/'; //very important must finish with a /

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

	// Select all links with tozoom class, set the open animation time to 1000
	jQuery('a.tozoom').fancyzoom({Speed:1000});

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

});


