var AI={fixIESelect:function(S){DOM[ S?'addCSS':'removeCSS' ]($D.body,'fix_ie_select');},_GLOBALS:{},$G:{},startingTime:(new Date()).valueOf(),$f:{},require:function(f,c2,c1,c3){var url=f.charAt(0)=='/'?f:'/js/ai/'+f,S=$E('script',{"id":f.replace(/[^a-z0-9]/i,'_'),"type":'text/javascript',"src":url});AI.$f[f]={state:AI.consts.UNDEF,onloading:c1,onloaded:c2,onerror:c3?c3:function(){alert(f+CR+'Erreur de chargement du fichier'+CR+'Error loading file');}};AI.setFileState(f,AI.consts.LOADING);$tag('head').appendChild(S);},setFileState:function(f,s){var c=null;AI.$f[f].state=s;switch(s){case AI.consts.LOADING:c=AI.$f[f].onloading;break;case AI.consts.LOADED:c=AI.$f[f].onloaded;break;case AI.consts.ERR:c=AI.$f[f].onerror;break;}if(c){c();}},setFileProperty:function(f,p,v){AI.$f[f][p]=v;},getFileState:function(f){return AI.$f[f].state;},_alertBox:function(t){alert(t);},_throwError:function(t){throw new Error(t);},isInsideFenetre:function(){return typeof top.isMainWidget!=='undefined'&&top.isMainWidget;},later:function(msec,method,scope){var args=Array.prototype.slice.apply(arguments,[3]);if(scope===null){scope=window;}if(typeof method=='string'){method=scope[method];}return setTimeout(function(){method.apply(scope,args);},msec);},getSimilarParentObject:function(obj){var scopes=['top','parent','opener'],scope=null,hostname=window.location.hostname,i;for(i=0;i<scopes.length;i++){scope=window[scopes[i]];try{if(scope!==self&&typeof scope!='undefined'&&scope!==null&&scope&&scope.location&&scope.location.hostname===hostname&&scope.AI&&typeof scope.AI[obj]!='undefined'){return scope.AI[obj];}}catch(x){}}return false;},benchmark:function(){var debut=0,texte='',ellapsed=0;return{init:function(txt){texte=txt||'';debut=(new Date()).valueOf();},end:function(){ellapsed=(new Date()).valueOf()-debut;return ellapsed;},setText:function(txt){texte=txt;},getText:function(){return texte;},getEllapsed:function(){return ellapsed;}};}()};function isInsideFenetreAI(){DEPRECATED('isInsideFenetreAI');return AI.isInsideFenetre();}function alertError(t){AI._alertBox(t);AI._throwError(t);}function DEPRECATED(f){}
AI.consts={UNDEF:0,LOADING:1,LOADED:2,ERR:3,INTERNAL_TARGET:'AIcontenu',SHOW_NONE:0,SHOW_LABEL:1,SHOW_ICON:2,SHOW_BOTH:3,BLANK_URL:'/blank.html',BASEDIR:'/images/pictos',BLANK_IMG:'/images/widgets/core/blank16x16.png',SILENT:0,FRAME:1,OPAQUE:2,COPIE:3,TRANSLUCIDE:4,MINIMIZED:0,MAXIMIZED:1,FIT:1,RESIZE:2,POS_SAVE:1,POS_REMOVE:2,DRAG_WAIT:1,DRAG_LISTEN:2,DRAG_MOVE:3,HORIZONTAL:0,VERTICAL:1,AI_ANTI_TRAILING_COMMA_BUG:'MUST_BE_REMOVED'};var CR="\n",$D=document,$W=window;(function(){var i,T=['ELEMENT_NODE','ATTRIBUTE_NODE','TEXT_NODE','CDATA_SECTION_NODE','ENTITY_REFERENCE_NODE','ENTITY_NODE','PROCESSING_INSTRUCTION_NODE','COMMENT_NODE','DOCUMENT_NODE','DOCUMENT_TYPE_NODE','DOCUMENT_FRAGMENT_NODE','DOCUMENT_NOTATION_MODE'];for(i=0;i<T.length;i++){if(typeof $D[T[i]]=='undefined'||$D[T[i]]===null){$D[T[i]]=1+i;}}}());
AI.config=AI.getSimilarParentObject('config')||{WINDOW_MOVE:AI.consts.OPAQUE,WINDOW_MOVE_ANIMATED:false,WINDOW_MAXIMIZE_ANIMATED:false,WINDOW_RESIZE:AI.consts.FRAME,WINDOW_RESIZE_ANIMATED:false,BUREAU_MOVE:AI.consts.OPAQUE,menuCloseTimer:5000};
AI.utils={defined:function(o,k){if(k){return typeof o[k]!='undefined';}return typeof o!='undefined';},returnTrue:function(){return true;},returnFalse:function(){return false;},returnNull:function(){return null;},returnThis:function(){return this;},returnZero:function(){return 0;},returnNegativeIndex:function(){return-1;},isObjectEmpty:function(o){for(var k in o){return false;}return true;},getObjectLength:function(o){var r=0;for(var k in o){r++;}return r;},convertObjectToArray:function(o){var r=[];for(var k in o){r.push(k);}return r;},convertObjectToString:function(o,s){return AI.utils.convertObjectToArray(o).join(s?s:',');},convertObjectValuesToArray:function(o){var r=[];for(var k in o){r.push(o[k]);}return r;},convertArgumentsToArray:function(a){var b=[];for(var i=0,m=a.length;i<m;i++){b.push(a[i]);}return b;},convertShortHandToArray:function(D){var m=D.length;if(m>4){alertError(D+CR+"Nombre d'arguments invalides");}var v;var R=[];for(var i=0;i<m;i++){v=D[i];if(AI.utils.isValidNumber(v)){R.push(v);}else if(!AI.utils.isValidString(v)){R.push(null);}else{alertError(v+CR+"Valeur courte invalide");}}switch(m){case 1:R[1]=R[2]=R[3]=R[0];break;case 2:R[2]=R[0];R[3]=R[1];break;case 3:R[3]=R[1];break;}return R;},isEmail:function(M){return!M.search(/^[\w\-][\w\-\.]+@[\w\-]+\.[a-zA-Z]{2,6}$/);},isValid:function(v){var R=false;switch(typeof v){case "object":R=v!==null;break;case "string":R=v!=="";break;case "number":R=!isNaN(v);break;case "function":case "boolean":R=true;break;}return R;},isValidNumber:function(v){return typeof v==="number"&&!isNaN(v);},isValidString:function(v){return typeof v==="string"&&v!=="";},isValidArray:function(v){return typeof v==="object"&&v!==null&&v instanceof Array;},isValidObject:function(v){return typeof v==="object"&&v!==null&&!(v instanceof Array);},isValidFunction:function(v){return typeof v==="function";},isValidBoolean:function(v){return typeof v==="boolean";},isValidStringOrNumber:function(v){if(typeof v=='string'){return v!=='';}else if(typeof v=='number'){return!isNaN(v);}return false;},isValidElement:function(v){return typeof v==='object'&&v!==null||v.nodeType!==document.ELEMENT_NODE;},uniqid:function(P){return(P?P:'')+(new Date().valueOf());},Cookies:{set:function(N,V,D){var d=new Date();D=D||30;d.setTime(d.getTime()+(D*24*60*60*1000));document.cookie=N+"="+V+";expires="+d.toGMTString()+";path=/";},get:function(N){var ca=document.cookie.split(';'),i,c;N+='=';for(i=0;i<ca.length;i++){c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length);}if(c.indexOf(N)===0){return c.substring(N.length,c.length);}}return null;}},encoder:function(C,U){if(typeof encodeURIComponent=='function'){return U?encodeURI(C):encodeURIComponent(C);}return escape(C);},decoder:function(C){return typeof decodeURIComponent=='function'?decodeURIComponent(C):unescape(C);},escapeHTML:function(v){function rc(c){switch(c){case "<":return "&lt;";case ">":return "&gt;";case "&":return "&amp;";case "'":return "&#39;";case '"':return "&quot;";}return "?";}return String(v).replace(/[<>&"']/g,rc);}};function alerter(t){if(alerter.$){alerter.$=confirm(t);}}alerter.$=true;AI._alertBox=function(t){var c=typeof alerter=='function'?alerter:alert;c(t+CR+CR+'Continuer le pistage des erreurs?');};var defined=AI.utils.defined;
AI.traduction={$:{},add:function(K,V){AI.traduction.$[K]=V;},get:function(K){var T=AI.traduction.$;return(!defined(T,K)||T[K]===null)?K:T[K];}};var __=AI.traduction.get;var i18ln=AI.traduction.add;
if(!Array.prototype.push){Array.prototype.push=function(){var m=this.length,i;for(i=0;i<arguments.length;i++){this[m+i]=arguments[i];}return this.length;};}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(o,from){if(!from){from=0;}else if(from<0){from=Math.max(0,this.length+from);}for(var i=from,m=this.length;i<m;i++){if(this[i]===o){return i;}}return-1;};}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(o,from){if(!from){from=this.length-1;}else if(from<0){from=Math.max(0,this.length+from);}for(var i=from;i>=0;i--){if(this[i]===o){return i;}}return-1;};}if(!Array.prototype.forEach){Array.prototype.forEach=function(f,o){var m=this.length,i;for(i=0;i<m;i++){f.call(o,this[i],i,this);}};}if(!Array.prototype.forEachObject){Array.prototype.forEachObject=function(f){var m=this.length,i;for(i=0;i<m;i++){f.call(this[i],this,i);}};}if(!Array.prototype.filter){Array.prototype.filter=function(f,o){var m=this.length,r=[],i;for(i=0;i<m;i++){if(f.call(o,this[i],i,this)){r.push(this[i]);}}return r;};}if(!Array.prototype.map){Array.prototype.map=function(f,o){var m=this.length,r=[],i;for(i=0;i<m;i++){r.push(f.call(o,this[i],i,this));}return res;};}if(!Array.prototype.some){Array.prototype.some=function(f,o){var m=this.length,i;for(i=0;i<m;i++){if(f.call(o,this[i],i,this)){return true;}}return false;};}if(!Array.prototype.every){Array.prototype.every=function(f,o){var m=this.length,i;for(i=0;i<m;i++){if(!f.call(o,this[i],i,this)){return false;}}return true;};}if(!Array.prototype.contains){Array.prototype.contains=function(obj){return this.indexOf(obj)!=-1;};}if(!Array.prototype.copy){Array.prototype.copy=function(obj){return this.concat();};}if(!Array.prototype.insertAt){Array.prototype.insertAt=function(o,i){this.splice(i,0,o);};}if(!Array.prototype.insertBefore){Array.prototype.insertBefore=function(o,o2){var i=this.indexOf(o2);if(i==-1){this.push(o);}else{this.splice(i,0,o);}};}if(!Array.prototype.insertAfter){Array.prototype.insertAfter=function(o,o2){var i=this.indexOf(o2);if(i==-1||i==(this.length-1)){this.push(o);}else{this.splice(i+1,0,o);}};}if(!Array.prototype.removeAt){Array.prototype.removeAt=function(i){return this.splice(i,1);};}if(!Array.prototype.remove){Array.prototype.remove=function(o){var i=this.indexOf(o);if(i!=-1){return this.splice(i,1);}return null;};}if(!Array.prototype.removeAll){Array.prototype.removeAll=function(){return this.splice(0,this.length);};}if(!Array.prototype.getLast){Array.prototype.getLast=function(){return this[this.length-1];};}if(!Array.prototype.getFirst){Array.prototype.getFirst=function(){return this[0];};}if(!Array.prototype.in_array){Array.prototype.in_array=function(item){return this.indexOf(item)!=-1;};}function forceArray(){var result=[];for(var i=0;i<arguments.length;i++){var elt=arguments[i];if(elt){if(elt.length&&elt.length>0){for(var j=0;j<elt.length;j++){result.push(elt[j]);}}else{result.push(elt);}}}return result;}
String.prototype.contains=function(s){return this.indexOf(s)!=-1;};String.prototype.toFirstUp=function(){return this.charAt(0).toUpperCase()+this.substr(1);};String.prototype.toCamelCase=function(){var A=this.split("-");var L=A.length;if(L==1){return A[0];}var N=this.indexOf("-")===0?A[0].charAt(0).toUpperCase()+A[0].substring(1):A[0];for(var p,i=1;i<L;i++){p=A[i];N+=p.charAt(0).toUpperCase()+p.substring(1);}return N;};String.prototype.trimLeft=function(){return this.replace(/^\s+/,"");};String.prototype.trimRight=function(){return this.replace(/\s+$/,"");};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.add=function(v,sep){if(this==v){return this;}else if(this===""){return v;}else{if(!AI.utils.isValid(sep)){sep=",";}var a=this.split(sep);if(a.indexOf(v)==-1){a.push(v);return a.join(sep);}else{return this;}}};String.prototype.remove=function(v,sep){if(this==v||this===""){return "";}else{if(!AI.utils.isValid(sep)){sep=",";}var a=this.split(sep);var p=a.indexOf(v);if(p==-1){return this;}do{a.splice(p,1);}while((p=a.indexOf(v))!=-1);return a.join(sep);}};String.prototype.stripTags=function(){return this.replace(/<\/?[^>]+>/gi,"");};String.prototype.encodeRE=function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,'\\$1');};function camelToHyphen(t){var R='';for(var i=0,m=t.length;i<m;++i){if(t.charAt(i)==t.charAt(i).toUpperCase()){R=R+'-'+t.charAt(i).toLowerCase();}else{R=R+t.charAt(i);}}return R;}function HyphenToCamel(t){var R='';return R;}
Number.prototype.limit=function(vmin,vmax){if(vmax!==null&&typeof vmax=="number"&&this>vmax){return vmax;}else if(vmin!==null&&typeof vmin=="number"&&this<vmin){return vmin;}else{return Number(this);}};Number.prototype.inRange=function(vmin,vmax){return this>=vmin&&this<=vmax;};Number.prototype.betweenRange=function(vmin,vmax){return this>vmin&&this<vmax;};function intval(i){var R=parseInt(i,10)||0;R=isNaN(R)?0:R;return R;}function floatval(f,nb){var R=parseFloat(f.toString().replace(',','.'))||0;nb=nb?nb:2;return R.toFixed(nb);}
if(!Function.prototype.apply){Function.prototype.apply=function(oScope,args){var sarg=[];var rtrn,appel;if(!oScope){oScope=window;}if(!args){args=[];}for(var i=0;i<args.length;i++){sarg[i]="args["+i+"]";}appel="oScope._applyTemp_("+sarg.join(",")+");";oScope._applyTemp_=this;rtrn=eval(appel);delete oScope._applyTemp_;return rtrn;};}
AI.Browser=function(){var N=navigator,A=N.userAgent,E=null,V=null,M=0,m=0,R=0,B=0,Z=null,W;if($W.opera&&(/Opera[\s\/]([0-9\.]*)/.test(A))){E="opera";V=RegExp.$1;V=V.substring(0,3)+"."+V.substring(3);Z=A.contains("MSIE")?"mshtml":A.contains("Mozilla")?"gecko":null;}else if(typeof N.vendor=='string'&&N.vendor=="KDE"){E="khtml";}else if(typeof N.product=='string'&&N.product=="Gecko"&&(/rv\:([^\);]+)(\)|;)/.test(A))){E="gecko";V=RegExp.$1;}else if(/MSIE\s+([^\);]+)(\)|;)/.test(A)){E="mshtml";V=RegExp.$1;}if(V){W=V.split('.');M=W[0]||0;m=W[1]||0;R=W[2]||0;B=W[3]||0;}this.engine=E;this.version=V;this.major=M;this.minor=m;this.revision=R;this.build=B;this.emulation=Z;this.IE=false;this.IE6=false;this.IE7=false;this.mshtml=false;this.gecko=false;this.opera=false;this.khtml=false;this[E]=true;this.strict=$D.compatMode=='CSS1Compat'?true:false;this.quirks=$D.compatMode=='CSS1Compat'?false:true;};var IS=new AI.Browser();
/*@cc_on
IS.IE = true;
if ( @_jscript_version == 5.6 ) IS.IE6 = true;
if ( @_jscript_version == 5.7 ) IS.IE7 = true;

// stops IE6 repeat loading of CSS background images
// http://ajaxian.com/archives/no-more-ie6-background-flicker
if ( IS.IE6 )
{
  try { $D.execCommand("BackgroundImageCache", false, true); } catch(e) {}
}

@*/
var $P;AI.extend=function(source,superclass,classname){function F(){}F.prototype=superclass.prototype;$P=source.prototype=new F();source.superclass=superclass;$P.classname=source.classname=classname.replace(/\./,'_');$P.constructor=source;return $P;};AI.addProp=function(nom,def,type){var methode=nom.toFirstUp(),value='_value'+methode,autocheck='_autocheck'+methode;if(typeof def=='undefined'){def=null;}$P[value]=def;$P['get'+methode]=function(){return this[value];};$P['force'+methode]=function(N){this[value]=N;return N;};$P['reset'+methode]=function(){return this['set'+methode](def);};$P[autocheck]=function(N){return N;};if(type&&typeof type==='string'){switch(type){case 'bool':$P['toggle'+methode]=function(){return this['set'+methode](!this[value]);};$P[autocheck]=function(N){return N?true:false;};$P['is'+methode]=$P['get'+methode];break;case 'int':$P[autocheck]=function(N){return intval(N);};break;}}$P['set'+methode]=function(nouveau){var modifier='_modify'+methode,C='_check'+methode,old=this[value];if(nouveau===old){return nouveau;}nouveau=this[ typeof this[C]!=='undefined'?C:autocheck](nouveau);if(nouveau===old){return nouveau;}this[value]=nouveau;if(this[modifier]){try{this[modifier](nouveau,old);}catch(x){this.error('Echec modif '+nom+'('+x+');'+this.toOid()+'.set'+methode+'('+nouveau+','+old+')',modifier);}}return nouveau;};};AI.addMultiProp=function(A){for(var i=0;i<A.length;i++){AI.addProp(A[i][0],A[i][1]||null,A[i][2]||'');}};
AI.obj=function(a){this.hashCode=AI.obj._hashCode++;if(a){AI.obj.cacheInstance(this);}return this;};AI.obj._hashCode=0;AI.extend(AI.obj,Object,'AI.obj');AI.addProp('enabled',true,'bool');AI.obj.toHashCode=function(o){if(o.hashCode&&o.hashCode!==null){return o.hashCode;}o.hashCode=AI.obj._hashCode++;return o.hashCode;};$P.toString=function(){return(this.classname)?"[object "+this.classname+"]":"[object Object]";};$P.toHashCode=function(){return this.hashCode;};$P.toOid=function(){return this.classname.replace(/^AI_/,'')+this.toHashCode();};AI.obj._inst={};AI.obj.cacheInstance=function(I){AI.obj._inst[I.hashCode]=I;};AI.obj.getCacheInstance=function(h){if(AI.obj._inst[h]!==null){return AI.obj._inst[h];}return null;};AI.obj.getCacheInstanceFromElement=function(E){if(typeof E.hashCode!=='undefined'){return AI.obj.getCacheInstance(E.hashCode);}return null;};$P._datas=null;$P.getDatas=function(){return this._datas;};$P.setDatas=function(d){this._datas=d;this._afterSetDatas();};$P.removeDatas=function(){this._datas=null;};$P._afterSetDatas=AI.utils.returnTrue;$P.readDatas=AI.utils.returnTrue;$P.info=function(m){AI.console.info(m);};$P.warning=function(m){AI.console.warning(m);};$P.error=function(m){AI.console.error(m);};$P.disposed=false;$P.dispose=function(){if(this.disposed){return true;}if(this._datas){for(var p in this._datas){delete this._datas[p];}delete this._datas;}if(this.hashCode&&AI.obj._inst[this.hashCode]){delete AI.obj._inst[this.hashCode];}delete this.hashCode;this.disposed=true;return true;};AI.obj.dispose=function(){for(var i=AI.obj._inst.length;i--;){var o=AI.obj._inst[i];if(o!==null){o.dispose();delete AI.obj._inst[i];}}$P=null;};
AI.dispatcher=function(A){this.$L={};return AI.obj.call(this,A);};AI.extend(AI.dispatcher,AI.obj,'AI.dispatcher');$P.addListener=function(T,F,O){if(this.disposed){return false;}if(typeof this.$L[T]==='undefined'){this.$L[T]={};}var K=AI.dispatcher._boundKey(F,O);this.$L[T][K]={f:F,o:AI.utils.isValid(O)?O:this};return true;};$P.removeListener=function(T,F,O){var L=this.$L;if(this._disposed||!L||typeof L[T]==='undefined'){return false;}var K=AI.dispatcher._boundKey(F,AI.utils.isValid(O)?O:this);delete this.$L[T][K];return true;};$P.dispatch=function(T,A){if(this.disposed){return false;}this._canBubbleDispatch=true;if(this.hasListeners(T)){var L=this.$L;if(L){var tL=L[T];if(tL){var F,O;for(var h in tL){F=tL[h].f;O=tL[h].o;try{if(typeof F==='function'){F.call(O,T,A);}}catch(x){this.error('Impossible de dispatcher "'+T+'":'+x,'dispatch');}}}}}if(this._canBubbleDispatch&&this.getParent){var P=this.getParent();if(this._canBubbleDispatch&&P!==null){P.dispatch(T,A);}}return true;};AI.dispatcher._boundKey=function(F,o){return 'evt'+AI.obj.toHashCode(F)+(o?'_'+AI.obj.toHashCode(o):'');};$P.hasListeners=function(T){return this.$L&&typeof this.$L[T]!=='undefined'&&!AI.utils.isObjectEmpty(this.$L[T]);};$P.getParent=AI.utils.returnNull;$P.dispose=function(){if(this.disposed){return true;}for(var T in this.$L){for(var K in this.$L[T]){delete this.$L[T][K];}delete this.$L[T];}delete this.$L;delete this._canBubbleDispatch;return AI.obj.prototype.dispose.call(this);};
AI.timer=function(I){AI.dispatcher.call(this,false);this.setEnabled(false);if(AI.utils.isValidNumber(I)){this.setInterval(I);}var o=this;this.$$I=function(){o._onint();};return this;};AI.extend(AI.timer,AI.dispatcher,"AI.timer");AI.addProp("interval",1000,'int');$P.$intH=null;$P._modifyEnabled=function(V,O){if(!this.disposed){if(O){clearInterval(this.$intH);this.$intH=null;}else if(V){this.$intH=setInterval(this.$$I,this.getInterval());}}};$P.start=function(){this.setEnabled(true);};$P.startWith=function(I){this.setInterval(I);this.start();};$P.stop=function(){this.setEnabled(false);};$P.restart=function(){this.stop();this.start();};$P.restartWith=function(I){this.stop();this.startWith(I);};$P._onint=function(){if(this.getEnabled()){this.dispatch('interval');}};$P.dispose=function(){if(this.disposed){return true;}this.stop();if(this.$intH){clearInterval(this.$intH);this.$intH=null;try{delete this.$intH;}catch(x){}}this.$$I=null;try{delete this.$$I;}catch(x){}return AI.dispatcher.prototype.dispose.call(this);};AI.timer.once=function(F,S,I){var T=new AI.timer(I);T.addListener('interval',function(e){F.call(S,e);T.dispose();S=T=null;},S);T.start();};
AI.parent=function(a){AI.dispatcher.call(this,a);this._children=[];this._layoutTimer=new AI.timer(1000);this._layoutTimer.addListener('interval',AI.parent._onLayoutTimer,this);return this;};AI.extend(AI.parent,AI.dispatcher,'AI.parent');AI.addProp('parent');$P._saveFilter=function(){};$P._restoreFilter=function(){};if(IS.IE){$P._saveFilter=function(){this._savedFilter=this.getElement().runtimeStyle.filter;this.forEachChild(function(){this._saveFilter();});};$P._restoreFilter=function(){if(typeof this._savedFilter!='undefined'&&this._savedFilter!==''){this.getElement().runtimeStyle.filter=this._savedFilter;}this.forEachChild(function(){this._restoreFilter();});};}$P._hasParent=false;$P._modifyParent=function(V,O){var refInsert=-1;this._hasParent=false;if(O){O.getChildren().removeAt(O.getChildren().indexOf(this));this.dispatch('beforeRemoveDom');this._saveFilter();this.getElement().parentNode.removeChild(this.getElement());this.dispatch('afterRemoveDom');}if(V){this._hasParent=true;if(this._insertIndex&&AI.utils.isValidNumber(this._insertIndex)){V.getChildren().insertAt(this,this._insertIndex);refInsert=this._insertIndex+1;delete this._insertIndex;}else{V.getChildren().push(this);}if(!this.created){this._createElementImpl();}this.dispatch('beforeInsertDom');if(this.getIdReplace()){var c=$(this.getIdReplace());this.getElement().id=this.getIdReplace();c.parentNode.replaceChild(this.getElement(),c);}else{if(refInsert<0||refInsert>=V.getChildren().length){V.getElement().appendChild(this.getElement());}else{var xxx=V.getChildren()[refInsert].$elt;V.getElement().insertBefore(this.getElement(),xxx);}}this._restoreFilter();this.dispatch('afterInsertDom');}};$P.getFirstChild=function(){return this.getChildren().getFirst();};$P.getLastChild=function(){return this.getChildren().getLast();};$P.forEachChild=function(F){var C=this.getChildren();for(var i=0,m=C.length;i<m;i++){F.call(C[i],i);}};$P.getTopLevelWidget=function(){return this._hasParent?this.getParent().getTopLevelWidget():null;};$P.getChildren=function(){return this._children;};$P.getChildrenLength=function(){return this.getChildren().length;};$P.hasChildren=function(){return this.getChildrenLength()>0;};$P.isEmpty=function(){return this.getChildrenLength()===0;};$P.indexOf=function(c){return this.getChildren().indexOf(c);};$P.contains=function(W){switch(W){case null:return false;case this:return true;default:return this.contains(W.getParent());}};$P.isInHierarchy=function(c){return this.contains(c)||c.contains(this);};$P.add=function(){for(var i=0,m=arguments.length;i<m;i++){var W=arguments[i];W.setParent(this);}this.layoutUpdate();return this;};$P.addAt=function(c,i){if(c.getParent()==this){var C=this.getChildren(),I=C.indexOf(c);if(I!=i){if(I!=-1){C.removeAt(I);}C.insertAt(c,i);}}else{c._insertIndex=i;c.setParent(this);}this.layoutUpdate();};$P.addAtBegin=function(c){return this.addAt(c,0);};$P.addAtEnd=function(c){var L=this.getChildrenLength();return this.addAt(c,c.getParent()==this?L-1:L);};$P.addBefore=function(c,b){var C=this.getChildren(),T=C.indexOf(b),S=C.indexOf(c);if(T==-1){throw new Error('addBefore('+c+','+b+');Ref erreur');}if(S==-1||S>T){T++;}return this.addAt(c,Math.max(0,T-1));};$P.addAfter=function(c,a){var C=this.getChildren(),T=C.indexOf(a),S=C.indexOf(c);if(T==-1){throw new Error('addAfter('+c+','+a+');Ref erreur');}if(S!=-1&&S<T){T--;}return this.addAt(c,Math.min(C.length,T+1));};$P.remove=function(){for(var i=0,m=arguments.length;i<m;i++){var W=arguments[i];if(W.getParent()==this){W.setParent(null);}}this.layoutUpdate();};$P.removeAt=function(I){var c=this.getChildren()[I];if(c){delete c._insertIndex;c.setParent(null);}this.layoutUpdate();};$P.removeAll=function(){var C=this.getChildren(),W=C[0];while(W){this.remove(W);W=C[0];}};AI.parent._getElementAbsolutePoint=function(chc,x,y){var xstart,ystart,xstop,ystop;if(!chc||chc.nodeType!=1){return false;}xstart=DOM.getPageBoxLeft(chc);if(x>xstart){ystart=DOM.getPageBoxTop(chc);if(y>ystart){xstop=xstart+chc.offsetWidth;if(x<xstop){ystop=ystart+chc.offsetHeight;if(y<ystop){return [ xstart,xstop,ystart,ystop ];}}}}return false;};$P._getWidgetFromPointHelper=function(x,y){var ch=this.getChildren();for(var chl=ch.length,i=0;i<chl;i++){if(AI.parent._getElementAbsolutePoint(ch[i].getElement(),x,y)){return ch[i]._getWidgetFromPointHelper(x,y);}}return this;};$P.getWidgetFromPoint=function(x,y){var ret=this._getWidgetFromPointHelper(x,y);return ret?ret:null;};$P.layoutUpdate=function(I){this._layoutTimer.stop();if(I){AI.parent._onLayoutTimer.call(this);}else{this._layoutTimer.start();}};AI.parent._onLayoutTimer=function(){this.dispatch('layoutUpdate');this._layoutTimer.stop();};$P.dispose=function(){if(this.disposed){return true;}if(this._layoutTimer!==null){this._layoutTimer.dispose();}if(this._children){for(var i=this._children.length;i--;){this._children[i].dispose();delete this._children[i];}delete this._children;}this._remapTarget=null;return AI.dispatcher.prototype.dispose.call(this);};
AI.comparaison={"byString":function(a,b){return a==b?0:a>b?1:-1;},"byStringCaseInsensitive":function(a,b){return AI.comparaison.byString(a.toLowerCase(),b.toLowerCase());},"byNumber":function(a,b){return a-b;},"byIntegerString":function(a,b){return intval(a)-intval(b);},"byNumberString":function(a,b){return parseFloat(a)-parseFloat(b);},"byIPv4":function(a,b){var ipA=a.split('.',4),ipB=b.split('.',4),i;for(i=0;i<3;i++){a=intval(ipA[i]);b=intval(ipB[i]);if(a!=b){return a-b;}}return intval(ipA[3])-intval(ipB[3]);},"byZIndex":function(a,b){return a.getZIndex()-b.getZIndex();}};AI.comparaison.byInteger=AI.comparaison.byFloat=AI.comparaison.byNumber;AI.comparaison.byFloatString=AI.comparaison.byNumberString;
function $(e,D){D=D||document;return typeof e=='string'?D.getElementById(e):e;}function $tags(T,D){D=D||document;return D.getElementsByTagName(T);}function $tag(T,i,D){return $tags(T,D)[i||0];}function $$selected(e,t){var E=$(e),O;if(E){O=E.options;if(O&&O.selectedIndex!=-1){return O[O.selectedIndex][t=='value'?t:'text'];}}return '';}function selectedValue(e){return $$selected(e,'value');}function selectedTxt(e){return $$selected(e,'text');}if(window.Node&&Node.prototype&&!Node.prototype.contains){Node.prototype.contains=function(e){return!!(this.compareDocumentPosition(e)&16);};}var DOM={head:$tag('head'),$$c:{},$$pc:{},cacheProperty:function(P){if(!DOM.$$pc[P]){DOM.$$pc[P]={camel:toCamel(P),hyphen:toHyphen(P)};}},getCamel:function(P){return DOM.$$pc[P].camel;},getHyphen:function(P){return DOM.$$pc[P].hyphen;},getX:function(e){var E=$(e),C=0;if(!E){return 0;}if(E.offsetParent){while(E.offsetParent){C+=E.offsetLeft;E=E.offsetParent;}}return C;},getY:function(e){var E=$(e),C=0;if(!E){return 0;}if(E.offsetParent){while(E.offsetParent){C+=E.offsetTop;E=E.offsetParent;}}return C;},insertFirst:function(e,p){var E=$(e),P=$(p);if(E&&P){if(P.childNodes.length===0&&P.firstChild){P.appendChild(E);}else{P.insertBefore(E,P.firstChild);}}},moveBefore:function(s,c){var S=$(s),C=$(c),P;if(C&&S&&S.parentNode){P=S.parentNode;P.removeChild(S);return P.insertBefore(S,C);}return null;},moveAfter:function(s,c){var S=$(s),C=$(c),P;if(S&&S.parentNode){P=S.parentNode;P.removeChild(S);return P.insertBefore(S,C?C.nextSibling:null);}return null;},emptyTextNode:function(){return $dct('\u00a0');},cleanWhitespace:function(e,r){var E=$(e),i,N,V;if(E&&E.childNodes){for(i=E.childNodes.length-1;i>=0;i--){N=E.childNodes[i];if(N.nodeType==document.TEXT_NODE){V=N.nodeValue.trim();if(V===''||V=='\n'||V=='\t'||V=='\r'||V=='\r\n'||V=='\n\r'){E.removeChild(N);}}else if(N.nodeType==document.ELEMENT_NODE&&r){DOM.cleanWhitespace(N,r);}}}},getInnerText:function(e){var E=$(e),R=[],i=0;if(!E){return '';}if(E.textContent){return E.textContent;}if(E.nodeType==document.TEXT_NODE){return E.data;}while(E.childNodes[i]){R.push(DOM.getInnerText(E.childNodes[i]));i++;}return R.join('');},flush:function(e,p){var E=$(e);if(E){while(E.firstChild){if(p){for(var i=p.length;i--;){E.firstChild[p]=null;}}E.removeChild(E.firstChild);}}},flushQuick:function(e){var E=$(e),C;if(E){C=E.cloneNode(false);E.parentNode.insertBefore(C,E);E.parentNode.removeChild(E);}},suivant:function(e,n){var E=$(e),S;n=n.toUpperCase();if(!E){return null;}S=E.nextSibling;while(S!==null){if(S.nodeName.toUpperCase()==n){return S;}S=S.nextSibling;}return null;},precedent:function(e,n){var E=$(e),P;n=n.toUpperCase();if(!E){return null;}P=E.previousSibling;while(P!==null){if(P.nodeName.toUpperCase()==n){return P;}P=P.previousSibling;}return null;},parent:function(e,t){var E=$(e);if(!E){return null;}t=t.toUpperCase();while(E!==null&&E.parentNode){if(E.tagName.toUpperCase()==t){return E;}E=E.parentNode;}return null;},_realCss:function(N){return N;},pix:function(){var p=0,i;for(i=arguments.length;i--;){p+=intval(arguments[i]);}return p+'px';},getStyle:function(e,P){var E=$(e),V=null,d=document.defaultView;if(!E){return V;}if(P=='opacity'&&E.filters){V=1;try{V=E.filters.item('DXImageTransform.Microsoft.Alpha').opacity/100;}catch(x){try{V=E.filters.item('alpha').opacity/100;}catch(x){}}}else if(E.style[P]){V=E.style[P];}else if(E.currentStyle&&E.currentStyle[P]){V=E.currentStyle[P];}else if(d&&d.getComputedStyle){var c=camelToHyphen(P);if(d.getComputedStyle(E,'').getPropertyValue(c)){V=d.getComputedStyle(E,'').getPropertyValue(c);}}return V;},getStyle_PLEASE_TEST_ME:function(e,P){var E=$(e),V=null,dv=document.defaultView,camel=DOM.getCamel(P),hyphen=DOM.getHyphen(P);if(P=='opacity'&&E.filters){V=1;try{V=E.filters.item('DXImageTransform.Microsoft.Alpha').opacity/100;}catch(x){try{V=E.filters.item('alpha').opacity/100;}catch(x){}}}else if(E.style[camel]){V=E.style[camel];}else if(IS.IE&&E.currentStyle&&E.currentStyle[camel]){V=E.currentStyle[camel];}else if(dv&&dv.getComputedStyle){if(dv.getComputedStyle(E,'').getPropertyValue(c)){V=dv.getComputedStyle(E,'').getPropertyValue(c);}}return V;},getStyleInt:function(e,P){return intval(DOM.getStyle(e,P))||0;},hasCSS:function(e,C){var E=$(e),c;if(!E||!E.className){return false;}c=E.className.split(' ');return c.contains(C);},setCSS:function(e,C){var E=$(e);if(E){E.className=C;}},addCSS:function(e,C){var E=$(e),c;if(E){if(E.className){c=E.className.split(' ');if(!c.contains(C)){c.push(C);E.className=c.join(' ');}}else{E.className=C;}}},removeCSS:function(e,C){var E=$(e),c;if(E&&E.className){c=E.className.split(' ');if(c.contains(C)){c.remove(C);E.className=c.join(' ');}}},hide:function(e){DOM.addCSS(e,'cacher');},show:function(e){DOM.removeCSS(e,'cacher');},isHide:function(e){return DOM.hasCSS(e,'cacher');},toggle:function(e){return DOM.isHide(e)?DOM.show(e):DOM.hide(e);},toggleChilds:function(e){var C=$(e).childNodes,i;for(i=0;i<C.length;i++){if(!DOM.hasCSS(C[i],'ne_pas_cacher')){DOM[ DOM.isHide(C[i])?'show':'hide' ](C[i]);}}},getMarginLeft:function(E){return DOM.getStyleInt(E,'marginLeft');},getMarginTop:function(E){return DOM.getStyleInt(E,'marginTop');},getMarginRight:function(E){return DOM.getStyleInt(E,'marginRight');},getMarginBottom:function(E){return DOM.getStyleInt(E,'marginBottom');},getPaddingLeft:function(E){return DOM.getStyleInt(E,'paddingLeft');},getPaddingTop:function(E){return DOM.getStyleInt(E,'paddingTop');},getPaddingRight:function(E){return DOM.getStyleInt(E,'paddingRight');},getPaddingBottom:function(E){return DOM.getStyleInt(E,'paddingBottom');},getBorderLeft:function(E){return DOM.getStyle(E,"borderLeftStyle")=='none'?0:DOM.getStyleInt(E,"borderLeftWidth");},getBorderTop:function(E){return DOM.getStyle(E,"borderTopStyle")=='none'?0:DOM.getStyleInt(E,"borderTopWidth");},getBorderRight:function(E){return DOM.getStyle(E,"borderRightStyle")=='none'?0:DOM.getStyleInt(E,"borderRightWidth");},getBorderBottom:function(E){return DOM.getStyle(E,"borderBottomStyle")=='none'?0:DOM.getStyleInt(E,"borderBottomWidth");},applyStyle:function(e,S){var E=$(e);if(E){E.setAttribute('style',S);}},setOpacity:function(e,V){var E=$(e);if(E){if(V===null||V>=1||V<0){DOM.removeOpacity(E);}else{E.style.opacity=V;DOM._setOpacity(E,V);}}},_setOpacity:function(E,V){},removeOpacity:function(e){var E=$(e);if(E){E.style.opacity=null;DOM._removeOpacity(E);}},_removeOpacity:function(E){},whitespace:{isAll:function(nod){return!(/[^\t\n\r ]/.test(nod.data));},isIgnorable:function(nod){return(nod.nodeType==document.COMMENT_NODE)||((nod.nodeType==document.TEXT_NODE)&&DOM.whitespace.isAll(nod));},nodeBefore:function(sib){while((sib=sib.previousSibling)){if(!DOM.whitespace.isIgnorable(sib)){return sib;}}return null;},nodeAfter:function(sib){while((sib=sib.nextSibling)){if(!DOM.whitespace.isIgnorable(sib)){return sib;}}return null;},lastChild:function(par){var res=par.lastChild;while(res){if(!DOM.whitespace.isIgnorable(res)){return res;}res=res.previousSibling;}return null;},firstChild:function(par){var res=par.firstChild;while(res){if(!DOM.whitespace.isIgnorable(res)){return res;}res=res.nextSibling;}return null;},dataOf:function(txt){var data=txt.data.replace(/[\t\n\r ]+/g," ");if(data.charAt(0)==" "){data=data.substring(1,data.length);}if(data.charAt(data.length-1)==" "){data=data.substring(0,data.length-1);}return data;}},disableSelection:function(elt,cursor){elt.onselectstart=function(){return false;};elt.unselectable='on';elt.style.MozUserSelect='none';elt.style.cursor=cursor||'default';}};if(IS.IE){DOM._realCss=function(N){if(N=='cssFloat'){return 'styleFloat';}return N;};DOM.applyStyle=function(e,S){var E=$(e);if(E){if(typeof S=='object'){S=S.cssText;}E.style.cssText=S;}};DOM._removeOpacity=function(E){E.style.filter=null;};DOM._setOpacity=function(E,V){if(!(E.currentStyle&&E.currentStyle.hasLayout)){E.style.zoom=1;}E.style.filter='alpha(opacity='+Math.round(V*100)+')';};}else if(IS.gecko){if(IS.major<=1&&IS.minor<5){DOM._removeOpacity=function(E){E.style.MozOpacity=null;};DOM._setOpacity=function(E,V){E.style.MozOpacity=V;};}}else if(IS.khtml){DOM._removeOpacity=function(E){E.style.KhtmlOpacity=null;};DOM._setOpacity=function(E,V){E.style.KhtmlOpacity=V;};}document._createElement=document.createElement;document._createDocumentFragment=document.createDocumentFragment;document.createElement=function(e){e=e.toLowerCase();if(!DOM.$$c[e]){DOM.$$c[e]=document._createElement(e);}return DOM.$$c[e].cloneNode(false);};document.createDocumentFragment=function(){if(!DOM.$$c.$df){DOM.$$c.$df=document._createDocumentFragment();}return DOM.$$c.$df.cloneNode(false);};function $E(e,o,s,c,t,n){var name=o&&o.name?o.name:null,E=$dce(e,name),k,i,m=c&&c.length?c.length:0;if(o){for(k in o){if(k=='disableSelection'&&o[k]!==false){DOM.disableSelection(E,typeof o[k]=='boolean'?'default':o[k]);}else{E[k]=o[k];}}}$style(E,s);if(m>0){for(i=0;i<m;i++){E.appendChild(c[i]);}}if(AI.utils.isValidString(t)&&AI.utils.isValidElement(n)){t=t.toLowerCase();switch(t){case 'ib':case 'before':case 'insertbefore':n.parentNode.insertBefore(E,n);break;case 'if':case 'first':case 'insertfirst':DOM.insertFirst(E,n);break;case 'rc':case 'replace':case 'replacechild':n.parentNode.replaceChild(E,n);break;default:n.appendChild(E);break;}}return E;}function $styleDEPRECATED(e,P){var E=$(e),k;if(P&&E&&E.style){for(k in P){if(k=='opacity'){DOM.setOpacity(E,P[k]);}else{E.style[DOM._realCss(k)]=P[k];}}}}function $style(e,P){var E=$(e),A,C,k;if(P&&E&&E.style){C=E.cloneNode(true);for(k in P){if(k=='opacity'){DOM.setOpacity(C,P[k]);}else{C.style[DOM._realCss(k)]=P[k];}}DOM.applyStyle(E,C.getAttribute('style'));}}DOM.centerToParent=function(e){DOM.centerToParentHorizontal(e);DOM.centerToParentVertical(e);};DOM.centerToParentHorizontal=function(e){setTimeout(function(){var E=$(e),P=E.parentNode,W=P&&P.tagName&&P.tagName.toUpperCase()==='BODY'?DOM.getViewportWidth():P.offsetWidth;E.style.left=intval((W-E.offsetWidth)/2)+'px';},1);};DOM.centerToParentVertical=function(e){setTimeout(function(){var E=$(e),P=E.parentNode,W=P&&P.tagName&&P.tagName.toUpperCase()==='BODY'?DOM.getViewportHeight():P.offsetHeight;E.style.top=intval((W-E.offsetHeight)/2)+'px';},1);};function $dce(e){return document.createElement(e);}if(IS.IE){$dce=function(e,n){return document.createElement(n?'<'+e+' name="'+n+'">':e);};}function $dct(t){return document.createTextNode(t);}
DOM.getOuterWidth=function(el){return DOM.getBoxWidth(el)+DOM.getMarginLeft(el)+DOM.getMarginRight(el);};DOM.getOuterHeight=function(el){return DOM.getBoxHeight(el)+DOM.getMarginTop(el)+DOM.getMarginBottom(el);};DOM.getBoxWidth=function(el){return intval(el.offsetWidth);};DOM.getBoxHeight=function(el){return intval(el.offsetHeight);};DOM.getBoxWidthSafe=function(el){var h=el.offsetHeight,v,o;if(h===0){o=el.style.height;el.style.height='1px';}v=el.offsetWidth;if(h===0){el.style.height=o;}return v;};DOM.getBoxHeightSafe=function(el){var w=el.offsetWidth,v,o;if(w===0){o=el.style.width;el.style.width="1px";}v=el.offsetHeight;if(w===0){el.style.width=o;}return v;};if(IS.gecko){DOM.getAreaWidth=function(el){if(el.clientWidth!==0&&el.clientWidth!=(DOM.getBorderLeft(el)+DOM.getBorderRight(el))){return el.clientWidth;}else{return DOM.getBoxWidth(el)-DOM.getInsetLeft(el)-DOM.getInsetRight(el);}};DOM.getAreaHeight=function(el){if(el.clientHeight!==0&&el.clientHeight!=(DOM.getBorderTop(el)+DOM.getBorderBottom(el))){return el.clientHeight;}else{return DOM.getBoxHeight(el)-DOM.getInsetTop(el)-DOM.getInsetBottom(el);}};}else{DOM.getAreaWidth=function(el){return el.clientWidth!==0?el.clientWidth:(DOM.getBoxWidth(el)-DOM.getInsetLeft(el)-DOM.getInsetRight(el));};DOM.getAreaHeight=function(el){return el.clientHeight!==0?el.clientHeight:(DOM.getBoxHeight(el)-DOM.getInsetTop(el)-DOM.getInsetBottom(el));};}DOM.getInnerWidth=function(el){return DOM.getAreaWidth(el)-DOM.getPaddingLeft(el)-DOM.getPaddingRight(el);};DOM.getInnerHeight=function(el){return DOM.getAreaHeight(el)-DOM.getPaddingTop(el)-DOM.getPaddingBottom(el);};if(IS.IE){DOM.getInsetLeft=function(el){return el.clientLeft;};DOM.getInsetTop=function(el){return el.clientTop;};DOM.getInsetRight=function(el){if(DOM.getStyle(el,"overflowY")=='hidden'||el.clientWidth===0){return DOM.getBorderRight(el);}return Math.max(0,el.offsetWidth-el.clientLeft-el.clientWidth);};DOM.getInsetBottom=function(el){if(DOM.getStyle(el,"overflowX")=='hidden'||el.clientHeight===0){return DOM.getBorderBottom(el);}return Math.max(0,el.offsetHeight-el.clientTop-el.clientHeight);};}else{DOM.getInsetLeft=function(el){return DOM.getBorderLeft(el);};DOM.getInsetTop=function(el){return DOM.getBorderTop(el);};DOM.getInsetRight=function(el){if(el.clientWidth===0){var ov=DOM.getStyle(el,'overflow'),sbv=ov=="scroll"||ov=="-moz-scrollbars-vertical"?16:0;return Math.max(0,DOM.getBorderRight(el)+sbv);}return Math.max(0,el.offsetWidth-el.clientWidth-DOM.getBorderLeft(el));};DOM.getInsetBottom=function(el){if(el.clientHeight===0){var ov=DOM.getStyle(el,'overflow'),sbv=ov=="scroll"||ov=="-moz-scrollbars-horizontal"?16:0;return Math.max(0,DOM.getBorderBottom(el)+sbv);}return Math.max(0,el.offsetHeight-el.clientHeight-DOM.getBorderTop(el));};}DOM.SCROLLBAR_SIZE=null;DOM.getScrollBarSize=function(){if(DOM.SCROLLBAR_SIZE){return DOM.SCROLLBAR_SIZE;}var div=$E('div',{},{height:'100px',width:'100px',overflow:'scroll'},[],'ac',$D.body),c=DOM.getScrollBarSizeRight(div);if(c){DOM.SCROLLBAR_SIZE=c;}$D.body.removeChild(div);return c;};DOM.getScrollBarSizeLeft=function(el){return 0;};DOM.getScrollBarSizeTop=function(el){return 0;};DOM.getScrollBarSizeRight=function(el){return DOM.getInsetRight(el)-DOM.getBorderRight(el);};DOM.getScrollBarSizeBottom=function(el){return DOM.getInsetBottom(el)-DOM.getBorderBottom(el);};DOM.isScrollBarVisibleX=function(el){return DOM.getScrollBarSizeRight(el)>0;};DOM.isScrollBarVisibleY=function(el){return DOM.getScrollBarSizeBottom(el)>0;};DOM.getScrollLeftSum=function(el){var sum=0,p=el.parentNode;while(p&&p.nodeType&&p.nodeType==$D.ELEMENT_NODE){sum+=p.scrollLeft;p=p.parentNode;}return sum;};DOM.getScrollTopSum=function(el){var sum=0,p=el.parentNode;while(p&&p.nodeType&&p.nodeType==$D.ELEMENT_NODE){sum+=p.scrollTop;p=p.parentNode;}return sum;};if(IS.IE){DOM.getClientBoxLeft=function(el){return el.getBoundingClientRect().left;};DOM.getClientBoxTop=function(el){return el.getBoundingClientRect().top;};DOM.getPageBoxLeft=function(el){return DOM.getClientBoxLeft(el)+DOM.getScrollLeftSum(el);};DOM.getPageBoxTop=function(el){return DOM.getClientBoxTop(el)+DOM.getScrollTopSum(el);};}else if(IS.gecko){DOM.getClientBoxLeft=function(el){return DOM.getClientAreaLeft(el)-DOM.getBorderLeft(el);};DOM.getClientBoxTop=function(el){return DOM.getClientAreaTop(el)-DOM.getBorderTop(el);};DOM.getPageBoxLeft=function(el){return DOM.getPageAreaLeft(el)-DOM.getBorderLeft(el);};DOM.getPageBoxTop=function(el){return DOM.getPageAreaTop(el)-DOM.getBorderTop(el);};}else{DOM.getPageBoxLeft=function(el){var sum=0;while(el&&el.tagName.toUpperCase()!='BODY'){sum+=intval(el.offsetLeft);el=el.offsetParent;}return sum;};DOM.getPageBoxTop=function(el){var sum=0;while(el&&el.tagName.toUpperCase()!=='BODY'){sum+=intval(el.offsetTop);el=el.offsetParent;}return sum;};DOM.getClientBoxLeft=function(el){var sum=el.offsetLeft;while(el&&el.tagName.toUpperCase()!=='BODY'){el=el.offsetParent;if(el){sum+=el.offsetLeft-el.scrollLeft;}}return sum;};DOM.getClientBoxTop=function(el){var sum=el.offsetTop;while(el&&el.tagName.toUpperCase()!=='BODY'){el=el.offsetParent;if(el){sum+=el.offsetTop-el.scrollTop;}}return sum;};}if(IS.IE){DOM.getClientBoxRight=function(el){return el.getBoundingClientRect().right;};DOM.getClientBoxBottom=function(el){return el.getBoundingClientRect().bottom;};DOM.getPageBoxRight=function(el){return DOM.getClientBoxRight(el)+DOM.getScrollLeftSum(el);};DOM.getPageBoxBottom=function(el){return DOM.getClientBoxBottom(el)+DOM.getScrollTopSum(el);};}else{DOM.getClientBoxRight=function(el){return DOM.getClientBoxLeft(el)+DOM.getBoxWidth(el);};DOM.getClientBoxBottom=function(el){return DOM.getClientBoxTop(el)+DOM.getBoxHeight(el);};DOM.getPageBoxRight=function(el){return DOM.getPageBoxLeft(el)+DOM.getBoxWidth(el);};DOM.getPageBoxBottom=function(el){return DOM.getPageBoxTop(el)+DOM.getBoxHeight(el);};}if(IS.gecko){DOM.getPageAreaLeft=function(el){return el.ownerDocument.getBoxObjectFor(el).x;};DOM.getPageAreaTop=function(el){return el.ownerDocument.getBoxObjectFor(el).y;};DOM.getClientAreaLeft=function(el){return DOM.getPageAreaLeft(el)-DOM.getScrollLeftSum(el);};DOM.getClientAreaTop=function(el){return DOM.getPageAreaTop(el)-DOM.getScrollTopSum(el);};}else{DOM.getPageAreaLeft=function(el){return DOM.getPageBoxLeft(el)+DOM.getBorderLeft(el);};DOM.getPageAreaTop=function(el){return DOM.getPageBoxTop(el)+DOM.getBorderTop(el);};DOM.getClientAreaLeft=function(el){return DOM.getClientBoxLeft(el)+DOM.getBorderLeft(el);};DOM.getClientAreaTop=function(el){return DOM.getClientBoxTop(el)+DOM.getBorderTop(el);};}DOM.getClientAreaRight=function(el){return DOM.getClientAreaLeft(el)+DOM.getAreaWidth(el);};DOM.getClientAreaBottom=function(el){return DOM.getClientAreaTop(el)+DOM.getAreaHeight(el);};DOM.getPageAreaRight=function(el){return DOM.getPageAreaLeft(el)+DOM.getAreaWidth(el);};DOM.getPageAreaBottom=function(el){return DOM.getPageAreaTop(el)+DOM.getAreaHeight(el);};DOM.getViewportHeight=function(){var height=-1;if(($D.compatMode||IS.IE)&&!IS.opera){if(IS.strict){height=$D.documentElement.clientHeight;}else{height=$D.body.clientHeight;}}else{height=self.innerHeight;}return height;};DOM.getViewportWidth=function(){var width=-1;if($D.compatMode||IS.IE){if(IS.strict){width=$D.documentElement.clientWidth;}else{width=$D.body.clientWidth;}}else{width=self.innerWidth;}return width;};DOM.windowHeight=AI.utils.returnZero;DOM.windowWidth=AI.utils.returnZero;if(self.innerHeight){DOM.windowHeight=function(){return self.innerHeight;};DOM.windowWidth=function(){return self.innerWidth;};}else if($D.documentElement){DOM.windowHeight=function(){return $D.documentElement.clientHeight;};DOM.windowWidth=function(){return $D.documentElement.clientWidth;};}else if($D.body){DOM.windowHeight=function(){return $D.body.clientHeight;};DOM.windowWidth=function(){return $D.body.clientWidth;};}
DOM._loaded={};DOM.$id=0;DOM.loadStylesheet=function(U,I){if(!DOM._loaded[U]){if(!AI.utils.isValidString(I)){I=U.replace(/[^\w]/g,'-').toCamelCase()+DOM.$id++;}var H=$tag('head'),L=$E("link",{id:I,rel:'stylesheet',href:U});H.appendChild(L);DOM._loaded[U]=I;}};DOM.removeStylesheet=function(U){if(DOM._loaded[U]){try{var H=$tag("head"),L=$(DOM._loaded[U]);H.removeChild(L);}catch(x){}delete DOM._loaded[U];}};if(IS.IE){DOM.createStyleElement=function(C){var S=$D.createStyleSheet();if(C){S.cssText=C;}return S;};DOM.addCssRule=function(vSheet,vSelector,vStyle){vSheet.addRule(vSelector,vStyle);};DOM.removeCssRule=function(vSheet,vSelector){var vRules=vSheet.rules,i;for(i=vRules.length;i--;){if(vRules[i].selectorText==vSelector){vSheet.removeRule(i);}}};DOM.removeAllCssRules=function(S){var R=S.rules,i;for(i=R.length;i--;){S.removeRule(i);}};}else{DOM.createStyleElement=function(C){var E=$E("style",{type:"text/css"});if(C){E.appendChild($dct(C));}$tag('head').appendChild(E);return E.sheet;};DOM.addCssRule=function(S,r,t){S.insertRule(r+"{"+t+"}",S.cssRules.length);};DOM.removeCssRule=function(S,r){var R=S.cssRules,i;for(i=R.length;i--;){if(R[i].selectorText==r){S.deleteRule(i);}}};DOM.removeAllCssRules=function(S){var R=S.cssRules,i;for(i=R.length;i--;){S.deleteRule(i);}};}
Error.prototype.toString=function(){return this.message;};if(typeof Error.prototype.lineNumber!=='undefined'&&typeof Error.prototype.fileName!=='undefined'){Error.prototype.toString=function(){var X=this.fileName.split('/');return '#'+this.lineNumber+':'+X[X.length-1]+' "'+this.message+'"';};}AI.console=AI.getSimilarParentObject('console')||function(){var dragged=false,dragX=0,dragY=0,actif=true,log=$E('ul',{id:'console_main'},IS.IE6?{'height':'300px','overflow':'auto'}:{}),label=$E('h1',{"disableSelection":'pointer',title:__("Cliquez pour activer/désactiver les rapports d'erreurs dans la console"),onclick:function(){if(!dragged){setActif(!actif);}return false;}},{},[$dct(__('Console activée'))]),container=$E('div',{id:'console_container',className:'cacher'},{},[ $E('div',{id:'console_boutons',className:'clearfix'},{},[ $E('span',{"disableSelection":'pointer',title:__('Fermer'),onclick:function(){DOM.hide(container);return false;}},{"cssFloat":'right'},[$dct(__('Fermer'))]),$E('span',{"disableSelection":'pointer',title:__('Vider'),onclick:function(){DOM.flush(log);return false;}},{"cssFloat":'left'},[$dct(__('Vider'))]),label ]),log ]);function setActif(state){actif=state;label.innerHTML=actif?__('Console activée'):__('Console désactivée');return actif;}function message(mode,msg,force){if((actif||force)&&AI.utils.isValid(msg)){if(!AI.utils.isValidString(mode)){mode='info';}$E('li',{className:'console-'+mode},{},[$dct(msg)],'if',log);if(mode!='info'){DOM.show(container);}}}function messageHTML(html){if(actif&&AI.utils.isValid(html)){$E('li',{"innerHTML":html,"className":'console-html'},{},[],'if',log);}}function onLabelMouseDown(evt){evt=EVT.fix(evt);dragged=false;dragX=DOM.getX(container)-EVT.getX(evt);dragY=DOM.getY(container)-EVT.getY(evt);EVT.add(document,"mousemove",onLabelMouseMove);EVT.add(document,"mouseup",onLabelMouseUp);EVT.preventDefault(evt);}function onLabelMouseMove(evt){evt=EVT.fix(evt);/*@cc_on if(IS.IE6){DOM.hide(log);}@*/$style(container,{top:(EVT.getY(evt)+dragY)+'px',left:(EVT.getX(evt)+dragX)+'px'});dragged=true;}function onLabelMouseUp(evt){evt=EVT.fix(evt);/*@cc_on if(IS.IE6){DOM.show(log);}@*/EVT.remove(document,"mousemove",onLabelMouseMove);EVT.remove(document,"mouseup",onLabelMouseUp);}function layout(){if(document.body&&DOM&&EVT&&AJAX){DOM.loadStylesheet('/css/widget/console.css','console');document.body.appendChild(container);label.onmousedown=onLabelMouseDown;message('info',__('Console activée'));}else{setTimeout(layout,200);}}layout();function appendText(obj,tbl){tbl.push(AI.utils.escapeHTML(obj));}function appendNull(obj,tbl){tbl.push('<span class="console-null">',AI.utils.escapeHTML(obj),'</span>');}function appendBoolean(obj,tbl){tbl.push('<span class="console-boolean">',AI.utils.escapeHTML(obj),'</span>');}function appendString(obj,tbl){tbl.push('<span class="console-string">&quot;',AI.utils.escapeHTML(obj),'&quot;</span>');}function appendNumber(obj,tbl){tbl.push('<span class="console-number">',AI.utils.escapeHTML(obj),'</span>');}function appendFunction(obj,tbl){var r=/function?(.*?)\(/,m=r.exec(obj),n=m?m[1]:"function";if(n.trim()===''){n='function';}tbl.push('<span class="console-function">',AI.utils.escapeHTML(n),'()</span>');}function appendObjectFormatted(obj,tbl){var r=/\[object(.*?)\]/,m=r.exec(obj);tbl.push('<span class="console-object">',m?m[1]:obj,'</span>');if(typeof obj.length==='number'){tbl.push(' ['+obj.length+']');}}function appendSelector(obj,tbl){tbl.push('<span class="console-selectorTag">',AI.utils.escapeHTML(obj.nodeName.toLowerCase()),'</span>');if(obj.id){tbl.push('<span class="console-selectorId">#',AI.utils.escapeHTML(obj.id),'</span>');}if(obj.className){tbl.push('<span class="console-selectorClass">.',AI.utils.escapeHTML(obj.className),'</span>');}}function appendObject(obj,tbl){if(obj===undefined||typeof obj==='undefined'){appendNull("undefined",tbl);}else if(obj===null){appendNull("null",tbl);}else if(typeof obj=="string"){appendString(obj,tbl);}else if(typeof obj=="boolean"){appendBoolean(obj,tbl);}else if(typeof obj=="number"){appendNumber(obj,tbl);}else if(typeof obj=="function"){appendFunction(obj,tbl);}else if(obj.nodeType==document.ELEMENT_NODE){appendSelector(obj,tbl);}else if(typeof obj=="object"){appendObjectFormatted(obj,tbl);}else{appendText(obj,tbl);}}function appendNode(node,tbl){var i,attr,child,val;if(node.nodeType==document.ELEMENT_NODE){tbl.push('<div class="console-element">','&lt;<span class="console-nodeTag">',node.nodeName.toLowerCase(),'</span>');for(i=0;i<node.attributes.length;i++){attr=node.attributes[i];if(!attr.specified){continue;}tbl.push('&nbsp;<span class="console-nodeName">',attr.nodeName.toLowerCase(),'</span>=&quot;<span class="console-nodeValue">',AI.utils.escapeHTML(attr.nodeValue),'</span>&quot;');}if(node.firstChild){tbl.push('&gt;</div><div class="console-nodeChildren">');for(child=node.firstChild;child;child=child.nextSibling){appendNode(child,tbl);}tbl.push('</div><div class="console-element">&lt;/<span class="console-nodeTag">',node.nodeName.toLowerCase(),'&gt;</span></div>');}else{tbl.push('/&gt;</div>');}}else if(node.nodeType==document.TEXT_NODE){val=node.nodeValue.trim();if(!(val===''||val=='\n'||val=='\t'||val=='\r'||val=='\r\n'||val=='\n\r')){tbl.push('<div class="console-nodeText">',AI.utils.escapeHTML(node.nodeValue),'</div>');}}}function __setActif__(A){return setActif(A);}function __toggle__(force){DOM[ force?'show':'toggle'](container);}function __show__(){DOM.show(container);}function __hide__(){DOM.hide(container);}function __info__(msg,force){message('info',msg,force);}function __warning__(msg,force){message('warning',msg,force);}function __error__(msg,force){message('error',msg,force);}function __html__(html){messageHTML(html);}function __assert__(truth,msg){if(!truth){message('error',msg);}}function __explore__(obj,own,restreint){var html=[],pairs=[],name,value,shortName,i,reg;function checkOwn(v){return true;}function checkRestreint(v){return true;}function checkFn(v){return checkOwn(v)&&checkRestreint(v);}if(own){checkOwn=function(v){return obj.hasOwnProperty(v);};}if(restreint){reg=typeof restreint=='string'?new RegExp(restreint):restreint;checkRestreint=function(v){try{return reg.test(v);}catch(e){__error__(e,true);}return false;};}for(name in obj){if(checkFn(name)){pairs.push([name,obj[name]]);}}pairs.sort(function(a,b){return a[0]<b[0]?-1:1;});html.push('<table>');for(i=0;i<pairs.length;i++){name=pairs[i][0];value=pairs[i][1];shortName=name.substr(0,20);if(shortName!=name){shortName=shortName+'...';}html.push('<tr><td class="console-propertyNameCell" title="',AI.utils.escapeHTML(name),'"><span class="console-propertyName">',AI.utils.escapeHTML(shortName),'</span></td><td>');appendObject(value,html);html.push('</span></td></tr>');}html.push('</table>');messageHTML(html.join(''));}function __exploreNode__(node){var html=[];appendSelector(node,html);appendNode(node,html);messageHTML(html.join(''));}return{"setActif":__setActif__,"toggle":__toggle__,"show":__show__,"hide":__hide__,"info":__info__,"warning":__warning__,"error":__error__,"html":__html__,"assert":__assert__,"explore":__explore__,"exploreNode":__exploreNode__};}();AI._throwError=function(M){AI.console.error(M,true);throw new Error(M);};
var EVT={msg_unload:__('DECHARGEMENT EN COURS'),touches:{esc:27,enter:13,tab:9,space:32,up:38,down:40,left:37,right:39,shift:16,ctrl:17,alt:18,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,del:46,backspace:8,insert:45,home:36,end:35,pageup:33,pagedown:34,numlock:144,numpad_0:96,numpad_1:97,numpad_2:98,numpad_3:99,numpad_4:100,numpad_5:101,numpad_6:102,numpad_7:103,numpad_8:104,numpad_9:105,numpad_divide:111,numpad_multiply:106,numpad_minus:109,numpad_plus:107,_0:48,_1:49,_2:50,_3:51,_4:52,_5:53,_6:54,_7:55,_8:56,_9:57},X:0,Y:0,listeners:[],DOM0Handlers:[],DOM0Listeners:[],_keep_loading:true,$L:[],$U:[],fix:function(e){return e||$W.event;},add:function(source,type,handler,scope,arbitraryObj,forceDom0){if(AI.utils.isValidArray(type)){var returnValue=true;for(var j=0,m=type.length;j<m;j++){returnValue=EVT.add(source,type[j],handler,scope,arbitraryObj,forceDom0)&&returnValue;}return returnValue;}var element=$(source);if(!element){return false;}scope=scope?scope:element;var wrapped=function(z){return handler.call(scope,EVT.fix(z),arbitraryObj);},listenerIndex=EVT.listeners.length,isDOM0=false;if(forceDom0||EVT._useDOM0(element,type)){var DOM0Index=EVT._getDOM0Index(element,type);if(DOM0Index==-1){DOM0Index=EVT.DOM0Handlers.length;EVT.DOM0Handlers[DOM0Index]=[element,type,element['on'+type]];EVT.DOM0Listeners[DOM0Index]=[];element['on'+type]=function(evt){return EVT._fireDOM0.call(element,EVT.fix(evt),DOM0Index);};}if(forceDom0=='prepend'&&EVT.DOM0Listeners[DOM0Index].length>0){EVT.DOM0Listeners[DOM0Index].unshift(listenerIndex);}else{EVT.DOM0Listeners[DOM0Index].push(listenerIndex);}isDOM0=true;}else{EVT.bind(element,type,wrapped);}EVT.listeners[listenerIndex]=[element,type,handler,wrapped,scope,arbitraryObj,isDOM0];return true;},remove:function(source,type,handler,scope){var returnValue=true;if(AI.utils.isValidArray(type)){for(var j=0,m=type.length;j<m;j++){returnValue=EVT.remove(source,type[j],handler)&&returnValue;}return returnValue;}var element=$(source);if(!element){return false;}scope=scope?scope:element;var listener=null,listenerIndex=EVT._getListenerIndex(element,type,handler,scope);if(listenerIndex>=0){listener=EVT.listeners[listenerIndex];}if(!listener){return false;}if(listener[6]===true){returnValue=EVT.removeDOM0(listenerIndex,element,type);}else{try{EVT.unbind(element,type,listener[3]);}catch(x){try{throw('Error removing event:"'+type+'"\nExc:'+x+'\nElt:'+element+(element.tagName?element.tagName:'')+'\nHandler:'+listener[3]);}catch(x){returnValue=false;}}}delete EVT.listeners[listenerIndex][3];delete EVT.listeners[listenerIndex][2];delete EVT.listeners[listenerIndex];return returnValue;},stop:function(e){EVT.stopPropagation(e);EVT.preventDefault(e);return false;},_getListenerIndex:function(element,type,handler,scope){scope=scope?scope:element;for(var i=0;i<EVT.listeners.length;i++){var L=EVT.listeners[i];if(L&&L[0]==element&&L[1]==type&&L[2]==handler&&L[4]==scope){return i;}}return-1;},getRelatedTarget:function(e){var t=e.relatedTarget;if(!t){if(e.type=="mouseout"){t=e.toElement;}else if(e.type=="mouseover"){t=e.fromElement;}}return t;},getX:function(e){var x=e.pageX;if(!x&&0!==x){x=e.clientX||0;x+=EVT.getScroll('Left');}EVT.X=x;return x;},getY:function(e){var y=e.pageY;if(!y&&0!==y){y=e.clientY||0;y+=EVT.getScroll('Top');}EVT.Y=y;return y;},_useDOM0:function(E,T){return((!E.addEventListener&&!E.attachEvent)||(T=="click"&&navigator.userAgent.match(/safari/gi)));},_getDOM0Index:function(E,T){for(var i=0,m=EVT._DOM0.length;i<m;i++){var L=EVT._DOM0[i];if(L&&L[0]==E&&L[1]==T){return i;}}return-1;},_fireDOM0:function(evt,DOM0Index){var returnValue=true,DOMListeners=EVT.DOM0Listeners[DOM0Index],previousListener=EVT.DOM0Handlers[DOM0Index][2],returnListener;for(var i=0,m=DOMListeners.length;i<m;i++){var indexListener=DOMListeners[i];if(indexListener){var listener=EVT.listeners[indexListener];if(listener){returnListener=listener[3].call(listener[4],evt,listener[5]);returnListener=typeof returnListener=='boolean'?returnListener:true;returnValue=returnValue&&returnListener;}}}if(typeof previousListener=='function'){returnListener=previousListener.call(this,evt);returnListener=typeof returnListener=='boolean'?returnListener:true;returnValue=returnValue&&returnListener;}return returnValue;},removeDOM0:function(index,Element,type){var DOM0Index=EVT._getDOM0Index(Element,type);if(DOM0Index!==-1){for(var j=0,m=EVT.DOM0Listeners[DOM0Index].length;j<m;j++){if(EVT.DOM0Listeners[DOM0Index]==index){delete EVT.DOM0Listeners[DOM0Index][j];break;}}for(j=0,m=EVT.DOM0Listeners[DOM0Index].length;j<m;j++){if(EVT.DOM0Listeners[DOM0Index][j]){return true;}}Element['on'+type]=null;delete EVT.DOM0Handlers[DOM0Index];delete EVT.DOM0Listeners[DOM0Index];return true;}return false;},getScroll:AI.utils.returnZero,getCharCode:function(e){return e.charCode||(e.type=="keypress")?e.keyCode:0;},_onLoad:function(){var L=EVT.$L,i,m;for(i=0,m=L.length;i<m;i++){try{L[i]();}catch(x){var t='Erreur lors du chargement'+CR+x;try{alertError(t);}catch(y){$W.alert(t);}}}if($W.$$app&&typeof $W.$$app!='undefined'){$W.$$app.dispatch('fully_loaded');}},_onUnLoad:function(){EVT.remove($D,'DOMContentLoaded',EVT.DOMLoaded);EVT.remove($W,'unload',EVT._onUnLoad);var U=EVT.$U;for(var i=0,m=U.length;i<m;i++){try{U[i]();}catch(x){}}if(EVT.listeners&&EVT.listeners.length>0){for(var j=0,n=EVT.listeners.length;j<n;j++){var L=EVT.listeners[j];if(L){EVT.remove(L[0],L[1],L[2],L[4]);}}}},loader:function(f,o){if(EVT.DOMLoaded.OK){f();}else{EVT.$L.push(f);}},unloader:function(F){EVT.$U.push(F);}};if($D.addEventListener){EVT.bind=function(E,T,F){E.addEventListener(T,F,false);};EVT.unbind=function(E,T,F){E.removeEventListener(T,F,false);};EVT.preventDefault=function(e){e.preventDefault();};EVT.stopPropagation=function(e){e.stopPropagation();};EVT.getWheelDelta=function(e){return-(e.detail||0);};EVT.addWheel=function(E,F,S,B,D){return EVT.add(E,"DOMMouseScroll",F,S,B,D);};EVT.removeWheel=function(E,F){return EVT.remove(E,"DOMMouseScroll",F);};EVT.buttons={left:0,right:2,middle:1};EVT.getTarget=function(e){return(e.target.nodeType==$D.TEXT_NODE)?e.target.parentNode:e.target;};}else if($D.attachEvent){EVT.bind=function(E,T,F){E.attachEvent('on'+T,F);};EVT.unbind=function(E,T,F){E.detachEvent('on'+T,F);};EVT.preventDefault=function(e){e=EVT.fix(e);e.returnValue=false;};EVT.stopPropagation=function(e){e=EVT.fix(e);e.cancelBubble=true;};EVT.getWheelDelta=function(e){return e.wheelDelta?e.wheelDelta/40:0;};EVT.addWheel=function(E,F,S,B,D){EVT.add(E,'mousewheel',F,S,B,D);};EVT.removeWheel=function(E,F){return EVT.remove(E,"mousewheel",F);};EVT.buttons={left:1,right:2,middle:4};EVT.getTarget=function(e){return e&&e.srcElement?e.srcElement:null;};EVT.getScroll=function(S){var d=IS.strict?$D.documentElement:$D.body;if(typeof d['scroll'+S]!='undefined'){return d['scroll'+S];}return 0;};}EVT.add($W,'unload',EVT._onUnLoad);EVT.stopEvent=EVT.stop;EVT.addEvent=EVT.add;EVT.removeEvent=EVT.remove;EVT.addEventMouseWheel=EVT.addWheel;EVT.getPageX=EVT.getX;EVT.getPageY=EVT.getY;
EVT.DOMLoaded = function()
{
  if ( EVT.DOMLoaded.OK ) { return true; }
  EVT.DOMLoaded.OK = true;
  if ( EVT.DOMLoaded.toid ) { $W.clearInterval(EVT.DOMLoaded.toid); }
//  var X = EVT.DOMLoaded;
//  if ( X.OK ) { return true; }
//  X.OK = true;
//  if ( X.toid ) $W.clearInterval(X.toid);
  EVT._onLoad();
  return true;
};

//Mozilla Opera9
if ( $D.addEventListener ) { EVT.add($D, 'DOMContentLoaded', EVT.DOMLoaded); }

//IE
/*@cc_on
$D.write('<script id="ieDOMload" defer src="javascript:void(0)"><\/script>');
var S = $('ieDOMload');
S.onreadystatechange = function(){if(this.readyState=='complete'){EVT.DOMLoaded();}};
@*/
/**
 MAJ plus compacte, censée marcher jusqu'à IE7b3
$D.getElementsByTagName('head')[0].appendChild($E('script',{defer:'defer',src:'//0',onreadystatechange:function(){if(this.readyState=='complete'){EVT.DOMLoaded();}}}));
*/


//Safari
//if ( /WebKit/i.test(navigator.userAgent) )
if ( /khtml|webkit/i.test(navigator.userAgent) )
{
  EVT.DOMLoaded.toid = $W.setInterval(function(){if(/loaded|complete/.test($D.readyState)){EVT.DOMLoaded();}},10);
}

//other browsers
$W.onload = EVT.DOMLoaded;
AI.AJAX=AI.getSimilarParentObject('AJAX')||function(){var requetes=[],totalRequetes=0,totalRequetesActives=0;function createRequete(){return new XMLHttpRequest();}if(typeof XMLHttpRequest=='undefined'){createRequete=function(){var req=null;try{req=new ActiveXObject("Microsoft.XMLHTTP");}catch(ex){try{req=new ActiveXObject("Msxml2.XMLHTTP");}catch(ex){}}return req;};}function readConf(params,key,defaut){return typeof params[key]=='undefined'?defaut:params[key];}function __send__(params){var url=readConf(params,'url',''),methode=readConf(params,'methode','')=='POST'?'POST':'GET',charset=readConf(params,'charset','UTF-8'),datas=readConf(params,'datas',{}),unique=readConf(params,'unique',false),scope=readConf(params,'scope',this),arbitrary=readConf(params,'arbitrary',null),_onload=readConf(params,'onload',function(){}),_onerror=readConf(params,'onerror',function(){}),_onprogress=readConf(params,'onprogress',function(){}),req=createRequete(),content=null,queryString='',K;if(''===url){return alertError("L'url de l'appel AJAX est requise");}if(!req){return alertError("Impossible de créer l'objet XMLHttpRequest. Pas de gestion AJAX");}totalRequetes++;requetes.push(req);if(unique&&'GET'==methode){datas.unique_AI_XHR=(new Date().getTime())+''+totalRequetes;}for(K in datas){if(queryString!==''){queryString+='&';}queryString+=encodeURIComponent(K)+'='+encodeURIComponent(datas[K]);}if('GET'==methode&&queryString!==''){url+=((url.indexOf('?')>-1)?'&':'?')+queryString;}req.open(methode,url,true);totalRequetesActives++;if('POST'==methode){req.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset='+charset);content=queryString;}req.onreadystatechange=function(){var status=0;if(req){_onprogress.call(scope,req,arbitrary);if(req.readyState==4){try{status=req.status;}catch(e){}if(status==200){_onload.call(scope,req,arbitrary);}else{_onerror.call(scope,req,arbitrary);}req=__dispose__(req);}}};req.send(content);return true;}function __dispose__(req){if(req){if(typeof req.abort=='function'){try{req.abort();}catch(e){}}req.onreadystatechange=function(){};requetes.remove(req);}totalRequetesActives--;req=null;return null;}function __isActive__(){return totalRequetesActives!==0;}function __parse__(req){var r=null,t=typeof req=='string'?req:req.responseText||'';try{eval("r="+t);}catch(e){}return r;}function __parseSafe__(req){if(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(req.responseText)){return __parse__(req);}return null;}EVT.unloader(function(){for(var i=requetes.length;i--;){requetes[i]=__dispose__(requetes[i]);}delete requetes;});return{"send":__send__,"dispose":__dispose__,"isActive":__isActive__,"parse":__parse__,"parseSafe":__parseSafe__,"DEPRECATED":function(methode,url,vals,handler_ok,handler_erreur,handler_run,oScope,objAccompagne){DEPRECATED('AJAX_'+methode.toLowerCase()+'('+url+')');var datas={"methode":methode,"url":url};if(vals){datas.datas=vals;}if(handler_ok){datas.onload=handler_ok;}if(handler_erreur){datas.onerror=handler_erreur;}if(handler_run){datas.onprogress=handler_run;}if(oScope){datas.scope=oScope;}if(objAccompagne){datas.arbitrary=objAccompagne;}return __send__(datas);}};}();var AJAX={"parse":AI.AJAX.parse,"dispose":AI.AJAX.dispose};function AJAX_get(url,handler_ok,handler_erreur,handler_run,oScope,objAccompagne){return AI.AJAX.DEPRECATED('GET',url,null,handler_ok,handler_erreur,handler_run,oScope,objAccompagne);}function AJAX_post(url,datas,handler_ok,handler_erreur,handler_run,oScope,objAccompagne){return AI.AJAX.DEPRECATED('POST',url,datas,handler_ok,handler_erreur,handler_run,oScope,objAccompagne);}
function Animation(opt){var me=this,subjects=[],target=0,state=0,intervalId=null,step=opt&&opt.step?opt.step:10,duration=opt&&opt.duration?opt.duration:400,transition=opt&&opt.transition?opt.transition:Animation.tx.easeInOut,onComplete=opt&&opt.onComplete?opt.onComplete:function(){},onStart=opt&&opt.onStart?opt.onStart:function(){},onStep=opt&&opt.onStep?opt.onStep:function(){},scope=opt&&opt.scope?opt.scope:this,linked=opt&&opt.linked?opt.linked:null,starting=false,interval=duration/step;function onTimerEvent(){var movement=(interval/duration)*(state<target?1:-1);if(starting===true){onStart.call(this,state,linked);starting=false;}if(Math.abs(movement)>=Math.abs(state-target)){state=target;}else{state+=movement;}propagate();onStep.call(scope,state,linked);if(target==state){window.clearInterval(intervalId);intervalId=null;onComplete.call(scope,target,linked);}}function propagate(){var value=transition(state);for(var i=0;i<subjects.length;i++){if(subjects[i].setState){subjects[i].setState(value);}else{subjects[i](value);}}}this.seekTo=function(to){this.seekFromTo(state,to);};this.seekFromTo=function(from,to){starting=true;target=Math.max(0,Math.min(1,to));state=Math.max(0,Math.min(1,from));if(!intervalId){intervalId=$W.setInterval(onTimerEvent,interval);}};this.jumpTo=function(to){target=state=Math.max(0,Math.min(1,to));starting=true;onTimerEvent();};this.toggle=function(){this.seekTo(1-target);};this.addSubject=function(subject){subjects.push(subject);};this.removeSubject=function(subject){subjects.remove(subject);};this.clearSubjects=function(){subjects=[];};this.play=function(){this.seekFromTo(0,1);};this.reverse=function(){this.seekFromTo(1,0);};this.setInterval=function(I){interval=I;};this.setDuration=function(D){duration=D;};this.setTransition=function(T){transition=T;};this.setOnComplete=function(O){onComplete=O;};this.setScope=function(S){scope=S;};return this;}Animation.makeEaseIn=function(a){return function(state){return Math.pow(state,a*2);};};Animation.makeEaseOut=function(a){return function(state){return 1-Math.pow(1-state,a*2);};};Animation.tx={easeInOut:function(pos){return((-Math.cos(pos*Math.PI)/2)+0.5);},linear:function(x){return x;},easeIn:Animation.makeEaseIn(1.5),easeOut:Animation.makeEaseOut(1.5)};Animation.numericalTransition=function(E,P,F,T,U){var els=forceArray(E),property=P=='opacity'&&$W.ActiveXObject?'filter':P,from=parseFloat(F),to=parseFloat(T),units=U||'px';function getStyle(state){state=from+((to-from)*state);if(property=='filter'){return "alpha(opacity="+Math.round(state*100)+")";}if(property=='opacity'){return state;}return Math.round(state)+units;}this.setState=function(state){var style=getStyle(state);for(var i=0;i<els.length;i++){els[i].style[property]=style;}};return this;};Animation.widgetNumericalTransition=function(W,prop,T){var els=forceArray(W),from=parseFloat(W['get'+prop]()),to=parseFloat(T);function getStyle(state){state=Math.round(from+((to-from)*state));return Math.round(state);}this.setState=function(state){var style=getStyle(state);for(var i=0;i<els.length;i++){els[i]['set'+prop](style);}};return this;};Animation.colorTransition=function(E,P,F,T){var els=forceArray(E),property=P=='opacity'&&$W.ActiveXObject?'filter':P,from,to;function expandColor(color){var hexColor,red,green,blue;hexColor=Animation.parseColor(color);if(hexColor){red=parseInt(hexColor.slice(1,3),16);green=parseInt(hexColor.slice(3,5),16);blue=parseInt(hexColor.slice(5,7),16);return [red,green,blue];}return [255,255,255];}from=expandColor(F);to=expandColor(T);function getStyle(color,state){return Animation.toColorPart(Math.round(from[color]+((to[color]-from[color])*state)));}this.setState=function(state){var color='#'+getStyle(0,state)+getStyle(1,state)+getStyle(2,state);for(var i=0;i<els.length;i++){els[i].style[property]=color;}};return this;};Animation.toColorPart=function(str){var digits=str.toString(16);if(str<16){return '0'+digits;}return digits;};Animation.parseColor=function(string){var color='#',match=Animation.rgbRe.exec(string),i;if(match){for(i=1;i<=3;i++){var part=Math.max(0,Math.min(255,intval(match[i])));color+=Animation.toColorPart(part);}return color;}match=Animation.hexRe.exec(string);if(match){if(match[1].length==3){for(i=0;i<3;i++){color+=match[1].charAt(i)+match[1].charAt(i);}return color;}return '#'+match[1];}return false;};Animation.rgbRe=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;Animation.hexRe=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;