var leformat;
leformat="";

var charge;
charge=0;

var actif;

var Oactif;

var postitCharge;
postitCharge='0';

function initFormat(){
/*
// INIT DU MENU 2
	
	tit2="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Présentation</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";	
	
// INIT DU MENU 3
	
	tit3="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Gamme cosmétiques</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
	
// INIT DU MENU 4
	
	tit4="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Soins du corps</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
	
// INIT DU MENU 5
	
	tit5="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Soins du visage</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
	
// INIT DU MENU 6
	
	tit6="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Epilations</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
	
// INIT DU MENU 7
	
	tit7="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Maquillages</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
	
// INIT DU MENU 8
	
	tit8="<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><span id=letitre class=txtblanc>&nbsp;&nbsp;Contacts</span></td><td><img src='images/croix.jpg' border=0 style={cursor:hand} onclick='denavigue()' /</td></tr></table>";
*/
	charge=1;
	actif='0';
	Oactif='0';
	eg0= new Image();
	eg1= new Image();
	eg2= new Image();
	eg3= new Image();
	eg4= new Image();
	eg5= new Image();
	eg6= new Image();
	eg0.src = "images/a2_1m.jpg";
	eg1.src = "images/a3_1m.jpg";
	eg2.src = "images/a4_1m.jpg";
	eg3.src = "images/a5_1m.jpg";
	eg4.src = "images/a6_1m.jpg";
	eg5.src = "images/a7_1m.jpg";
	eg6.src = "images/a8_1m.jpg";
	
	eg31= new Image();
	eg32= new Image();
	eg33= new Image();
	eg31.src = "images/ong31.gif";
	eg32.src = "images/ong32.gif";
	eg33.src = "images/ong33.gif";

	
	eg61= new Image();
	eg62= new Image();
	eg63= new Image();
	eg64= new Image();
	eg61.src = "images/ong61.gif";
	eg62.src = "images/ong62.gif";
	eg63.src = "images/ong63.gif";
	eg64.src = "images/ong64.gif";
	
	setTimeout("navigueInit()",5000);
	
}

function rien(){
	var i;
	i=i+1;
}

function denavigue(){
	desactiveIm2(actif);
	actif='0';
	Effect.Fade('lecadre');
}


function clickOng(n,m){
	if (Oactif!=(n+''+m)){
		Oactif=n+''+m;
		$('ong'+n).innerHTML=$('ong'+n+m).innerHTML;
	}
	if(n==3){
		$('iong31').src=eg31.src;
		$('iong32').src=eg32.src;
		$('iong33').src=eg33.src;
		eg_actif=new Image( );
		eg_actif.src="images/aong"+n+m+".gif";
		$('iong3'+m).src=eg_actif.src;
	}
	if(n==6){
		$('iong61').src=eg61.src;
		$('iong62').src=eg62.src;
		$('iong63').src=eg63.src;
		$('iong64').src=eg64.src;
		eg_actif=new Image( );
		eg_actif.src="images/aong"+n+m+".gif";
		$('iong6'+m).src=eg_actif.src;
	}	
}

function navigue(num){
	if(charge>0){
		$('titre').innerHTML = $('tit'+num).innerHTML;
		$('contenu').innerHTML = $('cont'+num).innerHTML;

		if (actif=='0'){
			Effect.Appear('lecadre');
		}		
		if(actif!='0'){
			eg_off=new Image( );
			eg_off.src = "images/"+actif+"_1m.jpg";
			$(actif).src=eg_off.src;
			Effect.Appear('lecadre');
		}
		if(num==3){
			clickOng(num,'1');
		}else{
			if(num==6){
				clickOng(num,'1');
			}else{
				Oactif='0';
			}
		}
		actif=num;
	}
}

function navigueInit(){
	if(actif=='0'){
		activeIm2('2');
		navigue('2');
	}
}

function activeIm(obj,num){
	if(charge>0){
		eg_on = new Image ( );
		eg_on.src = "images/a"+num+"_1m.jpg";

		obj.src=eg_on.src;
	}
}

function desactiveIm(obj,num){
	var plus;
	plus="";
	if(num==actif) plus="a";
	if(charge>0){
		eg_off = new Image ( );
		eg_off.src = "images/"+plus+num+"_1m.jpg";
	
		obj.src=eg_off.src;
	}
}

function desactiveIm2(n){
	eg_off = new Image ( );
	eg_off.src = "images/"+n+"_1m.jpg";

	$(n).src=eg_off.src;
}

function activeIm2(n){
	eg_off = new Image ( );
	eg_off.src = "images/a"+n+"_1m.jpg";

	$(n).src=eg_off.src;
}

function affichePhotos(){
	Pub=window.open('photos.php?ph=1','pub','toolbar=no,location=no,menubar=no,scrollbars=no,status=no,resizable=1,leftmargin=0,marginwidth=0,topmargin=0,marginheight=0,width=750,height=555');
}

function affichePlan(){
	Pub=window.open('plan.htm','pub','toolbar=no,location=no,menubar=no,scrollbars=no,status=no,resizable=1,leftmargin=0,marginwidth=0,topmargin=0,marginheight=0,width=582,height=492');
}

function affPostit(letexte){
	if (postitCharge==0){
		$('postit').innerHTML=letexte;
		$('postit').style.display='block';
		postitCharge=1;
	}
	$('postit').style.left=window.event.clientX+10;
	$('postit').style.top=window.event.clientY+10;
}

function effPostit(){
	postitCharge=0;
	$('postit').style.display='none';
	$('postit').style.left=0;
	$('postit').style.top=0;
}


