/* Copyright AKOTER.com production 
adresse internet >> http://www.akoter.com 
E-mail >> info@akoter.com
Fichier créé le 28/08/01 */

function load(meta) {
/* Saisie des champ1 à 4 */
var champ1='<!-- DEBUT -->\n<!-- script édité gratuitement sur http://www.akoter.com -->\n<SCRIPT language=JavaScript1.2>\n<!--\n//script edite gratuitement sur http://www.akoter.com\nvar message="'+document.meta.champ1.value+'";\n'+'';
var champ2='var messagecolor=\''+document.meta.champ2.value+'\'\n'+'';
var champ3='var dismissafter='+document.meta.champ3.value+'\n\nvar amount=5,ypos=0,xpos=0,Ay=0,Ax=0,By=0,Bx=0,Cy=0,Cx=0,Dy=0,Dx=0,Ey=0,Ex=0;\nif (document.layers){\nfor (i = 0; i < amount; i++)\n'+'';
var champ4='{document.write(\'<layer name=ns\'+i+\' top=0 left=0><font face='+document.meta.champ4.value+' size=2 color=\'+messagecolor+\'>\'+message+\'</font></layer>\')}\nwindow.captureEvents(Event.MOUSEMOVE);\nfunction nsmouse(evnt){xpos = evnt.pageX;ypos = evnt.pageY;makefollow()}\n}\nelse if (document.all){\ndocument.write("<div id=\'outer\' style=\'position:absolute;top:0px;left:0px\'>");\ndocument.write("<div id=\'inner\' style=\'position:relative\'>");\nfor (i = 0; i < amount; i++)\n{document.write(\'<div id="text"\'+i+\' style="position:absolute;top:0px;left:0px;font-family:'+document.meta.champ4.value+';font-size:20px;color:\'+messagecolor+\'">\'+message+\'</div>\')}\ndocument.write("</div>");\ndocument.write("</div>");\nfunction iemouse(){ypos = document.body.scrollTop + event.y;xpos = document.body.scrollLeft + event.x;makefollow()}\n}\nfunction makefollow(){\nif (document.layers){\ndocument.layers["ns0"].top=ay;document.layers["ns0"].left=ax;\ndocument.layers["ns1"].top=by;document.layers["ns1"].left=bx;\ndocument.layers["ns2"].top=cy;document.layers["ns2"].left=cx;\ndocument.layers["ns3"].top=Dy;document.layers["ns3"].left=Dx;\ndocument.layers["ns4"].top=Ey;document.layers["ns4"].left=Ex;\n}\nelse if (document.all){\nouter.all.inner.all[0].style.pixelTop=ay;outer.all.inner.all[0].style.pixelLeft=ax;\nouter.all.inner.all[1].style.pixelTop=by;outer.all.inner.all[1].style.pixelLeft=bx;\nouter.all.inner.all[2].style.pixelTop=cy;outer.all.inner.all[2].style.pixelLeft=cx;\nouter.all.inner.all[3].style.pixelTop=Dy;outer.all.inner.all[3].style.pixelLeft=Dx;\nouter.all.inner.all[4].style.pixelTop=Ey;outer.all.inner.all[4].style.pixelLeft=Ex;\n}\n}\nfunction move(){\nif (dismissafter!=0)\nsetTimeout("hidetrail()",dismissafter*1000)\n\nif (document.layers){window.onMouseMove = nsmouse}\nelse if (document.all){window.document.onmousemove = iemouse}\ney = Math.round(Ey+=((ypos+20)-Ey)*2/2);ex = Math.round(Ex+=((xpos+20)-Ex)*2/2);\ndy = Math.round(Dy+=(ey - Dy)*2/4);dx = Math.round(Dx+=(ex - Dx)*2/4);\ncy = Math.round(Cy+=(dy - Cy)*2/6);cx = Math.round(Cx+=(dx - Cx)*2/6);\nby = Math.round(By+=(cy - By)*2/8);bx = Math.round(Bx+=(cx - Bx)*2/8);\nay = Math.round(Ay+= (by - Ay)*2/10);ax = Math.round(Ax+= (bx - Ax)*2/10);\nmakefollow();\njumpstart=setTimeout(\'move()\',10);\n}\n\nfunction hidetrail(){\nif (document.all){\nfor (i2=0;i2<amount;i2++){\nouter.all.inner.all[i2].style.visibility="hidden"\nclearTimeout(jumpstart)\n}\n}\nelse if (document.layers){\nfor (i2=0;i2<amount;i2++){\ntemp="ns"+i2\ndocument.layers[temp].visibility="hide"\nclearTimeout(jumpstart)\n}\n}\n}\n\nwindow.onload=move;\n//-->\n</SCRIPT>\n<!-- FIN -->'+'';

document.meta.exec.value=champ1+champ2+champ3+champ4
}

function suppr(meta) {
document.meta.exec.value=''
}

function RAS(n) {
document.meta.elements[n].value="";
}
