function mail(prenom,nom,nome,nome2,site) {
fenetre=window.open("","courriel","toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=no,resizable=1,width=300,height=150,innerWidth=300,innerHeight=150");
fenetre.moveTo( ( screen.availWidth - 300 ) / 2 , (screen.availHeight - 150 ) /2 );
fenetre.document.write("<html><head><title>Contacter "+prenom+" "+nom+"</title>");
fenetre.document.write("<style type=text/css><!--a {text-decoration: underlined; color : #FFFFFF; font-weight: bold} a:hover {text-decoration: none; color : #FFFFFF; font-weight: bold} p {  font-family: Arial, Verdana, Helvetica; font-size: 12pt; color: #FFFFFF} .petit {font-size: 9pt;}-->");
fenetre.document.write("</style><script language=javascript type=text/javascript>");
fenetre.document.write("setTimeout(\'window.close()\',10000)</script></head>");
fenetre.document.write("<body bgcolor=#006600>");
fenetre.document.write("<p align=center>Pour envoyer un courriel &agrave;<br><br>"+prenom+" "+nom+" :<br><br>");
fenetre.document.write("<a href=mailto:"+nome+"."+nome2+"@"+site+"?subject=from%20Asmanet/SP2A>Cliquez ici</a></p></body></html>");
}

function mailsanspoint(prenom,nom,nome,site) {
fenetre=window.open("","courriel","toolbar=no,menubar=no,location=no,directories=no,status=no,scrollbars=no,resizable=1,width=300,height=150,innerWidth=300,innerHeight=150");
fenetre.moveTo( ( screen.availWidth - 300 ) / 2 , (screen.availHeight - 150 ) /2 );
fenetre.document.write("<html><head><title>Contacter "+prenom+" "+nom+"</title>");
fenetre.document.write("<style type=text/css><!--a {text-decoration: underlined; color : #FFFFFF; font-weight: bold} a:hover {text-decoration: none; color : #FFFFFF; font-weight: bold} p {  font-family: Arial, Verdana, Helvetica; font-size: 12pt; color: #FFFFFF} .petit {font-size: 9pt;}-->");
fenetre.document.write("</style><script language=javascript type=text/javascript>");
fenetre.document.write("setTimeout(\'window.close()\',10000)</script></head>");
fenetre.document.write("<body bgcolor=#006600>");
fenetre.document.write("<p align=center>Pour envoyer un courriel &agrave;<br><br>"+prenom+" "+nom+" :<br><br>");
fenetre.document.write("<a href=mailto:"+nome+"@"+site+"?subject=from%20Asmanet/SP2A>Cliquez ici</a></p></body></html>");
}

function AlerteMail() {
	window.alert('Ce lien va lancer votre logiciel de messagerie (Eudora, Outlook...). Ce site &eacute;tant prot&eacute;g&eacute; contre le piratage d\'adresses de courrier &eacute;lectronique, merci de SUPPRIMER dans l\'adresse de destination, le \'(at)\'');
}

function Alerte() {
	window.alert('Ce lien s\'ouvrira dans une nouvelle fen&ecirc;tre');
}

function Analyse() {
	window.alert('Ce service est en cours de d&eacute;veloppement');
}

function OuvrirMentionsLegales(url) {
	window.open(url,"ml","width=600,height=400,toolbar=0,status=1,directories=0,menubar=1,scrollbars=1,resizable=1,left=200,top=200");
	}

function OuvrirFenetre(url,hauteur) {
	var fenetre = window.open(url,"lexique","width=450,height=" + hauteur+",toolbar=0,status=0,directories=0,scrollbars=1,resizable=0");
	fenetre.moveTo( ( screen.availWidth - 450) / 2 , (screen.availHeight - hauteur) /2 );
	}

function OuvrirFenetre2(url,largeur,hauteur) {
	var fenetre = window.open(url,"lexique","width=" + largeur +",height=" + hauteur+",toolbar=0,status=0,directories=0,scrollbars=1,resizable=0");
	fenetre.moveTo( ( screen.availWidth - largeur) / 2 , (screen.availHeight - hauteur) /2 );
	}

function OuvrirFiche(url) {
	var fenetre = window.open(url,"fiche","width=600,height=400,toolbar=0,status=0,directories=0,scrollbars=1,resizable=0");
	fenetre.moveTo( ( screen.availWidth - 600) / 2 , (screen.availHeight - 400) /2 );
	}

function ZoomImage(url) {
	var fenetre = window.open(url,"image","width=620,height=450,toolbar=0,status=0,directories=0,scrollbars=0,resizable=0");
	fenetre.moveTo( ( screen.availWidth - 620) / 2 , (screen.availHeight - 450) /2 );
	}

function OuvrirChoix () {
	var fenetre=window.open("analyses-sol-choix.htm","analyse","width=450,height=350,toolbar=0,status=0,directories=0,scrollbars=0,resizable=0");
	fenetre.moveTo( ( screen.availWidth - 450) / 2 , (screen.availHeight - 350) /2 );
	}


