var v_lang;

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

function navigate(_lang) {

	v_lang = _lang;
	
	$.ajax({
		url: "./inc/" + _lang +  ".html",
		cache: false,
		success: function(_html){
				
				$("#contenu").fadeOut(200, function () {
					$(this).html( _html ).fadeIn(500);
					if(_lang == "FR" ){
						$('h1>img').attr('src', 'img/danseElargie_entete.png');
						$('h1>img').attr('alt', 'Danse Élargie, le 26 et 27 juin 2010. Organisée par le Théâtre de la ville et le Musée de la danse.');
					}
					else{
						$('h1>img').attr('src', 'img/danseElargie_entete_en.png');
						$('h1>img').attr('alt', 'Danse Élargie, saturday 26 and sunday 27 june 2010. A contest imagined by Musée de la Danse in Rennes and Théâtre de la Ville in Paris.');
					}
					//init();
				});
		}
	});

}

function init(){
	
	$("#mail").html('Contact <a href="mailto:danse.elargie@theatredelaville.com">danse.elargie@theatredelaville.com</a>');
	
	// $('#langage').click( function () {
	// 		$(this).hasClass("fr")? navigate("FR") : navigate("EN");
	// 		return false;
	// 	});
	
}
