function switch_actif(name,num)
{
	for(i=0;i<=6;i++)
	{
		var titre = document.getElementById('label_'+name+i);
		if(titre)
		{
			if(num == i) {
				titre.className='actif';
			}
			else {
				titre.className='';
			}
		}
		
		var bloc = document.getElementById(name+i);
		if(bloc)
		{
			if(num == i) {
				bloc.className='bloc_switch actif';
			}
			else {
				bloc.className='bloc_switch';
			}
		}
	}
}
function show(idDiv) {
	var div = document.getElementById(idDiv);
	if(div)
	{
		if(div.style.display == "none") {
			div.style.display = 'block';		
		} else {
			div.style.display = 'none';	
		}
	}
}
function montrer(idDiv) {
	var div = document.getElementById(idDiv);
	if(div)
	{
			div.style.display = 'block';		
	}
}
function cacher(idDiv) {
	var div = document.getElementById(idDiv);
	if(div)
	{
			div.style.display = 'none';		
	}
}


function nl2br(Mytexte) {

    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Philip Peterson
    // *     example 1: nl2br('Kevin\nvan\nZonneveld');
    // *     returns 1: 'Kevin<br/>\nvan<br/>\nZonneveld'
	Mytexte.replace(/([^>])\n/g, '$1<br />\n');

    return Mytexte;
}

function popup(url,largeur,hauteur){
   window.open(url,"Selection Voyance","menubar=no, status=no, scrollbars=yes, menubar=no, width="+largeur+", height="+hauteur+"");
}

$(function() {
	$('.bloc_photos a').lightBox({fixedNavigation:true});
});


