$(function() {
	//BORDER CSS:
	// DIV.jqfancyzoombox img { border: 5px solid #fff; }
	$.fn.fancyzoom.defaultsOptions.imgDir='fzoom/ressources/';

	$('#newsGalerie a').fancyzoom({
    	overlayColor: '#000',
    	overlay: 0.0,
    	imagezindex:100,
    	showoverlay:true,
    	Speed:400,
    	shadow:true,
    	shadowOpts:{ color: "#000", offset: 0, opacity: 0.5 },
    	imgResizeScript:null,
    	autoresize:true,
		borderOpts:{ border: '3px solid #fff', background: '#fff','padding':0 }
 	 });
	$('.cImageTable a').fancyzoom({
    	overlayColor: '#000',
    	overlay: 0.0,
    	imagezindex:100,
    	showoverlay:true,
    	Speed:400,
    	shadow:true,
    	shadowOpts:{ color: "#000", offset: 0, opacity: 0.5 },
    	imgResizeScript:null,
    	autoresize:true,
		borderOpts:{ border: '3px solid #fff', background: '#fff','padding':0 }
 	 });
	// 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 rev > 1.2
	//apply fancyzoom effect on all image whose class is fancyzoom !!
	//$('img.fancyzoom').fancyzoom();
});
