Cufon.replace('nav ul li a, h2, dt');

$(document).ready(function() {
	
	// lang switcher
	$('#lang-select').change(function() {
		switch($(this).val()) {
			case 'fr':
				window.location = '../fr/';
				break;
			case 'en':
				window.location = '../en/';
				break;
			default:
				break;
		}
	});
	
	// home : liste pays
	$('ul.pays li ul').hide();
	$('ul.pays > li').click(function() {
		/*
		$('ul.pays > li').css({'clear': 'none'});
		var index = $(this).index()+1;
		if(index/3 == Math.round(index/3)) {
			// colonne 3
			// dans ce cas il n'y a rien à faire (pas de décalage)
		} else if((index+1)/3 == Math.round((index+1)/3)) {
			// colonne 2
			$(this).next().next().css({'clear': 'both'});
		} else {
			// colonne 1
			$(this).next().next().next().css({'clear': 'both'});
		}
		*/
		$('ul.pays li ul').hide();
		$(this).children('ul').slideDown();
	});
	
	// page contact : accordéon
	$('.accordion').accordion();
	
});

