// adds the fading effect when an image is wraped with an anchor tag and a animation class added to it
$(window).load(function(){

	$(".gallery-item a, .image-box a, .image-box a.video").hover(function(){
		$("img", this).stop().animate({ "opacity": 0.3 }, 400);
		}, function() {
		$("img", this).stop().animate({ "opacity": 1 }, 250);
	});
	
	
});

// Adds prettyphoto relevence to the gallery shortcode when used inside of a template.
$(document).ready(function(){

   $(".gallery-icon a").prettyPhoto();

});
	


