// PNG transparent sous internet Explorer
function IE_CorrectAlpha_PNG(){ 
for(i=0; i<document.images.length; i++){ 
img    = document.images[i]; 
imgExt  = img.src.substring(img.src.length-3, img.src.length); 
imgExt  = imgExt.toUpperCase(); 
if (imgExt == "PNG"){ 
imgID    = (img.id) ? "id='" + img.id + "' " : ""; 
imgClass= (img.className) ? "class='" + img.className + "' " : ""; 
imgTitle= (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "; 
imgStyle= "display:inline-block;" + img.style.cssText; 
if (img.align == "left") { imgStyle = "float:left;"  + imgStyle; } else if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; } 
if (img.parentElement.href)   { imgStyle = "cursor:hand;" + imgStyle; }        
strNewHTML    = '<span '+imgID+imgClass+imgTitle+' style="width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\', sizingMethod=\'scale\');"></span>'; 
img.outerHTML = strNewHTML; 
i = i-1; 
}}} 
window.attachEvent("onload", IE_CorrectAlpha_PNG);
// Initialisation du menu
function initialisation(valeur){
	for (i=0; i<document.formulaire.nombre_rubrique.value; i++)
	{
		u=i+1;
		document.getElementById("enf_" + u).style.display="none";
	}
	if (valeur!="sans_lien"){
		tableau_valeur	=	valeur.split("_");
		valeur_parente	=	"enf_"	+	tableau_valeur[1];
		document.getElementById(valeur_parente).style.display="block";
		document.formulaire.rubrique.value=valeur_parente;
		document.getElementById(valeur).style.listStyleImage="url(gif/forme_liste.gif)";
		}
}
// fonction Menu de navigation
function active_menu(objet){
		for (i=0; i<document.formulaire.nombre_rubrique.value; i++)
	{
		u=i+1
		valeur_objet = "enf_" + u;
		if (objet == valeur_objet && document.formulaire.rubrique.value==objet)	{
			document.getElementById(valeur_objet).style.display="none";
			document.formulaire.rubrique.value="";
		}else if(objet == valeur_objet && document.formulaire.rubrique.value!=objet){
			document.getElementById(valeur_objet).style.display="block";
			document.formulaire.rubrique.value=objet;
		}else{
		document.getElementById(valeur_objet).style.display="none";
		}
	}	
}
// Décoration des liens
function list_deco(valeur){
	tableau_valeur	=	valeur.split("_");	
	valeur_parente	=	"par_"	+	tableau_valeur[1]	+	"_"	+	tableau_valeur[2];
	document.getElementById(valeur_parente).style.listStyleImage="url(gif/forme_liste.gif)";
}
// Suppression Décoration des liens
function list_deco_n(valeur){
	tableau_valeur	=	valeur.split("_");	
	valeur_parente	=	"par_"	+	tableau_valeur[1]	+	"_"	+	tableau_valeur[2];
	document.getElementById(valeur_parente).style.listStyleImage="url(gif/forme_liste_none.gif)";	
}
// SELECTION DES RUBRIQUES
function selection_rubrique(valeur){
	if (valeur!="accueil" && valeur!="competences" && valeur!="contact"){
		top.location.href	=	"index.php?rubrique="+valeur;
	} else if (valeur=="competences" && valeur!="contact"){
		alert('Cette rubrique est en cours de construction !');
	}else if (valeur=="contact"){
		top.location.href	=	"contact-pta.php";
	}else{
		top.location.href	=	"index.php";
	}
}
// ZOOM IMAGES
function zoom_pop(image){
	window.open("zoom.php?fichier_image="+image,"zoom_pop","width=10,height=0,top=-50,left=-50");
}