
$(document).ready(function($){
  
  //$('a.lightbox').lightBox();


  $(".popup").click(function(){ 
    window.open($(this).attr("href")); 
    return false; 
	}); 
  
  $("body").addClass($.browser+$.browser.version.substr(0,1));
	
	$.each($.browser, function(i, val) {
 	 if(i=="msie" && $.browser.version.substr(0,3)=="6.0"){
	 $.getScript("http://wwwdata.appli-box.com/scripts/pngfix.js");
	 $.getScript("http://wwwdata.appli-box.com/scripts/minmax.js");
	 }
	});	
	
	 // Carte de France	
	$("#adressList li:eq(1)").fadeIn("slow");

	$("area").click(function(){
	  $("#adressList li").hide();
	  $(this).next("div").fadeIn("slow");
	  $(this).parent("li").toggleClass("active");
	  $(this).parent("li").siblings("li").removeClass("active");
	});
	
	$("#adressList li:not(:first)").hide();
	
	var idDep;
	function recupIdDep(o){
		idDep = $(o).attr("id");
	};

	$("area").bind("click", function(){
		recupIdDep(this);
		$("#agenceList li").hide();
		$('#li_'+idDep).fadeIn("slow");
	});
  
});

