function dei(A){return document.getElementById(A)}function del_error(B,A){if(A==null){A="button"}else{A=""}if(document.getElementById(B)){document.getElementById(B).className=A}if(document.getElementById("error_"+B)){document.getElementById("error_"+B).style.display="none"}if(B=="a_cgv"&&document.getElementById("label_"+B)){document.getElementById("label_"+B).className="inline"}}function passwordStrength(A){var D=new Array();var C=0;if(A.length>6){C++}if((A.match(/[a-z]/))&&(A.match(/[A-Z]/))){C++}if(A.match(/\d+/)){C++}if(A.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)){C++}if(A.length>12){C++}var B=document.getElementById("passwordquality").getElementsByTagName("td");for(i=0;i<B.length;i++){if(document.getElementById("passwordquality_q"+i)!=null){document.getElementById("passwordquality_q"+i).style.display="none"}B[i].className="";if(C>=i&&A!=""){B[i].className="q"+C}}if(A!=""){document.getElementById("passwordquality_q"+C).style.display=""}}function changeEtat(C,B){for(var A=0;A<B.length;A++){document.getElementById("div_"+C.id+"_etat"+B[A]).style.display="none";if(C.value==B[A]){document.getElementById("div_"+C.id+"_etat"+B[A]).style.display=""}}}function test_vide(E,D,A){var C=E.split("|");for(var B=0;B<C.length;B++){E=C[B];if(dei(E).value.replace(" ","")==""||dei(E).value.length<D){if(dei(E).className.indexOf(A)<0){dei(E).className+=" "+A}dei(E).focus();return false}}return true}function test_numeric(D,A){var C=D.split("|");for(var B=0;B<C.length;B++){D=C[B];if(isNaN(dei(D).value)){if(dei(D).className.indexOf(A)<0){dei(D).className+=" "+A}dei(D).value="";dei(D).focus();return false}}return true}function init_vide(C,A){var B=C.className.indexOf(A);if(B>0){C.className=C.className.replace(A,"")}return true}

var FacebookConnected=false;var FacebookInit=false;var currentHost=location.protocol+location.port+"//"+location.host;function facebook_connect(B,A){if(!FacebookInit){if(B==""){B="/"}else{if(B!="/"){B+="/"}}var C=B+"_public/xd_receiver.htm";FB_RequireFeatures(["Api"],function(){FB.Facebook.init(A,C)});FacebookInit=true}}function facebook_login(B,A){FB.ensureInit(function(){FB.Connect.requireSession(function(){facebook_login_callback(B,A)})})}function facebook_logout(){FB.ensureInit(function(){FB.Connect.logoutAndRedirect(""+currentHost+"/logout")})}function facebook_login_callback(B,A){FB.ensureInit(function(){if(!FacebookConnected){FacebookConnected=true;FB.Facebook.get_sessionState().waitUntilReady(function(){var C=FB.Facebook.apiClient;C.users_getLoggedInUser(function(E,D){if(D==null){if(B=="commentaire"){loading_ajax(1,"form_comment");C.users_hasAppPermission("publish_stream",function(G,F){if(F==null){if(G==0){FB.Connect.showPermissionDialog("publish_stream",function(H){recharge("",currentHost+"/members/","","iboxaction=login&preaction=ajax&rident=true&r_facebook="+E+"&CUSTOM="+A)})}else{recharge("",currentHost+"/members/","","iboxaction=login&preaction=ajax&rident=true&r_facebook="+E+"&CUSTOM="+A)}}})}else{recharge("",currentHost+"/members/","","iboxaction=login&preaction=ajax&rident=true&r_facebook="+E)}}})})}})}

