Cufon.replace('.footer-title');
Cufon.now();

$(document).ready(function($){
	
	// Carte de France	
	
	var idDep;
	function recupIdDep(o){
		idDep = $(o).attr("id");
	};

	$("#carte area").bind("click", function(){
		recupIdDep(this);
		$(".agences-wrapper").css("display","block");
		$(".agences-list li").css("display","none");
		$('#D'+idDep).css("display","block");
	});
	$("#close").click(function(){ 
    $(".agences-wrapper").css("display","none");
	}); 
	$(".agences-wrapper").click(function(){
	$(".agences-wrapper").css("display","none");
	});
	
	// tooltip
	$(".thumb a[title]").qtip({
    style: { 
      width: 200,
      padding: 5,
      background: '#ffffff',
      color: 'black',
      border: {
         width: 2,
         radius: 5,
         color: '#d4dee1'
      },
	   tip: 'topMiddle'
    },
	position: {
      corner: {
         target: 'bottomMiddle',
         tooltip: 'topMiddle'
      }
    }
	});
	
	// lightbox
	$('a.lightbox').lightbox();

});
