$(document).ready(function(){
	
$.fn.fancyzoom.defaultsOptions.imgDir='/Scripts/resources/';

// Select all links in object with gallery ID using the defaults options
$('.samples a').fancyzoom(); 

// Select all links with tozoom class, set the open animation time to 1000
$('a.tozoom').fancyzoom({Speed:1000});

// Select all links set the overlay opacity to 80%
$('a').fancyzoom({overlay:0.8});

//New, you can now apply the fancy zoom effect on an image
//apply the fancyzoom effect on all images that have the fancyzoom class
$("img.fancyzoom").fancyzoom();

});