jQuery(function($){

	$('#gallery a').lightBox(
		{
			fixedNavigation:true,
			imageLoading:			'/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			'/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			'/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:			'/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				'/images/lightbox-blank.gif'			// (string) Path and the name of a blank image (one pixel)
		}
	);
	/*
	 * MENU
	 */
 //$('#menu ul').jdMenu();



//	$('#menu li ul li').each(function ()
//	{
//		var item = $(this)
//		item.hover(
//		function (){
//			var item = $(this);
//			if(!item.hasClass('currentpage'))
//				item.css('background-color','#EDB601')
//		},
//		function(){
//			var item = $(this);
//			if(!item.hasClass('currentpage'))
//				item.css('background-color','transparent')
//		})
//	})

	function openSubmenu(obj)
	{
		obj.stop().show();
	}

	var opened_item = false;

	var items = $("#menu > ul > li");
	items.find('ul').hide();

	items.each(function() {
		$(this).hover( function(){
		

		var item = $(this).find('ul');
		if (item.length == 1)
		{
			// Si menu ouvert, on arrête l'animation & on le ferme:
			if (opened_item && opened_item.is(':visible'))
			{
				opened_item.hide();
			}
			else
			{
				openSubmenu(item);
			}
			opened_item = item;
		}
		// var item = $("ul", this);
		// item.fadeIn(400);
	});
	});
});

jQuery.noConflict();

//
//
//
//	/*
//	 * DROP DOWN
//	 */
//$.fn.hoverClass = function(c) {
//	return this.each(function(){
//		$(this).hover(
//			function() { $(this).addClass(c);  },
//			function() { $(this).removeClass(c); }
//		);
//	});
//};

