function flash_profil(fichier) 
{ 
document.write('<object classid="clsid:d27cdb6e-..." width="560" height="82" >\n'); 
document.write('<param name="movie" value="'+ fichier +'">\n'); 
document.write('<embed src="'+ fichier +'" width="560" height="82" type="application/x-shockwave-flash">\n'); 
document.write('</embed>\n'); 
document.write('</object>\n'); 
} 




function flash_A(fichier) 
{ 
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="990" height="700">\n'); 
document.write('<param name="movie" value="'+ fichier +'"  >\n'); 
document.write('<embed src="'+ fichier +'" width="900" height="700" type="application/x-shockwave-flash">\n'); 
document.write('</embed>\n'); 
document.write('</object>\n'); 
} 

function flash_inc(fichier,largeur,hauteur,classid) 
{ 
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+largeur+'" height="'+hauteur+'">\n'); 
document.write('<param name="movie" value="'+ fichier +'"  >\n'); 
document.write('<embed src="'+ fichier +'" width="'+largeur+'" height="'+hauteur+'" type="application/x-shockwave-flash">\n'); 
document.write('</embed>\n'); 
document.write('</object>\n'); 
} 



function popupcentree(page,largeur,hauteur,options) {
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}


//window.onload=montre;
/*
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=5; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
*/



window.onload=montre;


function seb() {
	alert("ici");	
}


function montre(id) {

	var d = document.getElementById(id);



	for (var i = 1; i<=10; i++) {

		if (document.getElementById(i+'smenu')) {document.getElementById(i+'smenu').style.display='none';}

		for (var i2 = 1; i2<=10; i2++) {

			if (document.getElementById(i+'sousmenu'+i2)) {document.getElementById(i+'sousmenu'+i2).style.display='none';}

		}

	}

	if (d) {
	
		var chaine = id;
	
		n = chaine.charAt(0);
	
		d.style.display='block';
	
		document.getElementById(n+'smenu').style.display='block';
	
	}


}


function ouvreUrl(url) {

		window.location.href = url

}




/*-----------------------------------------------------------------------------

 * Méthode                    : setDisplay

 * Action                       : Affiche un objet à l'écran 

 * Paramètres    : objet à manipuler

 *-----------------------------------------------------------------------------*/

function setDisplay(obj,obj2) {

            if(obj) obj.style.display="";

}

 

/*-----------------------------------------------------------------------------

 * Méthode                    : noDisplay

 * Action                       : Cache un objet à l'écran 

 * Paramètres    : objet à manipuler

 *-----------------------------------------------------------------------------*/

function noDisplay(obj) {

            if(obj) obj.style.display='none';

}


function bascule(elem)
{

// Quel est l'état actuel ?
etat=document.getElementById(elem).style.visibility;
if(etat=="hidden"){document.getElementById(elem).style.visibility="visible";}
else{document.getElementById(elem).style.visibility="hidden";}
}





function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function changeto(highlightcolor){
  obj=event.srcElement
  if (obj.tagName=="TR" || obj.tagName=="TABLE") return
  while(obj.tagName!="TR") obj=obj.parentElement
  if (obj.style.backgroundColor!=highlightcolor && obj.id!="ignore")
    obj.style.backgroundColor=highlightcolor
  }


function changeback(originalcolor){
  if (event.fromElement.contains(event.toElement) || obj.contains(event.toElement) || obj.id=="ignore")
      return
  if (event.toElement!=obj) obj.style.backgroundColor=originalcolor
  }

function affiche_item(item) {

	//alert(item);
	//alert('item_'+item);

	if ((MM_findObj('item_'+item).style.display)=='') {
		MM_findObj('item_'+item).style.display = 'none';
	} else {
		MM_findObj('item_'+item).style.display = '';
	}

}




sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}


