// JavaScript Document
/*
 * Author : Germain Guglielmetti
 * Company : ashorlivs
 * URL : www.ashorlivs.fr
 */

// menus déroulants
$(document).ready(function(){
	$("#menu div").each(function(){
		$(this).mouseover(function(){
			$(this).children("ul").slideDown("fast");
			if($.browser.msie) {
					var hauteur = $(this).width();
					$(this).children("ul").css({marginLeft:"-"+hauteur+"px"});
			}
			$(this).prev().children("ul").fadeOut("fast");
			$(this).siblings().children("ul").fadeOut("fast");
		});
	});
	$("#colonnes").mouseover(function(){
		$("#menu div ul").fadeOut("fast");
	});
	
	$(function() {
		/*
		// Use this example, or...
		$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
		// This, or...
		$('#gallery a').lightBox(); // Select all links in object with gallery ID
		// This, or...
		$('a').lightBox(); // Select all links in the page
		// ... The possibility are many. Use your creative or choose one in the examples above
		*/
		$('a.lightbox').lightBox({
			overlayBgColor: '#FFF',
			overlayOpacity: 0.6,
			imageBlank:	  'squelettes/img/lightbox/blank.gif',
			imageLoading: 'squelettes/img/lightbox/loading.gif',
			imageBtnClose:'squelettes/img/lightbox/close.gif',
			imageBtnPrev: 'squelettes/img/lightbox/prev.gif',
			imageBtnNext: 'squelettes/img/lightbox/next.gif'						 
		}); // Select all links with lightbox class
	});
 
});
	
	
	
