jQuery.noConflict(); 
jQuery(function($) { jQuery('ul.gallery').galleria({
    history   : false,
	insert    : ".gallery-main",
	clickNext : true,
	onImage   : function(image,caption,thumb) { // let's add some image effects for demonstration purposes
				
				// fade in the image & caption
				if(! ($.browser.mozilla && navigator.appVersion.indexOf("Win")!=-1) ) { // FF/Win fades large images terribly slow
					image.css('display','none').fadeIn(700);
				}
				//caption.css('display','none').fadeIn(700);
				
				// fetch the thumbnail container
				var _li = thumb.parents('li');
				
				// fade out inactive thumbnail
				_li.siblings().children('img.selected').fadeTo(500,0.3);
				
				// fade in active thumbnail
				thumb.fadeTo('fast',1).addClass('selected');
				
				// add a title for the clickable image
				image.attr('title','Next image >>');
				
				$('.gallery-main').trigger('img_change');
			}
	});
});

