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_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_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 recommander()
{
	var existe = false;
	
	var top = (screen.height - 380) / 2;
	var left = (screen.width - 500) / 2;

	existe = window.open('http://www.utopies.com/envoyer.php?adresse='+window.location+'&choix='+choix+'&couleur='+couleur[choix-1],'envoyer','top='+top+',left='+left+',width=500,height=380');
	
	existe.focus();
}

function recommander_gb()
{
	var existe = false;
	
	var top = (screen.height - 380) / 2;
	var left = (screen.width - 500) / 2;

	existe = window.open('http://www.utopies.com/envoyer_gb.php?adresse='+window.location+'&choix='+choix+'&couleur='+couleur[choix-1],'envoyer','top='+top+',left='+left+',width=500,height=380');
	
	existe.focus();
}

function glossaire(ancre)
{
	var existe = false;
	var nom = new Array ("stakeholdersession", "partiesprenantes", "reporting", "etudesbenchmarking", "agencesnotation", "developpementdurable", "stakeholders", "agenda21", "triplebottomline", "biodiversite", "codedeconduite", "investissementethique", "globalcompact");
	var hauteur = new Array ("140", "220", "240", "300", "240", "220", "240", "240", "280", "220", "480", "160", "260");
	
	for (i=0 ; i<hauteur.length ; i++)
	{
		if (ancre == nom[i]) break;
	}
	
	var top = (screen.height - hauteur[i]) / 2;
	var left = (screen.width - 300) / 2;

	existe = window.open('http://www.utopies.com/glossaire.htm#'+ancre,ancre,'top='+top+',left='+left+',width=300,height='+hauteur[i]);
	
	existe.focus();
}

function intervenants(ancre)
{
	var existe = false;
	var nom = new Array ("roddick", "lemarchand", "hirschberg", "cohen", "rechelbacher", "heinz", "pauli" ,"anderson", "braungart", "browning", "mcdonough", "bremans", "gasser", "kayser", "silbert", "nowak", "colle", "henckel", "provin", "jaksch", "hamon", "hennon", "cohenj", "doyle", "monteillerthouvenot", "levequebossard", "vaxelairebernard", "hintzybarner", "dumonceau", "Buisson", "wimmer", "villejegudorfiac", "benetton", "taylor", "trellukane", "billimoria");
	var hauteur = new Array ("454", "310", "400", "382", "382", "382", "454", "382", "346", "454", "310", "220", "256", "328", "364", "418", "382", "454", "292", "328", "364", "328", "328", "436", "508", "400", "490", "328", "436", "382", "364", "436", "418", "436", "346", "256");
	
	for (i=0 ; i<hauteur.length ; i++)
	{
		if (ancre == nom[i]) break;
	}
	
	var top = (screen.height - hauteur[i]) / 2;
	var left = (screen.width - 500) / 2;

	existe = window.open('intervenants.htm#'+ancre,ancre,'top='+top+',left='+left+',width=500,height='+hauteur[i]);
	
	existe.focus();
}

function intervenants_gb(ancre)
{
	var existe = false;
	var nom = new Array ("roddick", "lemarchand", "hirschberg", "cohen", "rechelbacher", "heinz", "pauli" ,"anderson", "braungart", "browning", "mcdonough", "bremans", "gasser", "kayser", "silbert", "nowak", "colle", "henckel", "provin", "jaksch", "hamon", "hennon", "cohenj", "doyle", "monteillerthouvenot", "levequebossard", "vaxelairebernard", "hintzybarner", "dumonceau", "Buisson", "wimmer", "villejegudorfiac", "benetton", "taylor", "trellukane", "billimoria");
	var hauteur = new Array ("346", "310", "382", "364", "454", "274", "382", "364", "364", "382", "202", "202", "220", "292", "310", "346", "274", "328", "274", "382", "328", "328", "256", "364", "364", "400", "562", "292", "382", "310", "274", "418", "418", "346", "328", "274");
	
	for (i=0 ; i<hauteur.length ; i++)
	{
		if (ancre == nom[i]) break;
	}
	
	var top = (screen.height - hauteur[i]) / 2;
	var left = (screen.width - 500) / 2;

	existe = window.open('intervenants_gb.htm#'+ancre,ancre,'top='+top+',left='+left+',width=500,height='+hauteur[i]);
	
	existe.focus();
}

function email(nom) {
	domaine = "utopies.com";
	document.write('<a href=\"mailto:' + nom + '@' + domaine + '\" class=\"lien\">' + nom + '@' + domaine + '</a>');
}

function email2(nom) {
	domaine = "utopies.com";
	document.write('<a href=\"mailto:' + nom + '@' + domaine + '\" class=\"lien\">');
}

var choix;
if (document.cookie)
{
	var index = document.cookie.indexOf("interface");
	nDeb = (document.cookie.indexOf( "=", index) + 1);
	nFin = document.cookie.indexOf( ";", index);
	if (nFin == -1)
	{
		nFin = document.cookie.length;
	}
	choix = unescape(document.cookie.substring(nDeb, nFin));
}
else
{
	var le_choix = Math.round(Math.random(0)*7)+1;
	document.cookie = "interface="+ le_choix +";";
	choix = le_choix;
}

var couleur = new Array('5c784d','a42582','93c026','b22020','0B6A88','965C56','2aade5','37600f', '493278', '3e8f88', 'B73116', '028491');
var liste   = new Array('d3ae44','bf76ab','e7ba3f','6fccdd','358F91','d3bb99','DE7747','9cca70', '8e76bf', 'a6ad50', 'E9713F', '02cce0');

document.write("<style type=\"text/css\">.lien { color: "+couleur[choix-1]+"; }.lien:hover { color: "+couleur[choix-1]+"; }.liste { color: "+liste[choix-1]+"; }</style>");
document.write("<style type=\"text/css\">.lienRubMenu { font-family: Arial, Helvetica, sans-serif; color: #000000; font-size:12px; text-decoration: none; font-weight: bold;}.lienRubMenu:hover { color: "+couleur[choix-1]+"; }</style>");
document.write("<style type=\"text/css\">.accueil { font-family: Arial, Helvetica, sans-serif; color: #000000; font-size:12px; text-decoration: none; font-weight: bold;}.accueil:hover { color: "+couleur[choix-1]+"; }</style>");
document.write("<style type=\"text/css\">.lienSSRubMenu { font-family: Arial, Helvetica, sans-serif; color: #999999; font-size:12px; text-decoration: none;}.lienSSRubMenu:hover { color: "+couleur[choix-1]+"; }</style>");
document.write("<style type=\"text/css\">.lienSSSRubMenu { font-family: Arial, Helvetica, sans-serif; color: #c9c9c9; font-size:12px; text-decoration: none;}.lienSSSRubMenu:hover { color: "+couleur[choix-1]+"; }</style>");