   jQuery.noConflict();

jQuery(document).ready(function() {

	//move the image in pixel
	var move = -15;

	//zoom percentage, 1.2 =120%
	var zoom = 1.2;

	//On mouse over those thumbnail
	jQuery('.item').hover(function() {

		//Set the width and height according to the zoom percentage
		width = jQuery('.item').width() * zoom;
		height = jQuery('.item').height() * zoom;

		//Move and zoom the image
		jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});

		//Display the caption
		jQuery(this).find('div.caption').stop(false,true).fadeIn(200);
	},
	function() {
		//Reset the image
		jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.item').width(), 'height':jQuery('.item').height(), 'top':'0', 'left':'0'}, {duration:100});	

		//Hide the caption
		jQuery(this).find('div.caption').stop(false,true).fadeOut(200);
	});
	
	 jQuery('.item').each(function() {
	    var realUrl = jQuery(this).find('a').attr('href');
	    jQuery(this).attr('url',realUrl);
	  });

	  jQuery(".item").click(function() {
	    window.location = jQuery(this).attr("url");
	    return false;
	  });
	

		//move the image in pixel
		var move = -15;

		//zoom percentage, 1.2 =120%
		var zoom = 1.2;

		//On mouse over those thumbnail
		jQuery('.itemsmall').hover(function() {

			//Set the width and height according to the zoom percentage
			width = jQuery('.itemsmall').width() * zoom;
			height = jQuery('.itemsmall').height() * zoom;

			//Move and zoom the image
			jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});

			//Display the caption
			jQuery(this).find('div.captionsmall').stop(false,true).fadeIn(200);
		},
		function() {
			//Reset the image
			jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.itemsmall').width(), 'height':jQuery('.itemsmall').height(), 'top':'0', 'left':'0'}, {duration:100});	

			//Hide the caption
			jQuery(this).find('div.captionsmall').stop(false,true).fadeOut(200);
		});


		 jQuery('.itemsmall').each(function() {
		    var realUrl = jQuery(this).find('a').attr('href');
		    jQuery(this).attr('url',realUrl);
		  });

		  jQuery(".itemsmall").click(function() {
		    window.location = jQuery(this).attr("url");
		    return false;
		  });
 		
		//move the image in pixel
		var move = -15;

		//zoom percentage, 1.2 =120%
		var zoom = 1.2;

		//On mouse over those thumbnail
		jQuery('.itemlarge').hover(function() {

			//Set the width and height according to the zoom percentage
			width = jQuery('.itemlarge').width() * zoom;
			height = jQuery('.itemlarge').height() * zoom;

			//Move and zoom the image
			jQuery(this).find('img').stop(false,true).animate({'width':width, 'height':height, 'top':move, 'left':move}, {duration:200});

			//Display the caption
			jQuery(this).find('div.captionlarge').stop(false,true).fadeIn(200);
		},
		function() {
			//Reset the image
			jQuery(this).find('img').stop(false,true).animate({'width':jQuery('.itemlarge').width(), 'height':jQuery('.itemlarge').height(), 'top':'0', 'left':'0'}, {duration:100});	

			//Hide the caption
			jQuery(this).find('div.captionlarge').stop(false,true).fadeOut(200);
		});

	
		 jQuery('.itemlarge').each(function() {
		    var realUrl = jQuery(this).find('a').attr('href');
		    jQuery(this).attr('url',realUrl);
		  });

		  jQuery(".itemlarge").click(function() {
		    window.location = jQuery(this).attr("url");
		    return false;
		  });

	});
