// JavaScript Document

$(document).ready(function() {

var $j = jQuery.noConflict();


	//** LAST LI **//
	$j('#primary li:last-child').addClass('last');
	$j('.gallery dl.gallery-item:nth-child(3n)').css('margin-right', '0');
	$j('.gallery .gallery-item').append('<div class="loupe"></div>');
    

	//** SLIDE **//
	$j('.entry-content').hover(
		function() {
			$j(this).find('.title-caption-slide, .entry-utility').stop(true, false).animate({
				opacity: 0.9,
			}, 200, function() {
			// Animation complete.
		});
	}, 
		function () {
			$j(this).find('.title-caption-slide, .entry-utility').stop(true, false).animate({
				opacity: 0,
			}, 100, function() {
	
		});
	}
	);
	
	//* FANCY BOX *// //* le noconflit ne marche pas en dev *//
	
    $('.gallery .gallery-item a').fancybox({
    	'titleShow' : false,
    	'padding' : 10,
    	'hideOnContentClick' : true
    	});
    	
    $('.single .the-article .entry-content a').fancybox({
    	'titleShow' : false,
    	'padding' : 10,
    	'hideOnContentClick' : true
    	});
});

