var baseopacity=0;
	
/* procedure permettant d'afficher une image (icone) */ 
function showImage(image){
	if (!document.getElementById)
		return
		textcontainerobj=document.getElementById("tabledescription")
		browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
		instantset(baseopacity)
		document.getElementById("tabledescription").innerHTML=image
		highlighting=setInterval("gradualfade(textcontainerobj)",50)
}
	
/* procedure permettant de cacher une image (icone) */
function hideImage(){
	cleartimer()
	instantset(baseopacity)
}

/* procedure permettant d'instancier menu de naviguation du site */
function instantset(degree){
	if (browserdetect=="mozilla")
	textcontainerobj.style.MozOpacity=degree/100
	else if (browserdetect=="ie")
	textcontainerobj.filters.alpha.opacity=degree
	else if (document.getElementById && baseopacity==0)
	document.getElementById("tabledescription").innerHTML=""
}

/* procedure permettant de regler affichage menu de naviguation du site */
function cleartimer(){
	if (window.highlighting) clearInterval(highlighting)
}

/* procedure permettant de regler affichage menu de naviguation du site */
function gradualfade(cur2){
	if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
		cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
	else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=20
	else if (window.highlighting)
		clearInterval(highlighting)
}

/* création de l'adresse email pour le mailto anti-spam */
function ecrireMail(pNom, pDomaine)
{
	vEmail = "m"+"a"+"i"+"l"+"t"+"o"+":";
	vNom = pNom.replace(" ", ".");
	vEmail = vEmail+vNom+"@"+pDomaine+".ch"
	return(vEmail);
}

/* centre l'ouverture de la galerie photo */
function PopupCentrer(page,largeur,hauteur,op) {
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+op);
}

function rubriques(n)
{
	if(n == 1)
       {
        document.getElementById("zone_rubriques").innerHTML = '<a href="ritmodacapo.php" STYLE="color:#FFFFFF">ritmo da capoeira</a> . <a href="ailleurs.php" STYLE="color:#FFFFFF">ailleurs</a>';
        }
        if(n == 2)
        {
        document.getElementById("zone_rubriques").innerHTML = '<a href="assos_histoire.php" STYLE="color:#FFFFFF"> l\'association</a> . <a href="coxinha.php" STYLE="color:#FFFFFF">professeur Coxinha</a> . <a href="cours.php" STYLE="color:#FFFFFF">les cours</a> . <a href="spectacles.php" STYLE="color:#FFFFFF">spectacles et démos</a>';
        }
        if(n == 3)
        {
        document.getElementById("zone_rubriques").innerHTML = '<a href="capo_histoire.php" STYLE="color:#FFFFFF">histoire de la capoeira</a> . <a href="senzala.php" STYLE="color:#FFFFFF">le groupe Senzala</a> . <a href="musique.php" STYLE="color:#FFFFFF">musique</a>';
        }
		 if(n == 4)
        {
        document.getElementById("zone_rubriques").innerHTML = '<a href="photos.php" STYLE="color:#FFFFFF">photos</a> . <a href="videos.php" STYLE="color:#FFFFFF">vidéos</a> ';
        }
		 if(n == 5)
        {
        document.getElementById("zone_rubriques").innerHTML = '<a href="lien_capoeira.php" STYLE="color:#FFFFFF">capoeira</a> . <a href="lien_bresil.php" STYLE="color:#FFFFFF">bresil / amérique latine</a> ';
        }
}

function twFermer() {
  window.close();
}









