// FONCTION OBSOLETE depuis utilisation de SWFobject...
// function Media(id, media){if (document.getElementById) {document.getElementById(id).innerHTML = media;}}

function sendUrl(){
// url = window.location;
// titre = document.title;
// sujet = "Je pense que ce site va t\'intéresser...";

// window.location = "mailto:?subject="+sujet+"&body=Je te recommande cette page :    "+titre+" "+url;



chaine_mail = "mailto:?subject=Je pense que ce site va t\'interesser";
chaine_mail += "&body= Je te recommande cette page, consultable a l\'adresse : " + location.href;
location.href = chaine_mail; 
}



function favoris(){
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {
window.external.AddFavorite(window.location, document.title);
}
else{alert('Désolé, cette fonction est uniquement disponible pour Internet Explorer !');}
}

// CLIGNOTMENT D'ELEMENT => N'IMPORTE QUEL BALISE AVEC ID AD HOC

// memo de la variable initiale qui permet de ne pas lancer la focntion plusieurs fois
// simultanément : elle doit être termiinée pour pouvoir la relancer.
start_clignote = true;

function clignote(id){
	// Il faut utiliser une balise span pour encadrer l'élément qui doit clignoter
	// Avec color, ça ne fonctionnait pas bien sur Firefoxe, alors j'ai pris visibility
	// de plus ca permet d'agit sur n'importe quel élément sans tenir compte de sa couleur initiale
	// ni de son encombrement
	if(document.getElementById(id).style.visibility=="visible"){document.getElementById(id).style.visibility="hidden";}
	else{document.getElementById(id).style.visibility="visible";}
}

function clignotement(id){
	if(start_clignote == false){
		stop_clignote(premid);
	}	
	if(start_clignote == true){
		premid=id; // memo de la 1ere id => on peut ensuite stopper l'une et faire clignoter l'autre...
		start_clignote = false;
		T=setInterval("clignote('"+premid+"')", 150);
		U=setTimeout("stop_clignote('"+premid+"')",4000);
	}
}
function stop_clignote(id){
	document.getElementById(id).style.visibility="visible";
	clearInterval(T);
	clearTimeout(U);
	start_clignote = true;
}
function force_clignotement(adresse,id){ // a utiliser pour un lien clignotant SANS CHANGEMENT DE PAGE
	window.location.href=adresse;
	clignotement(id);
}



// Fonctions standards dreamweaver

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];}
}
