// Gallery Hover Fade
//
jQuery.noConflict();
jQuery(document).ready(function() {

	jQuery("ul.gallery li").hover(function() { //On hover...

		var thumbOver = jQuery(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the <a> tag - Set position to bottom
		jQuery(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)
		jQuery(this).find(".fadeimage").stop().fadeOut('normal'), 0 , function() {
			jQuery(this).hide() //Hide the image after fade
		};
	} , function() { //on hover out...
		//Fade the image to full opacity 
		jQuery(this).find(".fadeimage").stop().fadeTo('normal', 1).show();
	});

});