function sendpage()
{mailstr="mailto:?body= Je recommande cette page : "+document.title;mailstr+=". Consultable à l'adresse : "+location.href;mailstr+="&subject=[Animint] "+document.title;location.href=mailstr;}
function gettoolsstr()
{var outilstr='<a class="print" href="javascript:print();">Imprimer cette page</a>';outilstr+='<a class="send" href="javascript:sendpage();">Recommander cette page &agrave; un ami</a>';return outilstr;};function no_error()
{return true;}
window.onerror=no_error;function open_popup(page,hauteur,largeur)
{window.open(page,"Popup","status=no,scrollbars=yes,resizable=no,height="+hauteur+",width="+largeur+",top=0,left=0");}
function track(id)
{(new Image()).src="count.php?id="+id;return true;}
function gel(id)
{if(id)return document.getElementById(id);return false;}
function setVote(id,note)
{ajax.requestFile='/liens/ajax_note.php';ajax.onCompletion=whenNoteCompleted;ajax.onLoading='';ajax.setVar('id',id);ajax.setVar('note',note);ajax.runAJAX();}
function whenNoteCompleted()
{var res=ajax.response;var ajaxtokens=res.split('AAA');var code=ajaxtokens[0];var id=ajaxtokens[1];if(code==200)
{var note=ajaxtokens[2];var star_width=parseInt(12.5*note);var el_name='star-'+id;var el=gel(el_name);el.style.width=star_width+'px';}
else if(code==301)
{alert('Vous avez d\351j\340 not\351 ce site');}
else
{alert('Note non prise en compte');}};<!--
gk=window.Event?1:0;D=document;var bulle=0;var popup=0;var popn=0;var encours=0;var wpop=0;var hpop=0;var x=0;function ctrl(e)
{if(!x){de=!D.documentElement.clientWidth?D.body:D.documentElement;x=1}
el=gk?e.target:event.srcElement;if(!el.tagName)el=el.parentNode;if(el.className=='pop'&&el.title)
{popup=D.getElementById(el.title.substring(el.title.lastIndexOf('#')+1));with(popup){wpop=offsetWidth;hpop=offsetHeight;bulle=style}
if(bulle!=encours)
{encours.left=-999+'px';encours=bulle;fx=gk?innerWidth-15:de.clientWidth
fy=gk?innerHeight-15:de.clientHeight
sx=gk?pageXOffset:de.scrollLeft
sy=gk?pageYOffset:de.scrollTop
x=gk?e.pageX:event.clientX+sx;y=gk?e.pageY:event.clientY+sy;posx=x>=fx+sx-wpop-10?x-15-wpop:x+10
posy=y>=fy+sy-hpop-20?fy+sy-hpop-15:y+10
with(bulle){left=posx+'px';top=posy+'px';}
el.onclick=function(){return false}}}else{encours.left=-999+'px';encours=0}}
D.onmousemove=ctrl;function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="GET";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2);};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){};};this.reset=function(){this.resetFunctions();this.resetData();};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){this.xmlhttp=null;}}
if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest();}else{this.failed=true;}}};this.setVar=function(name,value){this.vars[name]=Array(value,false);};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value));}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true);}}
this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1]);}else{this.setVar(urlVars[0],urlVars[1]);}}}
this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true);}
if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring;}else{this.URLString=urlstring;}}
this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0];}
urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0];}
if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator);}else{this.URLString+=urlstringtemp.join(this.argumentSeparator);}}
this.runResponse=function(){eval(this.response);}
this.runAJAX=function(urlstring){if(this.failed){this.onFail();}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element);}
if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true);}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}
this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse();}
if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response;}else{self.elementObj.innerHTML=self.response;}}
if(self.responseStatus[0]=="200"){self.onCompletion();}else{self.onError();}
self.URLString="";break;}};this.xmlhttp.send(this.URLString);}}};this.reset();this.createAJAX();};function doconnect()
{var frm=document.forms['login_form'];ajax.requestFile="/outils/profile/ajax_main_connect.php";ajax.onLoading=whenConnectLoading;ajax.onCompletion=whenConnectCompleted;ajax.setVar("do","connect");ajax.setVar("username",frm.elements['username'].value);ajax.setVar("user_password",frm.elements['user_password'].value);ajax.runAJAX();return false;}
function dodisconnect()
{ajax.requestFile="/outils/profile/ajax_main_connect.php";ajax.setVar("do","disconnect");ajax.onLoading=whenConnectLoading;ajax.onCompletion=whenDisconnectCompleted;ajax.runAJAX();return false;}
function whenConnectCompleted(){var Content=ajax.response;ajaxArray=Content.split('AAA');var AjaxStatus=ajaxArray[0];var AjaxHTML=ajaxArray[1];e=cgel('login');e.innerHTML=AjaxHTML;}
function whenDisconnectCompleted(){var Content=ajax.response;ajaxArray=Content.split('AAA');var AjaxStatus=ajaxArray[0];var AjaxHTML=ajaxArray[1];e=cgel('login');e.innerHTML=AjaxHTML;}
function whenConnectLoading(){var e=cgel('login');var string='<p style="text-align:center;"><img alt="*" src="/icone/ajax-middle-loader.gif" width="24" height="24"/></p>';e.innerHTML=string;}
function cgel(id)
{if(id)return document.getElementById(id);return false;}
FuncOL=new Array();function StkFunc(Obj){FuncOL[FuncOL.length]=Obj;}
window.onload=function(){for(i=0;i<FuncOL.length;i++)
{FuncOL[i]();}}