var opacity_level=8;var ibAttr="rel";var imgPreloader=new Image();function init_ibox(){var E="ibox";if(!document.getElementById("ibox")){createIbox(document.getElementsByTagName("body")[0])}var C=document.getElementsByTagName("a");var D;for(var B=0;B<C.length-1;B++){D=C[B];if(D.getAttribute(ibAttr)){var A=D.getAttribute(ibAttr);if((A.indexOf("ibox")!=-1)||A.toLowerCase()=="ibox"){D.onclick=function(){var G=this.getAttribute(ibAttr);var I=parseQuery(G.substr(5,999));if(this.href.match("#")!=null){var F=this.href}else{var F=G}if(this.target!=""){F=this.target}var H=this.title;if(showIbox(F,H,I)){}return false}}}}}showBG=function(){var E=getElem("ibox_w");E.style.opacity=0;E.style.filter="alpha(opacity=0)";setBGOpacity=setOpacity;for(var C=0;C<=opacity_level;C++){setTimeout("setIboxOpacity('ibox_w',"+C+")",70*C)}E.style.display="";var B=new getPageSizeIbox();var D=new getScrollPos();var A=navigator.userAgent;if(A.indexOf("MSIE ")!=-1){E.style.width=B.width+"px"}E.style.height=B.height+D.scrollY+"px"};hideBG=function(){var A=getElem("ibox_w");A.style.display="none"};var loadCancelled=false;showIndicator=function(){var A=getElem("ibox_progress");A.style.display="";posToCenter(A);A.onclick=function(){hideIbox();hideIndicator();loadCancelled=true}};hideIndicator=function(){var A=getElem("ibox_progress");A.style.display="none";A.onclick=null};createIbox=function(D){var B="";var A=".png";var E=navigator.userAgent.substring(navigator.userAgent.indexOf("(",0),navigator.userAgent.indexOf(")",0));if(E.indexOf("MSIE 6")!=-1){A=".gif"}B+='<div id="ibox_w" style="display:none;" onclick="hideIbox();"></div>';B+='<div id="ibox_progress" style="display:none;"></div>';B+="<table id='ibox_wrapper' cellpadding='0' cellspacing='0' style='display:none;'>";B+="	<tr><td colspan='3' id='ibox_title' class='opacity_ibox bt ibox_color'><a id='ibox_close_a' class='ibox_font_color' href='javascript:void(0)'>"+ibox_close_label+"</a></td></tr>";B+="	<tr><td class='opacity_ibox ibox_color' style='width:30px'></td>";B+="	<td id='ibox_content' class='ibox_color'></td>";B+="	<td class='opacity_ibox ibox_color' style='width:30px'></td></tr>";B+="	<tr><td colspan='3' class='opacity_ibox bt ibox_color'></td></tr>";B+="</table>";var C=document.getElementsByTagName("body")[0];var F=document.createElement("div");F.setAttribute("id","ibox");F.style.display="";F.innerHTML=B;D.appendChild(F)};var ibox_w_height=0;showIbox=function(url,title,params,paramPost){var ibox=getElem("ibox_wrapper");var ibox_type=0;var ibox_scroll=0;var ibox_footer=getElem("ibox_footer");var urlString=/\.jpg|\.jpeg|\.png|\.gif|\.html|\.htm|\.php|\.cfm|\.asp|\.aspx|\.jsp|\.jst|\.rb|\.rhtml|\.txt/g;var urlType=url.match(urlString);if(urlType==".jpg"||urlType==".jpeg"||urlType==".png"||urlType==".gif"){ibox_type=1}else{if(url.indexOf("#")!=-1){ibox_type=2}else{if(urlType==".htm"||urlType==".html"||urlType==".php"||urlType==".asp"||urlType==".aspx"||urlType==".jsp"||urlType==".jst"||urlType==".rb"||urlType==".txt"||urlType==".rhtml"||urlType==".cfm"){ibox_type=3}else{if(params["type"]){ibox_type=parseInt(params["type"])}else{hideIbox();return false}}}}ibox_type=parseInt(ibox_type);if(!params){params=new Array()}if(params["scroll"]){ibox_scroll=params["scroll"]}if(params["width"]){params["width"]=parseInt(params["width"])+60}switch(ibox_type){case 1:showIndicator();ibox.style.display="";setIBoxContent('<div style="width:600px; height:400px; display:block; background: transparent url(/_images/icones/loading_front.gif) center center no-repeat"></div>');posToCenter(ibox);imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader=resizeImageToScreen(imgPreloader);hideIndicator();var strHTML='<img name="ibox_img" src="'+url+'" style="width:'+imgPreloader.width+"px;height:"+imgPreloader.height+'px;border:0;cursor:hand;margin:0;padding:0;"/>';if(loadCancelled==false){getElem("ibox_content").style.overflow="hidden";setIBoxContent(strHTML);posToCenter(ibox)}};loadCancelled=false;imgPreloader.src=url;break;case 2:var strHTML="";ibox.style.display="";ibox.style.visibility="hidden";getElem("ibox_content").style.overflow="auto";var elemSrcId=url.substr(url.indexOf("#")+1,1000);var elemSrc=getElem(elemSrcId);if(elemSrc){strHTML=elemSrc.innerHTML}setIBoxContent(strHTML);posToCenter(ibox);ibox.style.visibility="visible";break;case 3:showIndicator();setIBoxContent('<div style="width:600px; height:400px; display:block; background: transparent url(/_images/icones/loading_front.gif) center center no-repeat"></div>');posToCenter(ibox);http.open("post",url,true);http.onreadystatechange=function(){if(http.readyState==4){hideIndicator();if(params["height"]){ibox.style.height=params["height"]+"px"}if(params["width"]){ibox.style.width=params["width"]+"px"}else{ibox.style.width="auto"}ibox.style.display="";ibox.style.visibility="hidden";if(ibox_scroll==1){getElem("ibox_content").style.overflow="auto"}else{getElem("ibox_content").style.overflow="hidden"}var response=http.responseText;setIBoxContent(response);posToCenter(ibox);ibox.style.visibility="visible";var html_js_after="";var TabMyResult=response.split(/<script id=["']script_after["'] type=["']text\/javascript["']>/);if(TabMyResult.length>1){var TabMyResult2=TabMyResult[1].split("<\/script>")}if(TabMyResult2!=null&&TabMyResult2.length>1){html_js_after=TabMyResult2[0]}if(html_js_after!=""){eval(html_js_after)}}};http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");http.send(paramPost);break;default:}if(params["no_recharge"]!=1){ibox.style.opacity=0;ibox.style.filter="alpha(opacity=0)";var ibox_op_level=10;setIboxOpacity=setOpacity;for(var i=0;i<=ibox_op_level;i++){setTimeout("setIboxOpacity('ibox_wrapper',"+i+")",30*i)}}if(ibox_close==1){if(ibox_type==2||ibox_type==3){ibox.onclick=null;getElem("ibox_close_a").onclick=function(){hideIbox()}}else{ibox.onclick=hideIbox;getElem("ibox_close_a").onclick=null}}return true};setOpacity=function(A,B){var C=getElem(A);C.style.opacity=B/10;C.style.filter="alpha(opacity="+B*10+")"};resizeImageToScreen=function(B){var C=new getPageSizeIbox();var A=C.width-100;var D=C.height-100;if(B.width>A){B.height=B.height*(A/B.width);B.width=A;if(B.height>D){B.width=B.width*(D/B.height);B.height=D}}else{if(B.height>D){B.width=B.width*(D/B.height);B.height=D;if(B.width>A){B.height=B.height*(A/B.width);B.width=A}}}return B};maintPos=function(){var E=getElem("ibox_wrapper");var D=getElem("ibox_w");var B=new getPageSizeIbox();var C=new getScrollPos();var A=navigator.userAgent;if(A.indexOf("MSIE ")!=-1){D.style.width=B.width+"px"}if(A.indexOf("Opera/9")!=-1){D.style.height=document.body.scrollHeight+"px"}else{D.style.height=B.height+C.scrollY+"px"}posToCenter(E)};hideIbox=function(){hideBG();var A=getElem("ibox_wrapper");A.style.display="none";clearIboxContent();window.onscroll=null};posToCenter=function(D){var F=new getScrollPos();var C=new getPageSizeIbox();var B=new getElementSize(D);var A=Math.round(C.width/2)-(B.width/2)+F.scrollX;var E=Math.round(C.height/2)-(B.height/2)+F.scrollY;if(A<0){A=0}if(E<0){E=0}D.style.left=A+"px";D.style.top=E+"px"};getScrollPos=function(){var A=document.documentElement;this.scrollX=self.pageXOffset||(A&&A.scrollLeft)||document.body.scrollLeft;this.scrollY=self.pageYOffset||(A&&A.scrollTop)||document.body.scrollTop};getPageSizeIbox=function(){var A=document.documentElement;this.width=self.innerWidth||(A&&A.clientWidth)||document.body.clientWidth;this.height=self.innerHeight||(A&&A.clientHeight)||document.body.clientHeight};getElementSize=function(A){this.width=A.offsetWidth||A.style.pixelWidth;this.height=A.offsetHeight||A.style.pixelHeight};setIBoxContent=function(B){clearIboxContent();var A=getElem("ibox_content");A.style.overflow="auto";A.innerHTML=B};clearIboxContent=function(){var A=getElem("ibox_content");A.innerHTML=""};getElem=function(A){return document.getElementById(A)};parseQuery=function(D){var G=new Object();if(!D){return G}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var E=A[C].split("=");if(!E||E.length!=2){continue}var B=unescape(E[0]);var F=unescape(E[1]);F=F.replace(/\+/g," ");G[B]=F}return G};createRequestObject=function(){var xmlhttp;/*@cc_on
	@if (@_jscript_version>= 5)
			try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
					try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}
					catch (E) {xmlhttp = false;}
			}
	@else
		xmlhttp = false;
	@end @*/if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){try{xmlhttp=new XMLHttpRequest()}catch(e){xmlhttp=false}}return xmlhttp};var http=createRequestObject();function addEvent(D,A,B){if(D.addEventListener){D.addEventListener(A,B,false);return true}else{if(D.attachEvent){var C=D.attachEvent("on"+A,B);return C}else{return false}}}addEvent(window,"load",init_ibox);var diapo_en_cours=null;function ibox_change_diapo(){if(document.getElementById("ibox_diapo_go")==null){diapo_en_cours=null}if(diapo_en_cours==1){document.getElementById("ibox_diapo_go").style.display="none";document.getElementById("ibox_diapo_stop").style.display="";var tmp=document.getElementById("ibox_diapo_suiv").onclick;tmp=(String(tmp).replace("&ibox","&ibox&diapo=1"));tmp=tmp.replace(/\n/g,"");TabMyResult=tmp.split("showIbox");if(TabMyResult.length>1){TabMyResult2=TabMyResult[1].split("}")}if(TabMyResult2!=null&&TabMyResult2.length>1){tmp="showIbox"+TabMyResult2[0]}eval(tmp);setTimeout("ibox_change_diapo()",5000)}}function ibox_go_diapo(){diapo_en_cours=1;ibox_change_diapo()}function ibox_stop_diapo(){diapo_en_cours=0;document.getElementById("ibox_diapo_go").style.display="";document.getElementById("ibox_diapo_stop").style.display="none"}var onButtons=false;function show_buttons_diapo(A){if(A>0){document.getElementById("ibox_buttons").style.display="block";document.getElementById("ibox_diapo").style.visibility="visible";if(A==1){setTimeout("show_buttons_diapo(0)",3000)}else{onButtons=true}}else{if(!onButtons){document.getElementById("ibox_buttons").style.display="none";document.getElementById("ibox_diapo").style.visibility="hidden"}}}