function OuvrirChoix2 () {
	var fenetre=window.open("agriculture-raisonnee-choix.htm","agriculture","width=450,height=350,toolbar=0,status=0,directories=0,scrollbars=0,resizable=0");
	fenetre.moveTo( ( screen.availWidth - 450) / 2 , (screen.availHeight - 350) /2 );
	}

function SommaireDeroulant(tp)
{document.location=tp.sommaire.options[tp.sommaire.selectedIndex].value;}

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) { //v3.0
  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); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

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 changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src =  eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

var ver  = navigator.appVersion;
var dom  = document.getElementById ? 1 : 0;
var ie5  = (ver.indexOf("MSIE 5") > -1 && dom) ? 1 : 0;
var n  = (document.layers);
var ie = (document.all);

var sparksAflyin = 0;
var totalSparks = 0;
var sparksOn = 1;
function initMouseEvents() {
document.onmousedown = mouseDown;
if (n) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE);
}
function mouseDown(e) {
if (sparksOn) {
var mousex = (n) ? e.pageX : event.x+document.body.scrollLeft;
var mousey = (n) ? e.pageY : event.y+document.body.scrollTop;
if (!sparksAflyin) {
for (var k = 0; k <= 7; k++)
   eval('SHOW("sDiv'+k+'")');
sparksAflyin = 1;
totalSparks = 0;
for(i = 0;i <= 7; i++)
eval('moveTo('+i+',0,'+mousex+','+mousey+')');
      }
   }
}
function moveTo(i,j, mousex, mousey){
if (j < eval('anim_'+i+'_x.length') ){
var tempx = eval('anim_'+i+'_x[j]+mousex');
var tempy = eval('anim_'+i+'_y[j]+mousey');
if (ie) {
if(tempy+30 > (document.body.offsetHeight+document.body.scrollTop))
tempy = document.body.offsetHeight+document.body.scrollTop-30;
if(tempx+30 > (document.body.offsetWidth+document.body.scrollLeft))
tempx = document.body.offsetWidth+document.body.scrollLeft-30;
eval('document.all.sDiv'+i+'.style.left = tempx;');
eval('document.all.sDiv'+i+'.style.top  = tempy;');
}
if (n) {
eval('document.layers.sDiv'+i+'.left = tempx;');
eval('document.layers.sDiv'+i+'.top  = tempy;');
}
j++;
//  timeout: 50 = fireworks speed, larger number = slower speed
    setTimeout("moveTo("+i+","+j+","+mousex+","+mousey+")",20)
}
else {
eval('HIDE("sDiv'+i+'")');
totalSparks++;
}
if (totalSparks == 8) {
sparksAflyin = 0;
totalSparks  = 0;
   }
}
function SHOW(divName){
if (document.all)
eval('document.all.'+divName+'.style.visibility = "visible";');
else if (document.layers)
eval('document.layers["'+divName+'"].visibility = "visible";');
}
function HIDE(divName){
if (document.all)
eval('document.all.'+divName+'.style.visibility = "hidden";');
else if (document.layers)
eval('document.layers["'+divName+'"].visibility = "hide";');
}
anim_0_x=new Array(20,20,10,0,0,0,0,0,0,0,0,0);
anim_0_y=new Array(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80);
anim_1_x=new Array(20,20,17,36,60,78,90,92,93,98,108,120,133,152,181);
anim_1_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);
anim_2_x=new Array(20,20,2,3,4,5,6,7,8,9,10,12,13,15,18);
anim_2_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);
anim_3_x=new Array(-20,-20,-2,-1,7,10,18,35,60,102,94,94,93,97,108,111,117,127);
anim_3_y=new Array(-20,-25,-64,-89,-104,-150,-173,-197,-213,-199,-151,-101,-66,-17,27,87,140,189);
anim_4_x=new Array(-20,-20,-10,-39,-30,-69,-64,-138,-154,-200,-181,-209,-191,-207,-203,-213,-202,-221,-211);
anim_4_y=new Array(-20,-20,-28,-51,-79,-100,-135,-154,-193,-183,-149,-134,-89,-60,8,51,107,157,201);
anim_5_x=new Array(-20,-29,-51,-72,-105,-133,-164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288);
anim_5_y=new Array(-20,-55,-86,-116,-154,-183,-205,-217,-217,-198,-169,-120,-44,-8,40,87,144,190,248);
anim_6_x=new Array(-20,-20,-7,14,44,79,143,186,217,226,234,244,250,259,265,274);
anim_6_y=new Array(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68,-3,54,134,187,215,257);
anim_7_x=new Array(20,20,-3,-9,-13,-27,-33,-44,-54,-66,-77,-95,-107,-136,-150,-160,-164,-168,-171,-172,-172,-176,-175);
anim_7_y=new Array(-20,-26,-43,-63,-89,-116,-145,-169,-201,-222,-240,-253,-254,-245,-220,-195,-160,-124,-81,-53,-26,19,68);