function getAllChildren(A){return A.all?A.all:A.getElementsByTagName("*")}document.getElementsBySelector=function(M){if(!document.getElementsByTagName){return new Array()}var T=M.split(" ");var C=new Array(document);for(var O=0;O<T.length;O++){token=T[O].replace(/^\s+/,"").replace(/\s+$/,"");if(token.indexOf("#")>-1){var L=token.split("#");var F=L[0];var J=L[1];var H=document.getElementById(J);if(F&&H.nodeName.toLowerCase()!=F){return new Array()}C=new Array(H);continue}if(token.indexOf(".")>-1){var L=token.split(".");var F=L[0];var E=L[1];if(!F){F="*"}var I=new Array;var B=0;for(var Q=0;Q<C.length;Q++){var A;if(F=="*"){A=getAllChildren(C[Q])}else{A=C[Q].getElementsByTagName(F)}for(var N=0;N<A.length;N++){I[B++]=A[N]}}C=new Array;var R=0;for(var K=0;K<I.length;K++){if(I[K].className&&I[K].className.match(new RegExp("\\b"+E+"\\b"))){C[R++]=I[K]}}continue}if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){var F=RegExp.$1;var P=RegExp.$2;var G=RegExp.$3;var S=RegExp.$4;if(!F){F="*"}var I=new Array;var B=0;for(var Q=0;Q<C.length;Q++){var A;if(F=="*"){A=getAllChildren(C[Q])}else{A=C[Q].getElementsByTagName(F)}for(var N=0;N<A.length;N++){I[B++]=A[N]}}C=new Array;var R=0;var D;switch(G){case"=":D=function(U){return(U.getAttribute(P)==S)};break;case"~":D=function(U){return(U.getAttribute(P).match(new RegExp("\\b"+S+"\\b")))};break;case"|":D=function(U){return(U.getAttribute(P).match(new RegExp("^"+S+"-?")))};break;case"^":D=function(U){return(U.getAttribute(P).indexOf(S)==0)};break;case"$":D=function(U){return(U.getAttribute(P).lastIndexOf(S)==U.getAttribute(P).length-S.length)};break;case"*":D=function(U){return(U.getAttribute(P).indexOf(S)>-1)};break;default:D=function(U){return U.getAttribute(P)}}C=new Array;var R=0;for(var K=0;K<I.length;K++){if(D(I[K])){C[R++]=I[K]}}continue}F=token;var I=new Array;var B=0;for(var Q=0;Q<C.length;Q++){var A=C[Q].getElementsByTagName(F);for(var N=0;N<A.length;N++){I[B++]=A[N]}}C=I}return C};function getElementsByClassName(A){var D,C=new Array(),B=0,E;if(document.all){D=document.all}else{if(document.getElementsByTagName&&!document.all){D=document.getElementsByTagName("*")}}for(i=0;i<D.length;i++){if(D[i].className.indexOf(A)!=-1){E=","+D[i].className.split(" ").join(",")+",";if(E.indexOf(","+A+",")!=-1){C[B]=D[i];B++}}}return C}var content;var collec,i;var initSize=0;var oldSize="";var pos;var sizeInited=0;function setSize(A,B){collec=getElementsByClassName(B);for(i=0;i<collec.length;i++){content=collec[i];setSizeByObject(A,content)}}function setSizeByObject(A,B){oldSize=B.style.fontSize;if(oldSize==""){oldSize="100%"}pos=oldSize.indexOf("%");oldSize=oldSize.substring(0,pos)*1;A=A*1;if(((oldSize>80)&&(A<-1))||((oldSize<200)&&(A>1))){A=oldSize+A}else{A=oldSize}B.style.fontSize=A+"%"}function protected_mail(B){B=B.replace(/!SPAM!/gi,"@");B=B.replace(/,/gi,";");var A=window.open("mailto:"+B);A.close()}function ajuste_image(B,A){obj1=document.getElementById("ajusteimg_ext_"+B);obj2=document.getElementById("ajusteimg_ext_"+A);if(document.getElementById("ajusteimg_"+B)!=null&&document.getElementById("ajusteimg_"+A)!=null){y1=obj1.offsetTop;y2=obj2.offsetTop;newheight=Math.abs(y1-y2)+1;if(y1>y2){document.getElementById("ajusteimg_"+A).height=newheight}else{document.getElementById("ajusteimg_"+B).height=newheight}}}var newWin=null;function closeWin(){if(newWin!=null){if(!newWin.closed){newWin.close()}}}function popupCentrer(D,C,B,G,A){if(G==1){closeWin()}var F=(screen.height-B)/2;var E=(screen.width-C)/2;newWin=window.open(D,"popup","top="+F+",left="+E+",width="+C+",height="+B+","+A);newWin.document.close();newWin.focus()}function popupCentrerId(D,G,C,B,A){var F=(screen.height-B)/2;var E=(screen.width-C)/2;newWin=window.open(D,"page"+G,"top="+F+",left="+E+",width="+C+",height="+B+","+A);newWin.document.close();newWin.focus()}var ok=0;var Timer;function moveLayerLeft(B,A,D){if(document.getElementById){Objet=document.getElementById("contenu")}else{Objet=document.all["contenu"]}if(Objet.style.left==""){Objet.style.left=0}if(D>0){if(parseInt(Objet.style.left)+(A*B)>0){Objet.style.left="0px"}else{if(parseInt(Objet.style.left)+(A*B)<(-Math.abs(D))){var C="-"+Math.abs(D)+"px";Objet.style.left=C}else{Objet.style.left=(parseInt(Objet.style.left)+(A*B))+"px"}}Timer=setTimeout("moveLayerLeft("+B+", "+A+", "+D+");",30)}}function moveLayerTop(B,A,D){if(document.getElementById){Objet=document.getElementById("contenu")}else{Objet=document.all["contenu"]}if(Objet.style.top==""){Objet.style.top=0}if(D>0){if(parseInt(Objet.style.top)+(A*B)>0){Objet.style.top="0px"}else{if(parseInt(Objet.style.top)+(A*B)<(-Math.abs(D))){var C="-"+Math.abs(D)+"px";Objet.style.top=C}else{Objet.style.top=(parseInt(Objet.style.top)+(A*B))+"px"}}Timer=setTimeout("moveLayerTop("+B+", "+A+", "+D+");",30)}}function stripslashes(A){return A.replace(/(\\)([\\\'\"])/g,"$2")}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}var _minus=new Image();var _plus=new Image();_minus.src="../../_images/preset/puces/minus.gif";_plus.src="../../_images/preset/puces/plus.gif";function show_hide(B,D){if(B!=null){var C=document.getElementById(B)}var A=document.getElementById(D);if(A.style.display=="none"){if(C){C.src=_minus.src}A.style.display="block"}else{if(C){C.src=_plus.src}A.style.display="none"}}function show_plus(B){var A=document.getElementById(B);if(A.style.display=="none"){A.style.display=""}else{A.style.display="none"}}function alerte(A){alert(A)}var imageTag=false;var theSelection=false;var clientPC=navigator.userAgent.toLowerCase();var clientVer=parseInt(navigator.appVersion);var is_ie=((clientPC.indexOf("msie")!=-1)&&(clientPC.indexOf("opera")==-1));var is_nav=((clientPC.indexOf("mozilla")!=-1)&&(clientPC.indexOf("spoofer")==-1)&&(clientPC.indexOf("compatible")==-1)&&(clientPC.indexOf("opera")==-1)&&(clientPC.indexOf("webtv")==-1)&&(clientPC.indexOf("hotjava")==-1));var is_moz=0;var is_win=((clientPC.indexOf("win")!=-1)||(clientPC.indexOf("16bit")!=-1));var is_mac=(clientPC.indexOf("mac")!=-1);bbcode=new Array();bbtags=new Array("b[","]b","i[","]i","u[","]u","cy[","]cy","cb[","]cb","cg[","]cg","cp[","]cp","[l] ","","[","]mail:","[","]url:http://","[","]article:","[","]glossaire:","l[","]l","[","]img:http://","qt[","]qt");imageTag=false;function getarraysize(A){for(i=0;i<A.length;i++){if((A[i]=="undefined")||(A[i]=="")||(A[i]==null)){return i}}return A.length}function arraypush(B,A){B[getarraysize(B)]=A}function arraypop(A){thearraysize=getarraysize(A);retval=A[thearraysize-1];delete A[thearraysize-1];return retval}function bbstyle(bbnumber,seltxtarea){var txtarea=document.getElementById(seltxtarea);txtarea.focus();donotinsert=false;theSelection=false;bblast=0;if(bbnumber==-1){while(bbcode[0]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];if(typeof (document.post)!="undefined"){buttext=eval("document.post.addbbcode"+butnumber+".value");eval("document.post.addbbcode"+butnumber+'.value ="'+buttext.substr(0,(buttext.length-1))+'"')}}imageTag=false;txtarea.focus();return }if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(theSelection){document.selection.createRange().text=bbtags[bbnumber]+theSelection+bbtags[bbnumber+1];txtarea.focus();theSelection="";return }}else{if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){mozWrap(txtarea,bbtags[bbnumber],bbtags[bbnumber+1]);return }}for(i=0;i<bbcode.length;i++){if(bbcode[i]==bbnumber+1){bblast=i;donotinsert=true}}if(donotinsert){while(bbcode[bblast]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];if(typeof (document.post)!="undefined"){buttext=eval("document.post.addbbcode"+butnumber+".value");eval("document.post.addbbcode"+butnumber+'.value ="'+buttext.substr(0,(buttext.length-1))+'"')}imageTag=false}txtarea.focus();return }else{if(imageTag&&(bbnumber!=14)){txtarea.value+=bbtags[15];lastValue=arraypop(bbcode)-1;document.post.addbbcode14.value="Img";imageTag=false}txtarea.value+=bbtags[bbnumber];if((bbnumber==14)&&(imageTag==false)){imageTag=1}arraypush(bbcode,bbnumber+1);txtarea.focus();return }storeCaret(txtarea)}function mozWrap(H,D,I){var C=H.textLength;var B=H.selectionStart;var A=H.selectionEnd;if(A==1||A==2){A=C}var G=(H.value).substring(0,B);var F=(H.value).substring(B,A);var E=(H.value).substring(A,C);H.value=G+D+F+I+E;return }function storeCaret(A){if(A.createTextRange){A.caretPos=document.selection.createRange().duplicate()}}function js_in_array(E,B){var C=B.toString();if(C==""){return false}var D=new RegExp(E,"g");var A=D.test(B);return A}var obj_ajax;var oldbg_ajax;function refresh_module_ajax(C,D){obj_ajax=document.getElementById("mod_"+C);var B=obj_ajax.offsetHeight;var A=document.createElement("div");A.style.position="relative";A.style.height=B+"px";A.style.top="-"+B+"px";A.style.marginBottom="-"+B+"px";A.style.background="white url(../../_images/icones/ajax-loader.gif) center 30% no-repeat";A.style.filter="alpha(opacity:80)";A.style.opacity="0.8";A.style.display="";obj_ajax.appendChild(A);new Ajax.Updater("mod_"+C,"index.php?preaction=mymodule&java=false&ajax=true&id_param="+C+"&"+D,{evalScripts:true,onComplete:success_refresh_ajax})}function success_refresh_ajax(){obj_ajax.style.filter="alpha(opacity:100)";obj_ajax.style.opacity="1"}function file(A,C){if(window.XMLHttpRequest){xhr_object=new XMLHttpRequest()}else{if(window.ActiveXObject){try{xhr_object=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){xhr_object=new ActiveXObject("Microsoft.XMLHTTP")}}else{return(false)}}if(C==null){xhr_object.open("GET",A,false);xhr_object.send(null)}else{xhr_object.open("POST",A,false);xhr_object.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xhr_object.send(C)}if(xhr_object.readyState==4){return(xhr_object.responseText)}else{return(false)}}function recharge(div_a_recharger,lien_pour_recharger,js_after,paramPost){var texte=file(lien_pour_recharger,paramPost);texte=texte.replace(/<(\/)*noscript>/gi,"");if(div_a_recharger!=""){document.getElementById(div_a_recharger).innerHTML=texte}if(js_after!=""){eval(js_after)}eval_script_after(texte)}function recharge_async(div_a_recharger,lien_pour_recharger,paramPost,js_after){var xhr_object=null;if(window.XMLHttpRequest){xhr_object=new XMLHttpRequest()}else{if(window.ActiveXObject){try{xhr_object=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){xhr_object=new ActiveXObject("Microsoft.XMLHTTP")}}else{return(false)}}if(paramPost==null){xhr_object.onreadystatechange=function(){if(xhr_object.readyState==4){if(div_a_recharger!=""&&document.getElementById(div_a_recharger)){document.getElementById(div_a_recharger).innerHTML=xhr_object.responseText}eval_script_after(xhr_object.responseText);if(js_after!=""){eval(js_after)}}};xhr_object.open("GET",lien_pour_recharger,true);xhr_object.send(null)}else{xhr_object.onreadystatechange=function(){if(xhr_object.readyState==4){if(div_a_recharger!=""&&document.getElementById(div_a_recharger)){document.getElementById(div_a_recharger).innerHTML=xhr_object.responseText}eval_script_after(xhr_object.responseText);if(js_after!=""){eval(js_after)}}};xhr_object.open("POST",lien_pour_recharger,true);xhr_object.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xhr_object.send(paramPost)}return true}function eval_script_after(texte){if(texte&&texte!=""){var html_js_after="";var TabMyResult=texte.split(/<script id=["']script_after["'] type=["']text\/javascript["']>/);if(TabMyResult.length>1){var TabMyResult2=TabMyResult[1].split("<\/script>")}if(TabMyResult2!=null&&TabMyResult2.length>1){html_js_after=TabMyResult2[0]}if(html_js_after==""){var reg=new RegExp("<script id=[\"']script_after[\"'] type=[\"']text/javascript[\"']>(.*)<\/script>","g");html_js_after=texte.replace(reg,"$1");if(html_js_after==texte){html_js_after=""}}if(html_js_after!=""){eval(html_js_after)}}}function loading_ajax(B,C){var A=document.getElementById(C);if(A){if(B==0){window.setTimeout(function(){if(!is_ie){A.style.filter="alpha(opacity=100)";A.style.opacity="1"}A.style.background="none"},1000)}else{A.style.background="url(/_images/icones/loading_front.gif) center no-repeat";if(!is_ie){A.style.filter="alpha(opacity=40)";A.style.opacity="0.4"}}}}function findPosX(A){var B=0;if(A&&A.offsetParent){while(A.offsetParent){B+=A.offsetLeft;A=A.offsetParent}}else{if(A&&A.x){B+=A.x}}return B}function findPosY(B){var A=0;if(B&&B.offsetParent){while(B.offsetParent){A+=B.offsetTop;B=B.offsetParent}}else{if(B&&B.y){A+=B.y}}return A}function change_tab(E,B){var D,F;var A=document.getElementById("tabs_"+B).getElementsByTagName("li");for(var C=0;C<A.length;C++){if(E==A[C].firstChild){F=C}A[C].className=A[C].className.replace("selected","");D=document.getElementById("content_tabs_"+B+"_"+C);if(D){D.style.display="none"}}E.parentNode.className="selected";D=document.getElementById("content_tabs_"+B+"_"+F);if(D){D.style.display=""}E.blur()}function make_print_object(A,F,C){var D=document.getElementById(C).getElementsByTagName("input");var E=document.getElementById(C).getElementsByTagName("textarea");for(var B=0;B<D.length;B++){if(D[B].type!="hidden"){D[B].onclick=function(){if(!document.getElementById("fingerprint_"+A)){var G=document.createElement("input");G.id="fingerprint_"+A;G.name="fingerprint";G.value=F;G.type="hidden";this.parentNode.appendChild(G)}}}}for(var B=0;B<E.length;B++){E[B].onclick=function(){if(!document.getElementById("fingerprint_"+A)){var G=document.createElement("input");G.id="fingerprint_"+A;G.name="fingerprint";G.value=F;G.type="hidden";this.parentNode.appendChild(G)}}}}function getPostValues(E){var D,F,B;var C="";var I=document.getElementById(E);var A=I.getElementsByTagName("input");for(D=0;D<A.length;D++){F=A[D].name;B=A[D].value;typ=A[D].type;if(F!=""){if(typ=="radio"||typ=="checkbox"){if(A[D].checked==true){C+="&"+F+"="+B}}else{if(typ!="hidden"){B=encodeURIComponent(B)}C+="&"+F+"="+B}}}var G=I.getElementsByTagName("select");for(D=0;D<G.length;D++){F=G[D].name;B=G[D].value;if(F!=""){C+="&"+F+"="+encodeURIComponent(B)}}var H=I.getElementsByTagName("textarea");for(D=0;D<H.length;D++){F=H[D].name;B=H[D].value;if(F!=""){C+="&"+F+"="+encodeURIComponent(B)}}return C}function updateDuree(C){if(C==1){updateDuree(0);intervalDuree=window.setInterval(function(){updateDuree(0)},60000)}else{var A=Math.round((new Date()).getTime()/1000);var B=document.getElementsByTagName("span");for(i=0;i<B.length;i++){if(B[i].className.match("timestamp_")){stamp=parseInt(B[i].className.replace(/timestamp_([0-9]*)/,"$1"));diff=parseInt(A-stamp);minutes=parseInt(diff/60);if(minutes>0){if(minutes==1){B[i].innerHTML=date_duree_lib+" "+minutes+" "+date_duree_min}else{if(minutes>=60){hours=parseInt(minutes/60);lib=(hours==1?date_duree_hour:date_duree_hours);B[i].innerHTML=date_duree_lib+" "+hours+" "+lib}else{B[i].innerHTML=date_duree_lib+" "+minutes+" "+date_duree_mins}}}}}}}function getCookie(A){if(A&&A!=""&&document.cookie){index=document.cookie.indexOf(A);if(index!=-1){nDeb=(document.cookie.indexOf("=",index)+1);nFin=document.cookie.indexOf(";",index);if(nFin==-1){nFin=document.cookie.length}return unescape(document.cookie.substring(nDeb,nFin))}}return null}function setCookie(B,D,C,E,A,F){szCookie=B+"="+escape(D)+((C)?"; expires="+C.toGMTString():"")+((E)?"; path="+E:"")+((A)?"; domain="+A:"")+((F)?"; secure":"");document.cookie=szCookie}function deleteCookie(A){var C=new Date();C.setTime(C.getTime()-1);var B=getCookie(A);document.cookie=A+"="+B+"; expires="+C.toGMTString()}

