	/*	Librairie JS JARIA
		Copyright (c) 2008 Jean-Pierre ARIA (jaria.free.fr)
		sources optimisées */
	var oText=new Text();var oNav=new Nav();var oEl=new El();var oBox=new Box();var oCal=new Cal();var oColor=new Color();var oSel=new Sel();var oAjax=new Ajax();var _img="images/jaria/";
	window.onscroll=oNav.scroll;window.onload=oNav.load;window.onresize=oNav.size;document.onmousemove=oNav.mouse.move;document.onkeydown=oNav.keydown;document.onclick=oNav.selhide;
	function Text(){
		this.test=function(){if(arguments.length==0){return false;}if(typeof(arguments[0])!="string"||arguments[0]==""){return false;}return true;};
		this.select=function(){if(arguments.length==0){return false;}var state=arguments[0];if(typeof(state)!="boolean"){return false;}var el=(arguments.length==2)?arguments[1]:undefined;if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{el=document;}}if(typeof(el.onselectstart)!="undefined"){el.onselectstart=function(){return state;}}else{el.onmousedown=function(){return state;}}};
		this.upper=function(t){return(oText.test(t))?t.toString().toUpperCase():"";};
		this.lower=function(t){return(oText.test(t))?t.toString().toLowerCase():"";};
		this.firstUp=function(t){return(oText.test(t))?t.toString().substr(0,1).toUpperCase()+t.toString().substr(1,t.length).toLowerCase():"";};
		this.trim=function(t){return(oText.test(t))?t.toString().replace(/(^\s*)|(\s*$)/g,''):"";};
		this.digit=function(){var t=(oText.test(arguments[0])||!isNaN(arguments[0]))?arguments[0].toString():"";var nb=(!isNaN(arguments[1]))?arguments[1]:0;var zero="";for(var i=0;i<(parseInt(nb)-t.length);i++){zero+="0";}return(t.length<nb)?zero+t:t;};
		this.round=function(){if(arguments.length<2){return"0";}var num=arguments[0];var p=arguments[1];if(isNaN(num)||isNaN(p)){return"0";}var m=Math.pow(10,parseFloat(p));num=parseFloat(num)*m;num=(Math.round(parseFloat(num))==Math.ceil(parseFloat(num)))?Math.ceil(parseFloat(num)):Math.ceil(parseFloat(num))-1;num=parseFloat(num)/m;if(isNaN(num)){return"0";}return(num).toString();};
		this.daymonth=function(number){return(number.toString().length==1)?"0"+number.toString():number.toString();};		
		this.isemail=function(t){var e=/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-z0-9-]+([\.][a-z]+)+$/;return(oText.test(t)&&t.search(e)!=-1)?true:false;};
		this.isphone=function(t,s){switch(s){case null:var e=/^0[1-68]([-. ]?[0-9]{2}){4}$/;break;case".":var e=/^0[1-68](\.[0-9]{2}){4}$/;break;case"-":var e=/^0[1-68]([-][0-9]{2}){4}$/;break;case" ":var e=/^0[1-68]([ ][0-9]{2}){4}$/;break;default:var e=/^0[1-68][0-9]{8}$/;}return(t.search(e)!=-1)?true:false;};
		this.isnumss=function(t){var e=/^[12][ \.\-]?[0-9]{2}[ \.\-]?(0[1-9]|[1][0-2])[ \.\-]?([0-9]{2}|2A|2B)[ \.\-]?[0-9]{3}[ \.\-]?[0-9]{3}[ \.\-]?[0-9]{2}$/;return(oText.test(t)&&t.search(e)!=-1)?true:false;};
		this.nocarspec=function(t){if(!oText.test(t)){return"";}if(oText.trim(t)!=""){var reg=/^[@.,éèàîïùç'()_ a-zA-Z0-9-]+$/;if(t.search(reg)==0){return true;}else{return false;}}};
		this.toPx=function(){var value=parseFloat(arguments[0]);if(isNaN(value)||value<=0){return"0px";}return(parseInt(value)).toString()+"px";}
		this.repeat=function(t,n){return new Array(n+1).join(t);};
		this.encode=function(t){if(!oText.test(t)){return"";}t=t.toString();t=t.replace(/"/g,"&quot;");t=t.replace(/%/g,"&#37;");t=t.replace(/&&/g,"&amp;&amp;");t=t.replace(/ & /g," &amp; ");t=t.replace(/£/g,"&pound;");t=t.replace(/©/g,"copy;");t=t.replace(/®/g,"&reg;");t=t.replace(/×/g,"&times;");t=t.replace(/Â/g,"&Acirc;");t=t.replace(/Ã/g,"&Atilde;");t=t.replace(/Ä/g,"&Auml;");t=t.replace(/È/g,"&Egrave;");t=t.replace(/É/g,"&Eacute;");t=t.replace(/Ê/g,"&Ecric;");t=t.replace(/Ë/g,"&Euml;");t=t.replace(/Î/g,"&Icirc;");t=t.replace(/Ï/g,"&Iuml;");t=t.replace(/Ô/g,"&Ocirc;");t=t.replace(/Õ/g,"&Otilde;");t=t.replace(/Û/g,"&Ucirc;");t=t.replace(/Ü/g,"&Uuml;");t=t.replace(/à/g,"&agrave;");t=t.replace(/â/g,"&acirc;");t=t.replace(/ã/g,"&atilde;");t=t.replace(/ä/g,"&auml;");t=t.replace(/æ/g,"&aelig;");t=t.replace(/ç/g,"&ccedil;");t=t.replace(/é/g,"&eacute;");t=t.replace(/è/g,"&egrave;");t=t.replace(/ê/g,"&ecirc;");t=t.replace(/ë/g,"&euml;");t=t.replace(/€/g,"&euro;");t=t.replace(/î/g,"&icirc;");t=t.replace(/ï/g,"&iuml;");t=t.replace(/ô/g,"&ocirc;");t=t.replace(/õ/g,"&otilde;");t=t.replace(/ù/g,"&ugrave;");t=t.replace(/û/g,"&ucirc;");t=t.replace(/ü/g,"&uuml;");t=t.replace(/ÿ/g,"&yuml;");t=t.replace(/& /g,"&amp; ");return t;};
		this.decode=function(h){if(!oText.test(h)){return"";}h=h.replace(/&quot;/g,"\"");h=h.replace(/&#37;/g,"%");h=h.replace(/&amp;/g,"&");h=h.replace(/&#146;/g,"'");h=h.replace(/&pound;/g,"£");h=h.replace(/copy;/g,"©");h=h.replace(/&reg;/g,"®");h=h.replace(/&times;/g,"×");h=h.replace(/&Acirc;/g,"Â");h=h.replace(/&Atilde;/g,"Ã");h=h.replace(/&Auml;/g,"Ä");h=h.replace(/&Egrave;/g,"È");h=h.replace(/&Eacute;/g,"É");h=h.replace(/&Ecric;/g,"Ê");h=h.replace(/&Euml;/g,"Ë");h=h.replace(/&Icirc;/g,"Î");h=h.replace(/&Iuml;/g,"Ï");h=h.replace(/&Ocirc;/g,"Ô");h=h.replace(/&Otilde;/g,"Õ");h=h.replace(/&Ucirc;/g,"Û");h=h.replace(/&Uuml;/g,"Ü");h=h.replace(/&agrave;/g,"à");h=h.replace(/&acirc;/g,"â");h=h.replace(/&atilde;/g,"ã");h=h.replace(/&auml;/g,"ä");h=h.replace(/&aelig;/g,"æ");h=h.replace(/&ccedil;/g,"ç");h=h.replace(/&eacute;/g,"é");h=h.replace(/&egrave;/g,"è");h=h.replace(/&ecirc;/g,"ê");h=h.replace(/&euml;/g,"ë");h=h.replace(/&euro;/g,"€");h=h.replace(/&icirc;/g,"î");h=h.replace(/&iuml;/g,"ï");h=h.replace(/&ocirc;/g,"ô");h=h.replace(/&otilde;/g,"õ");h=h.replace(/&ugrave;/g,"ù");h=h.replace(/&ucirc;/g,"û");h=h.replace(/&uuml;/g,"ü");h=h.replace(/&yuml;/g,"ÿ");return h;};
		this.htmlencode=function(h){if(!oText.test(h)){return"";}h=oText.encode(h.toString());h=h.replace(/</g,"&lt;");h=h.replace(/>/g,"&gt;");return h;};
		this.htmldecode=function(h){if(!oText.test(h)){return"";}h=h.replace(/&lt;/g,"<");h=h.replace(/&gt;/g,">");h=oText.decode(h.toString());return h;};
		this.xmldecode=function(x){if(!oText.test(x)){return"";}x=x.replace(/&#131;/g,"ƒ");x=x.replace(/&#132;/g,"„");x=x.replace(/&#133;/g,"…");x=x.replace(/&#134;/g,"†");x=x.replace(/&#135;/g,"‡");x=x.replace(/&#136;/g,"ˆ");x=x.replace(/&#137;/g,"‰");x=x.replace(/&#138;/g,"Š");x=x.replace(/&#139;/g,"‹");x=x.replace(/&#140;/g,"Œ");x=x.replace(/&#149;/g,"•");x=x.replace(/&#152;/g,"˜");x=x.replace(/&#153;/g,"™");x=x.replace(/&#154;/g,"š");x=x.replace(/&#155;/g,"›");x=x.replace(/&#156;/g,"œ");x=x.replace(/&#159;/g,"Ÿ");x=x.replace(/&#162;/g,"¢");x=x.replace(/&#163;/g,"£");x=x.replace(/&#164;/g,"¤");x=x.replace(/&#165;/g,"¥");x=x.replace(/&#166;/g,"¦");x=x.replace(/&#167;/g,"§");x=x.replace(/&#168;/g,"¨");x=x.replace(/&#169;/g,"©");x=x.replace(/&#170;/g,"ª");x=x.replace(/&#171;/g,"«");x=x.replace(/&#172;/g,"¬");x=x.replace(/&#174;/g,"®");x=x.replace(/&#175;/g,"¯");x=x.replace(/&#176;/g,"°");x=x.replace(/&#177;/g,"±");x=x.replace(/&#178;/g,"²");x=x.replace(/&#181;/g,"µ");x=x.replace(/&#182;/g,"¶");x=x.replace(/&#183;/g,"·");x=x.replace(/&#184;/g,"¸");x=x.replace(/&#187;/g,"»");x=x.replace(/&#188;/g,"¼");x=x.replace(/&#189;/g,"½");x=x.replace(/&#190;/g,"¾");x=x.replace(/&#191;/g,"¿");x=x.replace(/&#192;/g,"À");x=x.replace(/&#193;/g,"Á");x=x.replace(/&#194;/g,"Â");x=x.replace(/&#195;/g,"Ã");x=x.replace(/&#196;/g,"Ä");x=x.replace(/&#197;/g,"Å");x=x.replace(/&#198;/g,"Æ");x=x.replace(/&#199;/g,"Ç");x=x.replace(/&#200;/g,"È");x=x.replace(/&#201;/g,"É");x=x.replace(/&#202;/g,"Ê");x=x.replace(/&#203;/g,"Ë");x=x.replace(/&#204;/g,"Ì");x=x.replace(/&#205;/g,"Í");x=x.replace(/&#206;/g,"Î");x=x.replace(/&#207;/g,"Ï");x=x.replace(/&#208;/g,"Ð");x=x.replace(/&#209;/g,"Ñ");x=x.replace(/&#210;/g,"Ò");x=x.replace(/&#211;/g,"Ó");x=x.replace(/&#212;/g,"Ô");x=x.replace(/&#213;/g,"Õ");x=x.replace(/&#214;/g,"Ö");x=x.replace(/&#215;/g,"×");x=x.replace(/&#216;/g,"Ø");x=x.replace(/&#217;/g,"Ù");x=x.replace(/&#218;/g,"Ú");x=x.replace(/&#219;/g,"Û");x=x.replace(/&#220;/g,"Ü");x=x.replace(/&#221;/g,"Ý");x=x.replace(/&#222;/g,"Þ");x=x.replace(/&#223;/g,"ß");x=x.replace(/&#224;/g,"à");x=x.replace(/&#225;/g,"á");x=x.replace(/&#226;/g,"â");x=x.replace(/&#227;/g,"ã");x=x.replace(/&#228;/g,"ä");x=x.replace(/&#229;/g,"å");x=x.replace(/&#230;/g,"æ");x=x.replace(/&#231;/g,"ç");x=x.replace(/&#232;/g,"è");x=x.replace(/&#233;/g,"é");x=x.replace(/&#234;/g,"ê");x=x.replace(/&#235;/g,"ë");x=x.replace(/&#236;/g,"ì");x=x.replace(/&#237;/g,"í");x=x.replace(/&#238;/g,"î");x=x.replace(/&#239;/g,"ï");x=x.replace(/&#240;/g,"ð");x=x.replace(/&#241;/g,"ñ");x=x.replace(/&#242;/g,"ò");x=x.replace(/&#243;/g,"ó");x=x.replace(/&#244;/g,"ô");x=x.replace(/&#245;/g,"õ");x=x.replace(/&#246;/g,"ö");x=x.replace(/&#247;/g,"÷");x=x.replace(/&#248;/g,"ø");x=x.replace(/&#249;/g,"ù");x=x.replace(/&#250;/g,"ú");x=x.replace(/&#251;/g,"û");x=x.replace(/&#252;/g,"ü");x=x.replace(/&#253;/g,"ý");x=x.replace(/&#254;/g,"þ");x=x.replace(/&#255;/g,"ÿ");return x;};				
		this.conjugue=function(t,n){if(n<=1){return t;}var c="s";t=oText.trim(t);if(t==""){return"";}l=oText.lower(t);if(l.slice(-2)=="ou"&&(l=="genou"||l=="caillou"||l=="bijou"||l=="chou"||l=="pou"||l=="hibou"||l=="joujou")){c="x";}if(l.slice(-3)=="ail"&&(l=="bail"||l=="corail"||l=="soupirail"||l=="travail"||l=="vantail"||l=="vitrail")){t=t.substr(0,t.length-3)+"aux";c="";}if(l.slice(-2)=="al"){if(l!="bal"&&l!="cal"&&l!="carnaval"&&l!="cérémonial"&&l!="chacal"&&l!="festival"&&l!="récital"&&l!="régal"){t=t.substr(0,t.length-2)+"aux";c="";}}if(l.slice(-2)=="eu"&&l!="bleu"&&l!="pneu"&&l!="émeu"){c="x";}if(l.slice(-2)=="au"&&l!="landau"&&l!="sarrau"){c="x";}return t+c;};
	}
	function Nav(){
		this.screenX=0;this.screenY=0;this.scrollX=0;this.scrollY=0;this.marginLeft=0;this.marginRight=0;this.marginTop=0;this.marginBottom=0;this.msie=false;this.firefox=false;this.opera=false;this.safari=false;this.chrome=false;this.konqueror=false;this.gecko=false;this.robot=false;this.other=false;this.a=oText.lower(navigator.userAgent);this.host=oText.lower(window.location.host);this.version=(this.a.match(/.+(?:firefox|version|pera|chrome|onqueror|msie)[\/: ]([\d.]+)/)||[])[1];this.body=null;this.timer=null;this.ready=false;this.readyfull=false;this.overrideButton=undefined;this.popup=new Popup();this.mouse=new Mouse();this.keyb=new Keyb();this.lock=new Lock();this.trace=new Trace();this.bar=new Bar();
		if(this.a.indexOf("chrome")!=-1){this.chrome=true;this.name="chrome";}else if(this.a.indexOf("safari")!=-1){this.safari=true;this.name="safari";}else if(this.a.indexOf("firefox")!=-1){this.firefox=true;this.name="firefox";}else if(this.a.indexOf("opera")!=-1){this.opera=true;this.name="opera";}else if(this.a.indexOf("konqueror")!=-1){this.konqueror=true;this.name="konqueror";}else if(this.a.indexOf("msie")!=-1){this.msie=true;this.name="msie";}else if(this.a.indexOf("gecko")!=-1){this.gecko=true;this.name="gecko";}else if(this.a.indexOf("@")!=-1||this.a.indexOf("www")!=-1||this.a.indexOf("http:")!=-1){this.robot=true;this.name="robot";}else{this.other=true;this.name="other";}
		this.language=(this.a.indexOf("msie")!=-1&&this.a.indexOf("mac")==-1&&this.a.indexOf("opera")==-1)?navigator.browserLanguage:navigator.language;
		this.param=function(pos){if(isNaN(pos)){return"";}var p=(location.search).toString();if(p==""||pos<0){return"";}p=p.split("&");if(p[pos]==null){return"";}p=new String(p[pos]);p=p.split("=");if(p[1]==null){return"";}return unescape((p[1]).toString());};
		this.loadimg=function(){if(arguments.length==1&&arguments[0].toString().split(",").length>1){var tab=arguments[0].toString().split(",");}else{var tab=arguments;}if(oNav.ready){var img=new Array();for(var i=0;i<tab.length;i++){img[i]=new Image();img[i].src=oText.trim(tab[i].toString());}oNav.init_timer(oNav.timer);oNav.timer=null;oNav.readyfull=true;return false;}oNav.readyfull=false;var args="";for(var i=0;i<arguments.length;i++){args+=(args=="")?"'"+arguments[i]+"'":", '"+arguments[i]+"'";}oNav.timer=window.setTimeout("oNav.loadimg("+args+")",100);};
		this.size=function(){if(typeof(window.innerHeight)=="number"){oNav.screenY=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){oNav.screenY=document.documentElement.clientHeight;}else if(oNav.body&&oNav.body.clientHeight){oNav.screenY=oNav.body.clientHeight;}if(typeof(window.innerWidth)=="number"){oNav.screenX=window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){oNav.screenX=document.documentElement.clientWidth;}else if(oNav.body&&oNav.body.clientWidth){oNav.screenX=oNav.body.clientWidth;}if(oNav.lock.exist){oNav.lock.el.style.width=oText.toPx(oNav.screenX);oNav.lock.el.style.height=oText.toPx(oNav.screenY);}if(oColor.exist){oEl.setinscreen(oColor.el);}if(oBox.exist){oEl.setinscreen(oBox.el);}if(oCal.exist){oEl.setinscreen(oCal.el);}};
		this.scroll=function(){if(oNav.msie||oNav.opera){oNav.scrollX=document.documentElement.scrollLeft;oNav.scrollY=document.documentElement.scrollTop;}else{oNav.scrollX=window.scrollX;oNav.scrollY=window.scrollY;}if(oBox.exist){var x=parseInt((oNav.screenX/2)-(oBox.el.offsetWidth/2)+oNav.scrollX+oBox.posX);var y=parseInt((oNav.screenY/2)-(oBox.el.offsetHeight/2)+oNav.scrollY+oBox.posY);oBox.el.style.left=oText.toPx(x);oBox.el.style.top=oText.toPx(y);oEl.setinscreen(oBox.el);}if(oEl.isobject(oNav.trace.el)){oNav.trace.pos();}if(oNav.lock.exist){oNav.lock.el.style.left=oText.toPx(oNav.scrollX);oNav.lock.el.style.top=oText.toPx(oNav.scrollY);}};this.hideallbox=function(){oBox.hide();oNav.lock.hide();oCal.hide();oColor.hide();oSel.hide();oEl.title.hide();};
		this.init_timer=function(timer){if(timer!=undefined&&timer!=null){try{window.clearInterval(timer);}catch(e){try{window.clearTimeout(timer);}catch(E){}}}};
		this.menuopera_false=function(evt){if(!oEl.isobject(oNav.overrideButton)){var doc=evt.target.ownerDocument;oNav.overrideButton=doc.createElement("input");oNav.overrideButton.type="button";doc.body.appendChild(oNav.overrideButton);oNav.overrideButton.style='position:absolute;z-index:100;top:'+(evt.clientY-2)+'px;left:'+(evt.clientX-2)+'px;width:5px;height:5px;opacity:0.01';if(evt.button==2){oNav.hideallbox();}}};
		this.menuopera_true=function(evt){if(oNav.overrideButton){oNav.overrideButton.parentNode.removeChild(oNav.overrideButton);oNav.overrideButton=undefined;}};
		this.contextmenu=function(a,el){if(a){oNav.init_timer(oNav.timer);oNav.timer=null;}if(oEl.isobject(el)){el.oncontextmenu=function(){return a;};}else{if(oNav.opera){oNav.addevent("onmousedown",eval("oNav.menuopera_"+a.toString()));}else{document.oncontextmenu=function(){return a;};}}};
		this.load=function(){oNav.body=window.document.body;oNav.marginLeft=oNav.body.style.marginLeft;oNav.marginRight=oNav.body.style.marginRight;oNav.marginTop=oNav.body.style.marginTop;oNav.marginBottom=oNav.body.style.marginBottom;if(oNav.marginLeft==""){if(oNav.msie){oNav.marginLeft=(isNaN(oNav.body.leftMargin))?0:parseFloat(oNav.body.leftMargin);}else{oNav.marginLeft=0;}}else{oNav.marginLeft=parseFloat(oNav.marginLeft);}if(oNav.marginRight==""){if(oNav.msie){oNav.marginRight=(isNaN(oNav.body.rightMargin))?0:parseFloat(oNav.body.rightMargin);}else{oNav.marginLeft=0;}}else{oNav.marginRight=parseFloat(oNav.marginRight);}if(oNav.marginTop==""){if(oNav.msie){oNav.marginTop=(isNaN(oNav.body.bottomMargin))?0:parseFloat(oNav.body.topMargin);}else{oNav.marginTop=0;}}else{oNav.marginTop=parseFloat(oNav.marginTop);}if(oNav.marginBottom==""){if(oNav.msie){oNav.marginBottom=(isNaN(oNav.body.bottomMargin))?0:parseFloat(oNav.body.bottomMargin);}else{oNav.marginBottom=0;}}else{oNav.marginBottom=parseFloat(oNav.marginBottom);}oNav.size();oNav.ready=true;};
		this.keydown=function(evt){oNav.keyb.esc(evt);oNav.keyb.enter(evt);oNav.keyb.sel(evt);};
		this.selhide=function(evt){var el=(!oNav.msie)?evt.target:window.event.srcElement;if(el.className.toString().indexOf("jaria_list")==-1&&el.className.toString().indexOf("jaria_slist")==-1){oSel.hide();}};
		this.annul=function(){};
		this.valid=function(){};		
		this.addevent=function(){if(arguments.length<2){return false;}var ev=arguments[0];var fc=arguments[1];var el=arguments[2];oNav.delevent(ev,fc,el);if(typeof(fc)!="function"){return false;}if(oEl.isobject(el)){var obj=el;}else if(ev.indexOf("scroll")!=-1||ev.indexOf("load")!=-1||ev.indexOf("resize")!=-1){var obj=window;}else{var obj=document;}try{obj.attachEvent(ev,fc);}catch(e){try{ev=ev.toString().replace("on","");obj.addEventListener(ev,fc,false);}catch(E){return false;}}return true;};
		this.delevent=function(ev,fc){if(arguments.length<2){return false;}var ev=arguments[0];var fc=arguments[1];var el=arguments[2];if(typeof(fc)!="function"){return false;}if(oEl.isobject(el)){var obj=el;}else if(ev.indexOf("scroll")!=-1||ev.indexOf("load")!=-1||ev.indexOf("resize")!=-1){var obj=window;}else{var obj=document;}try{obj.detachEvent(ev,fc);}catch(e){try{ev=ev.toString().replace("on","");obj.removeEventListener(ev,fc,false);}catch(e){return false;}}return true;};
		this.goto=function(url){if(!oText.test(url)){return false;}oNav.lock.show();window.location.href=url;};
		function Trace(){	
			this.el=undefined;this.debug=undefined;this.position="";this.stop=false;
			this.pos=function(){if(oEl.isobject(oNav.trace.el)){var width=parseFloat(oEl.getstyleclass(oNav.trace.el,"width"));var height=parseFloat(oEl.getstyleclass(oNav.trace.el,"height"));switch(oNav.trace.position){case"right bottom":oNav.trace.el.style.left=oText.toPx(oNav.screenX-width-15+oNav.scrollX);oNav.trace.el.style.top=oText.toPx(oNav.screenY-height-15+oNav.scrollY);break;case"right":oNav.trace.el.style.left=oText.toPx(oNav.screenX-width-15+oNav.scrollX);oNav.trace.el.style.top=oText.toPx(10+oNav.scrollY);break;case"bottom":case"left bottom":oNav.trace.el.style.left=oText.toPx(10+oNav.scrollX);oNav.trace.el.style.top=oText.toPx(oNav.screenY-height-15+oNav.scrollY);break;default:oNav.trace.el.style.left=oText.toPx(10+oNav.scrollX);oNav.trace.el.style.top=oText.toPx(10+oNav.scrollY);}}};
			this.add=function(t){if(oText.test(t)&&!oNav.trace.stop){if(!oEl.isobject(oNav.trace.el)){oNav.trace.show();}var t=oText.htmlencode(t);var h=oEl.getframe(oNav.trace.debug,"trace").innerHTML.toString();var d=new Date();var j=("<span class='jaria_boxtracehour'>"+oText.digit(d.getHours(),2)+"h"+oText.digit(d.getMinutes(),2)+"m"+oText.digit(d.getSeconds(),2)+"s"+oText.digit(d.getMilliseconds(),3)+"ms</span>").toString();h=j+"&nbsp;"+t.toString()+"<br>"+h;oEl.getframe(oNav.trace.debug,"trace").innerHTML=h;oEl.getframe(oNav.trace.debug,"trace").scrollIntoView(true);}};
			this.drag=function(evt){oEl.drag.opacity=65;oEl.drag.start(oNav.trace.el,evt);};
			this.clear=function(){if(oEl.isobject(oNav.trace.el)){oEl.getframe(oNav.trace.debug,"trace").innerHTML="";}};			
			this.pause=function(){oNav.trace.stop=(oNav.trace.stop)?false:true;this.innerHTML=(oNav.trace.stop)?"start":"pause";}
			this.show=function(pos){oNav.trace.position=(pos==null)?"":pos;if(oEl.isobject(oNav.trace.el)){return false;}oNav.trace.stop=false;oNav.trace.el=oEl.create("div");oNav.trace.el.className="jaria_boxtrace";var head=oEl.create("div");head.className="jaria_boxhead jaria_boxheadalerte";head.onmousedown=oNav.trace.drag;head.ondblclick=oNav.trace.pos;var title=oEl.create("div");title.className="jaria_boxtitre jaria_boxtitrealerte";title.innerHTML="Traces debug";head.appendChild(title);var quit=oEl.create("div");quit.className="jaria_boxtracequit";quit.className="jaria_boxferme jaria_boxfermealerte";quit.onclick=oNav.trace.hide;head.appendChild(quit);oNav.trace.debug=oEl.create("input");oNav.trace.debug=oEl.create("iframe");oNav.trace.debug.className="jaria_boxtracedebug";oNav.trace.el.appendChild(head);oNav.trace.el.appendChild(oNav.trace.debug);var bt=oEl.create("button");bt.className="jaria_boxtracebutton";bt.innerHTML="pause";bt.onclick=oNav.trace.pause;oNav.trace.el.appendChild(bt);var bt=oEl.create("button");bt.className="jaria_boxtracebutton";bt.innerHTML="clear";bt.onclick=oNav.trace.clear;oNav.trace.el.appendChild(bt);oNav.body.appendChild(oNav.trace.el);oNav.trace.pos();var h="<html><head><link href='css/jaria.css' rel='stylesheet' type='text/css' /></head><body><div id='trace'></div></body><html>";oEl.getframe(oNav.trace.debug).open();oEl.getframe(oNav.trace.debug).write(h);oEl.getframe(oNav.trace.debug).close();oEl.getframe(oNav.trace.debug,"trace").className="jaria_boxtracetext";oEl.getframe(oNav.trace.debug,"trace").parentNode.style.margin="0px";};			
			this.hide=function(){if(oEl.isobject(oNav.trace.el)){oNav.body.removeChild(oNav.trace.el);oNav.trace.el=undefined;}};		
		}		
		function Popup(){
			this.el=undefined;this.modal=false;this.params="";this.url="";
			this.focus=function(){try{if(this.modal){this.el.focus();}}catch(e){}};this.init=function(){this.el=undefined;this.modal=false;this.params="";};
			this.hide=function(){oNav.lock.hide();try{this.el.close();this.init();oNav.delevent("onfocus",this.focus,oNav.body);}catch(e){}};
			this.show=function(){this.hide();this.el=(this.modal)?window.open(this.url,"modal",this.params):window.open(this.url,this.params);if(this.modal){oNav.lock.show();oNav.addevent("onfocus",this.focus,oNav.body);}};
		}
		function Mouse(e){this.X=0;this.Y=0;this.evt=null;this.move=function(e){var e=e||window.event;oNav.mouse.X=e.clientX;oNav.mouse.Y=e.clientY;};}
		function Keyb(e){			
			this.esc=function(e){var e=e||window.event;if(e.keyCode==27){oNav.hideallbox();}};
			this.enter=function(e){var e=e||window.event;var el=(window.event)?e.srcElement:e.target;if(e.keyCode==13&&el.className.indexOf("jaria_enter")!=-1){oBox.focus=0;if(oText.lower(el.tagName)=="input"&&oText.trim(el.value)==""){oNav.keyb.annul(el);return false;}oNav.keyb.valid(el);}};
			this.sel=function(e){var e=e||window.event;var el=(window.event)?e.srcElement:e.target;if((e.keyCode==40||e.keyCode==38||e.keyCode==13)&&oText.lower(el.tagName)=="input"&&el.className=="jaria_listlock"){if(e.keyCode==13){oSel.hide();}else{oSel.get(el,e);}}}
			this.valid=function(){};
			this.annul=function(){};
		}		
		function Lock(){
			this.el=undefined;this.exist=false;this.opacity=40;this.anim=true;this.color="";							/* couleur */			
			this.show=function(){if(!oNav.lock.exist){if(isNaN(oNav.lock.opacity)||parseInt(oNav.lock.opacity)<10||parseInt(oNav.lock.opacity)>100){oNav.lock.opacity=40;}oEl.title.hide();oNav.lock.el=oEl.create("div");oNav.lock.el.className=(oNav.lock.anim)?"jaria_lock_anim":"jaria_lock";if(oColor.iscolor(oNav.lock.color)){oNav.lock.el.style.backgroundColor=oNav.lock.color;}oNav.lock.el.innerHTML="&nbsp;";oNav.lock.el.style.top=oText.toPx(oNav.scrollY);oNav.lock.el.style.left=oText.toPx(oNav.scrollX);oNav.lock.el.style.width=oText.toPx(oNav.screenX);oNav.lock.el.style.height=oText.toPx(oNav.screenY);oNav.body.appendChild(oNav.lock.el);oNav.lock.exist=true;oEl.opacity(oNav.lock.el,oNav.lock.opacity);if(oEl.isobject(oCal)){oCal.hide();}}};	
			this.hide=function(){oNav.lock.exist=false;oNav.lock.anim=true;oNav.lock.opacity=40;oNav.lock.color="";try{oNav.body.removeChild(oNav.lock.el);}catch(e){}};
		}
		function Bar(){		
			this.el=undefined;this.nblig=0;this.nbligtot=0;this.nbligec=0;this.nbliglim=0;this.html="";this.nbpage=0;this.page=0;this.exist=false;this.classover="";
			this.go=function(p){p=(p<=1)?p=0:(p-1)*oNav.bar.nblig;oNav.bar.page=p;oNav.bar.valid();};
			this.valid=function(){};
			this.add=function(){var span=oEl.create("span");if(arguments.length>=3){span.className=arguments[0];if(arguments[1]!=""){span.title=arguments[1];}span.appendChild(oEl.text(arguments[2]));if(arguments.length==4){oNav.bar.classover=arguments[0];var i=arguments[3];span.onclick=function(){oNav.bar.go(i);};span.onmouseover=function(){this.className="jaria_barr_lienov";};span.onmouseout=function(){this.className=oNav.bar.classover;};}oNav.bar.el.appendChild(span);}};
			this.show=function(){var prem="Premier";var prec="Précédent";var suiv="Suivant";var dern="Dernier";var alle="Aller à";if(oNav.bar.exist==true){return true;}if(arguments.length<4){return false;}for(var i=0;i<arguments.length;i++){switch(i){case 0:if(oEl.isobject(arguments[i])){oNav.bar.el=arguments[i];}else{if(oEl.test(arguments[i])){oNav.bar.el=oEl.get(arguments[i]);}else{return false;}}break;case 1:if(isNaN(arguments[i])){return false;}oNav.bar.nblig=parseInt(arguments[i]);break;case 2:if(isNaN(arguments[i])){return false;}oNav.bar.nbligtot=parseInt(arguments[i]);break;case 3:if(isNaN(arguments[i])){return false;}oNav.bar.nbligec=parseInt(arguments[i]);break;case 4:if(isNaN(arguments[i])){return false;}oNav.bar.nbliglim=parseInt(arguments[i]);break;case 5:if(oText.trim(arguments[i])!=""){prem=oText.trim(arguments[i]);}break;case 6:if(oText.trim(arguments[i])!=""){prec=oText.trim(arguments[i]);}break;case 7:if(oText.trim(arguments[i])!=""){suiv=oText.trim(arguments[i]);}break;case 8:if(oText.trim(arguments[i])!=""){dern=oText.trim(arguments[i]);}break;case 9:if(oText.trim(arguments[i])!=""){alle=oText.trim(arguments[i]);}break;default:}}oNav.bar.nbpage=parseInt(-Math.floor(-oNav.bar.nbligtot/oNav.bar.nblig));oNav.bar.page=parseInt(-Math.floor(-oNav.bar.nbligec/oNav.bar.nblig)+1);for(var i=0;i<oNav.bar.nbpage;i++){if(i==oNav.bar.nbliglim&&oNav.bar.page<=oNav.bar.nbliglim){break;}if(i==0){if(oNav.bar.page>1){oNav.bar.add("jaria_barr_lien",prem,"<<",1);oNav.bar.add("jaria_barr_lien",prec,"<",(oNav.bar.page-1));}else{oNav.bar.add("jaria_barr_nolien","","<<");oNav.bar.add("jaria_barr_nolien","","<");}}if((oNav.bar.page-1)==i){oNav.bar.add("jaria_barr_nolien","Page "+(i+1).toString(),(i+1).toString());}else{if((oNav.bar.page>oNav.bar.nbliglim&&(i+1)>(oNav.bar.page-oNav.bar.nbliglim)&&(i+1)<oNav.bar.page)||(oNav.bar.page<=oNav.bar.nbliglim)){oNav.bar.add("jaria_barr_lien",alle+" "+(i+1).toString(),(i+1).toString(),(i+1));}}}if(oNav.bar.nbpage>oNav.bar.nbliglim&&oNav.bar.page<oNav.bar.nbpage){oNav.bar.el.appendChild(oEl.text("..."));}if(oNav.bar.nbpage>1&&oNav.bar.page<oNav.bar.nbpage){oNav.bar.add("jaria_barr_lien",suiv,">",(oNav.bar.page+1));oNav.bar.add("jaria_barr_lien",dern,">>",(oNav.bar.nbpage));}else{if(oNav.bar.nbpage>0){oNav.bar.add("jaria_barr_nolien","",">");oNav.bar.add("jaria_barr_nolien","",">>");}}if(i==1){oNav.bar.el.innerHTML="";}oNav.bar.exist=true;return true;};
		}	
	}	
	function El(){
		this.fader=new Fader();this.sound=new Sound();this.drag=new Drag();this.title=new Title();this.prev=new Prev();this.timer=null;
		this.alert=function(id){if(!oText.test(id)){id="undefined";}oBox.error("l'objet: <kbd>"+id+"</kbd> n'est pas trouv&eacute; !<br><div id="+id+" style='display:none'></div>");return document.getElementById(id);};
		this.isobject=function(){if(arguments.length==0){return false;}return(typeof(arguments[0])=="object")?true:false;};
		this.get=function(id){if(!oText.test(id)){return oEl.alert(id);}if(!oEl.test(id)){return oEl.alert(id);}return document.getElementById(id);};
		this.test=function(id){if(!oText.test(id)){return false;}if(oBox.html.substr(5,id.length+1)==id.toString()){oBox.hide();return false;}if(document.getElementById(id)){return true;}else{return false;}};
		this.create=function(tag){return document.createElement(tag);};
		this.del=function(el){if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}el=oEl.get(el);}try{el.parentNode.removeChild(el);el=undefined;}catch(e){}};
		this.gettags=function(){if(arguments.length==0){return[];}var tag=arguments[0].toString().toUpperCase();if(arguments.length>1){var el=arguments[1];if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{return[];}}return el.getElementsByTagName(tag);}else{return document.getElementsByTagName(tag);}};
		this.deltags=function(tag,parent){var p=(parent==null)?document:parent;while(oEl.gettags(tag,p).length>0){var elems=oEl.gettags(tag,p);for(var i=0;i<elems.length;i++){p.removeChild(elems[i]);}}};
		this.getframe=function(el,id){if(!oEl.isobject(el)){el=oEl.get(el);}if(!oEl.isobject(el)){oEl.alert(el);}el=el.contentWindow.document;id=(typeof(id)!="string")?"null":id.toString();if(el.getElementById(id)){return el.getElementById(id)}else{return el;}};
		this.getparent=function(el){if(!oEl.isobject(el)){el=oEl.get(el);}if(parent.opener){return parent.opener.document.getElementById(el.id);}return el.parentNode;};
		this.text=function(text){return document.createTextNode(text);};		
		this.opacity=function(el,v){if(arguments.length<2){return false;}if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}el=oEl.get(el);}if(!isNaN(v)){if(parseInt(v)<0){v=0;}if(parseInt(v)>100){v=100;}if(oNav.msie){el.style.filter="alpha(opacity="+parseInt(v)+")";}else{el.style.opacity=Math.round((parseFloat(v)/100)*10)/10;}}};
		this.getopacity=function(el){if(!oEl.isobject(el)){return 0;}if(oNav.msie){var op=new String(el.style.filter);op=op.split("=");return parseFloat(op[op.length-1]);}else{return(parseFloat(el.style.opacity)*100);}};
		this.getclass=function(){if(arguments.length==0){return[];}if(!oText.test(arguments[0])){return[];}var parent=document;var mcl=false;if(oEl.isobject(arguments[1])){parent=arguments[1];}else{if(typeof(arguments[1])=="boolean"){mcl=arguments[1];}}if(typeof(arguments[2])=="boolean"){mcl=arguments[2];}var els=[];var cl=oText.trim(arguments[0]);var p=parent.getElementsByTagName("*");var mess="";for(var i=0;i<p.length;i++){if(mcl&&p[i].className.indexOf(cl)!=-1){els.push(p[i]);}else{if(p[i].className==cl){els.push(p[i]);}}}return els;};
		this.addclass=function(){if(arguments.length==2&&oEl.isobject(arguments[0])&&oText.test(arguments[1])){var el=arguments[0];var cl=oText.trim(arguments[1]);var c=el.className.toString();if(c.lastIndexOf(cl)==-1){c+=" "+cl;}el.className=c;}};
		this.delclass=function(el,cl){if(arguments.length==2&&oEl.isobject(arguments[0])&&oText.test(arguments[1])){var el=arguments[0];var cl=oText.trim(arguments[1]);var c=el.className.toString();if(c.lastIndexOf(cl)!=-1){c=c.replace(cl,"");}el.className=oText.trim(c);}};
		this.getoffset=function(el,prop){if(!oEl.isobject(el)){el=oEl.get(el);}if(!oEl.isobject(el)||!oText.test(prop)){return 0;}var px=0;var p=el.parentNode;while(el&&oText.lower(el.tagName)!="body"){eval("px += el."+prop+";");el=el.offsetParent;}return px;};
		this.getstyleclass=function(el,st){if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{return"";}}if(!oNav.msie){return eval("window.getComputedStyle(el, null)."+st);}else{return eval("el.currentStyle."+st);}};
		this.setinscreen=function(){var el=arguments[0];if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{return false;}}if(el.id==""){el.id="JARIA_SETINESCREEN";}function Stop(){if(el.id=="JARIA_SETINESCREEN"){el.id="";}window.clearTimeout(oEl.timer);oEl.timer=null;}var left=parseFloat(el.offsetLeft);var top=parseFloat(el.offsetTop);var width=parseFloat(el.offsetWidth);var height=parseFloat(el.offsetHeight);var posLeft=left-oNav.scrollX+oNav.marginLeft+width;var posTop=top-oNav.scrollY+oNav.marginTop+height;if(left-oNav.scrollX<0){el.style.left=oText.toPx(left+20);}if(top-oNav.scrollY<0){el.style.top=oText.toPx(top+20);Stop();return false;}if((left<0&&posLeft>oNav.screenX)||(top<0&&posTop>oNav.screenY)){Stop();return false;}if((left>0&&posTop<=oNav.screenX)&&(top>0&&posTop<=oNav.screenY)){Stop();return false;}if(posLeft>oNav.screenX){el.style.left=oText.toPx(left-20);}if(posTop>oNav.screenY){el.style.top=oText.toPx(top-20);}oEl.timer=window.setTimeout("oEl.setinscreen('"+el.id+"')",20);};
		this.isvisible=function(){var el=arguments[0];if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}else{el=oEl.get(el);}}return(oEl.getstyleclass(el,"display")!="none")?true:false;};
		this.visible=function(){var el=arguments[0];if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}else{el=oEl.get(el);}}var state=arguments[1];if(typeof(state)!="boolean"){return false;}var tag=oText.lower(el.tagName);if(state){if(oNav.msie){el.style.display="inline";}else{switch(tag){case"table":el.style.display="table";break;case"tr":el.style.display="table-row";break;case"td":el.style.display="table-cell";break;case"div":el.style.display="block";break;default:el.style.display="inline";}}}else{el.style.display="none";}};
	function Title(){this.el=[];this.titre=[];this.actif=[];this.bubble=undefined;this.text="";this.file="host/infobulle.php";this.pathImg="images/";this.search=false;this.get=function(el){for(var i=0;i<oEl.title.el.length;i++){if(el==oEl.title.el[i]){return i;}}return-1;};this.go=function(event){var el=(!oNav.msie)?event.target:window.event.srcElement;if(typeof(el)=="object"&&el.className.indexOf("liste")==-1){try{if(el.title!=""){if(oEl.title.get(el)==-1){var i=oEl.title.el.length;oEl.title.el[i]=el;oEl.title.titre[i]=el.title;oEl.title.actif[i]=0;oNav.addevent("onmouseover",function(){oEl.title.show(i);},el);oNav.addevent("onmouseout",function(){oEl.title.actif[i]=0;if(oEl.isobject(oEl.prev.el)){oEl.prev.hide();}else{oEl.title.hide();}},el);el.title="";}}else if(el.title==""){var i=oEl.title.get(el);oEl.title.show(i);}}catch(e){}}};this.show=function(){if(arguments.length==0){return false;}var posX=oNav.mouse.X+oNav.scrollX;var posY=oNav.mouse.Y+oNav.scrollY;var larg=20-oNav.marginLeft;var width=150;var i=parseInt(arguments[0]);if(oEl.title.actif[i]==0){var text=oText.trim(oEl.title.titre[i]);if(text==""){return false;}if(text.substr(0,13)=="this.previsu="&&(text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1))!=""){var src=text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1);oEl.prev.show(oEl.title.el[i],src);if(!oEl.isobject(oEl.prev.text)){text=text.substr(text.indexOf(";")+1,text.length);text=text.replace("","&nbsp;");text=text.replace("\r","<br/>");var div=oEl.create("div");div.className="jaria_previsu_text";div.style.top=oText.toPx(oEl.prev.el.offsetHeight);var divg=oEl.create("div");divg.className="jaria_previsu_text_g";div.appendChild(divg);var divc=oEl.create("div");divc.className="jaria_previsu_text_c";div.appendChild(divc);divc.innerHTML=oText.encode(text);var divd=oEl.create("div");divd.className="jaria_previsu_text_d";div.appendChild(divd);oEl.opacity(div,90);oEl.prev.el.appendChild(div);oEl.prev.text=div;oEl.title.actif[i]=1;return false;}}oEl.title.hide();if(text.substr(0,11)=="this.width="&&!isNaN(text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1))){var width=parseInt(text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1));width=(width<40)?40:width;width=(width>1000)?1000:width;text=text.substr(text.indexOf(";")+1,text.length);}if(text.substr(0,10)=="this.ajax="&&!isNaN(text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1))){if(oEl.title.search){return false;}id=text.substr(text.indexOf("=")+1,text.indexOf(";")-text.indexOf("=")-1);oEl.title.search=true;oAjax.init();oAjax.adddata("ID",id);oAjax.send(oEl.title.file,"post");oAjax.recept=function(){oEl.title.search=false;oEl.title.hide();if(!oText.test(arguments[0])){return false;}oEl.title.titre[i]=arguments[0];oEl.title.actif[i]=0;oEl.title.show(i);return false;};oAjax.onready();text="<img src='"+_img+"loadimg.gif' />";}text=text.replace("","&nbsp;");text=text.replace("\r","<br/>");oEl.title.bubble=oEl.create("div");var e=oEl.title.bubble;e.className="jaria_bubble";e.style.width=oText.toPx(width);oEl.title.arrow=oEl.create("div");oEl.title.cont=oEl.create("div");oEl.title.cont.className="jaria_bubblecont";oEl.title.cont.innerHTML=oText.encode(text);oEl.title.arrow.className="jaria_bubblearrowhaut";e.appendChild(oEl.title.arrow);e.appendChild(oEl.title.cont);document.body.appendChild(e);oEl.fader.plus(e,30);oEl.title.actif[i]=1;if(oBox.exist||oColor.exist){e.style.zIndex=101;}}if( oEl.isobject(oEl.title.bubble) ){var screenX=oNav.screenX+oNav.scrollX;var screenY=oNav.screenY+oNav.scrollY;var width=oEl.title.bubble.offsetWidth;var height=oEl.title.bubble.offsetHeight;oEl.title.bubble.style.top=oText.toPx(posY+larg);oEl.title.bubble.style.left=oText.toPx(posX);if((posX+width+larg)>(screenX)){posX=posX-(posX+width-screenX)-larg;var posArrow=(oNav.mouse.X+oNav.scrollX)-posX;oEl.title.bubble.style.left=oText.toPx(posX);oEl.title.arrow.style.backgroundPosition=oText.toPx(posArrow);}if((posY+height+larg)>(screenY)){oEl.title.bubble.style.top=oText.toPx(posY-height-larg);oEl.title.arrow.className="jaria_bubblearrowbas";oEl.title.bubble.appendChild(oEl.title.arrow);}else{oEl.title.arrow.className="jaria_bubblearrowhaut";oEl.title.bubble.appendChild(oEl.title.cont);}}oEl.title.search=false;return true;};this.hide=function(){try{document.body.removeChild(oEl.title.bubble);}catch(e){}if(arguments.length==0)oEl.prev.hide();};}
	function Prev(){
		this.el=undefined;this.text=undefined;
		this.show=function(){if(arguments.length<2||oEl.isobject(oEl.prev.el)||!oNav.ready){return false;}oEl.prev.hide();var el=arguments[0];var src=arguments[1];var div=oEl.create("div");div.className="jaria_previsu";div.style.left=oText.toPx(oEl.getoffset(el,"offsetLeft"));div.style.top=oText.toPx(oEl.getoffset(el,"offsetTop")+30+oNav.marginTop);var divc=oEl.create("div");divc.className="jaria_previsu_cadre";divc.style.left="5px";divc.style.top="5px";var divo=oEl.create("div");divo.className="jaria_previsu_ombre";oEl.opacity(divo,30);var img=oEl.create("img");img.className="jaria_previsu_img";img.src=src;img.alt="";divc.appendChild(img);div.appendChild(divc);div.appendChild(divo);document.body.appendChild(div);if(!oNav.msie){oEl.fader.plus(div,50);}oEl.prev.el=div;};
		this.hide=function(){try{oNav.body.removeChild(oEl.prev.el);}catch(e){}oEl.prev.el=undefined;oEl.prev.text=undefined;};
	}
	function Fader(){
		this.el=[];this.timer=[];			
		this.clear=function(i){oNav.init_timer(oEl.fader.timer[i]);oEl.fader.timer[i]=null;};
		this.get=function(el){for(var i=0;i<oEl.title.el.length;i++){if(el==oEl.title.el[i]){return i;}}return-1;};			
		this.inc=function(inc,i){var el=oEl.fader.el[i];if(oEl.isobject(el)){oEl.opacity(el,(parseInt(oEl.getopacity(el))+parseInt(inc)));if(parseFloat(inc)>0&&oEl.getopacity(el)>=100){oEl.fader.clear(i);}if(parseFloat(inc)<0&&oEl.getopacity(el)<=0){oEl.fader.clear(i);}}};
		this.plus=function(el,t){if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{return false;}}var i=oEl.fader.get(el);if(i==-1){i=oEl.fader.el.length;oEl.fader.el[i]=el;}else{oEl.fader.clear(i);}el=oEl.fader.el[i];oEl.opacity(el,0);if(oEl.getopacity(el)>=100){return false;}var temp=(t==null||isNaN(t))?10:parseInt(t);oEl.fader.timer[i]=window.setInterval("oEl.fader.inc(10, "+i+")",temp);};
		this.moins=function(el,t){if(!oEl.isobject(el)){if(oEl.test(el)){el=oEl.get(el);}else{return false;}}var i=oEl.fader.get(el);if(i==-1){i=oEl.fader.el.length;oEl.fader.el[i]=el;}else{oEl.fader.clear(i);}el=oEl.fader.el[i];oEl.opacity(el,100);if(oEl.getopacity(el)<=0){return false;}var temp=(t==null||isNaN(t))?10:parseInt(t);oEl.fader.timer[i]=window.setInterval("oEl.fader.inc(-10, "+i+")",temp);};
	}		
	function Sound(){		
		this.el=undefined;this.autostart=true;this.loop=true;
		this.play=function(f){oEl.sound.stop();oEl.sound.el=oEl.create("embed");oEl.sound.el.src=f;oEl.visible(oEl.sound.el,false);oEl.sound.el.autostart=oEl.sound.autostart;oEl.sound.el.loop=oEl.sound.loop;oNav.body.appendChild(oEl.sound.el);};	
		this.stop=function(){if(oEl.isobject(oEl.sound.el)){oNav.body.removeChild(oEl.sound.el);oEl.sound.el=undefined;}};
	}	
	function Drag(sens){
		this.el=undefined;this.left=0;this.top=0;this.X=0;this.Y=0;this.startX=0;this.startY=0;this.startLeft=null;this.StartTop=null;this.sens=null;this.receptor=undefined;this.elex=undefined;this.elp=[];this.onreceptor=false;this.opacity=100;this.hlight=new Hlight();
		this.getstyleoffset=function(el,prop){if(oEl.getstyleclass(el,"position")=="absolute"){return oEl.getstyleclass(el,prop);}else{returnoText.toPx(oEl.getoffset(el,"offset"+oText.firstUp(prop)));}};
		function Hlight(){
		this.show=function(){oEl.drag.hlight.el=oEl.create("div");oEl.drag.hlight.el.className="jaria_highlight";oEl.drag.hlight.el.style.left=oText.toPx(oEl.drag.receptor.offsetLeft-6);oEl.drag.hlight.el.style.top=oText.toPx(oEl.drag.receptor.offsetTop-6);oEl.drag.hlight.el.style.width=oText.toPx(oEl.drag.receptor.offsetWidth);oEl.drag.hlight.el.style.height=oText.toPx(oEl.drag.receptor.offsetHeight);document.body.appendChild(oEl.drag.hlight.el);};
		this.hide=function(){try{document.body.removeChild(oEl.drag.hlight.el);}catch(e){}};}
		this.stop=function(){document.onmousemove=oNav.mouse.move;document.onmouseup=null;if(oEl.isobject(oEl.drag.receptor)){if(oEl.drag.onreceptor){if(oEl.isobject(oEl.drag.elex)){oEl.drag.progress(oEl.drag.elex,parseFloat(oEl.drag.elex.startLeft),parseFloat(oEl.drag.elex.startTop));oEl.drag.elex=undefined;}
var margeLeft=0;var margeTop=0;if(oEl.getstyleclass(oEl.drag.el,"position")!="absolute"){var margeLeft=oEl.getoffset(oEl.drag.el.parentNode,"offsetLeft");var margeTop=oEl.getoffset(oEl.drag.el.parentNode,"offsetTop");}
oEl.drag.el.style.left=oText.toPx(oEl.getoffset(oEl.drag.receptor,"offsetLeft")-margeLeft);oEl.drag.el.style.top=oText.toPx(oEl.getoffset(oEl.drag.receptor,"offsetTop")-margeTop);oEl.drag.hlight.hide();oEl.drag.inreceptor();}else{oEl.drag.progress(oEl.drag.el,parseFloat(oEl.drag.startLeft),parseFloat(oEl.drag.startTop));}}
oEl.drag.receptor=undefined;oEl.drag.sens=null;oEl.drag.opacity=100;oEl.opacity(oEl.drag.el,100);oText.select(true);};
			this.go=function(e){var evt=e||window.event;var Px,Py;var X=evt.clientX+oNav.scrollX;var Y=evt.clientY+oNav.scrollY;if((X>0)&&(Y>0)){if(oEl.drag.sens!=null&&(oEl.drag.sens=="x"||oEl.drag.sens=="y")){Py=eval("P"+oEl.drag.sens);Py=(oEl.drag.left+eval(oEl.drag.sens.toUpperCase()))-eval("oEl.drag.start"+oEl.drag.sens.toUpperCase());}else{Px=(oEl.drag.left+X-oEl.drag.startX);Py=(oEl.drag.top+Y-oEl.drag.startY);}if(Px>0){oEl.drag.el.style.left=oText.toPx(Px);}if(Py>0){oEl.drag.el.style.top=oText.toPx(Py);}if(oEl.drag.receptor!=undefined){function collision(x,y){if(x>=parseFloat(oEl.getstyleclass(oEl.drag.receptor,"left"))&&x<=parseFloat(oEl.getstyleclass(oEl.drag.receptor,"left"))+parseFloat(oEl.getstyleclass(oEl.drag.receptor,"width"))&&y>=parseFloat(oEl.getstyleclass(oEl.drag.receptor,"top"))&&y<=parseFloat(oEl.getstyleclass(oEl.drag.receptor,"top"))+parseFloat(oEl.getstyleclass(oEl.drag.receptor,"height"))){return true;}return false;}oEl.drag.hlight.hide();oEl.drag.onreceptor=false;if(collision(parseFloat(oEl.getstyleclass(oEl.drag.el,"left")),parseFloat(oEl.getstyleclass(oEl.drag.el,"top")))||collision(parseFloat(oEl.getstyleclass(oEl.drag.el,"left"))+parseFloat(oEl.getstyleclass(oEl.drag.el,"width")),parseFloat(oEl.getstyleclass(oEl.drag.el,"top")))||collision(parseFloat(oEl.getstyleclass(oEl.drag.el,"left")),parseFloat(oEl.getstyleclass(oEl.drag.el,"top"))+parseFloat(oEl.getstyleclass(oEl.drag.el,"height")))||collision(parseFloat(oEl.getstyleclass(oEl.drag.el,"left"))+parseFloat(oEl.getstyleclass(oEl.drag.el,"width")),parseFloat(oEl.getstyleclass(oEl.drag.el,"top"))+parseFloat(oEl.getstyleclass(oEl.drag.el,"height")))){oEl.drag.onreceptor=true;oEl.drag.hlight.show();}}}if(!oNav.msie&&!oNav.opera){evt.preventDefault();}else{evt.cancelBubble=true;evt.returnValue=false;}};	
		this.inreceptor = function(){};			
		this.start = function(el, e, elr){oEl.drag.startX=0;oEl.drag.startY=0;oEl.drag.elex=undefined;e=e||window.event;if(e!=null){oEl.drag.X=e.clientX+oNav.scrollX;oEl.drag.Y=e.clientY+oNav.scrollY;oEl.drag.startX=oEl.drag.X;oEl.drag.startY=oEl.drag.Y;if(elr!=null){if(oEl.isobject(elr)){oEl.drag.receptor=elr;}else if(oEl.test(elr)){oEl.drag.receptor=oEl.get(elr);}else{oEl.drag.receptor=undefined;}}}if(oEl.drag.el!=el){if(oEl.isobject(oEl.drag.el)&&oEl.drag.onreceptor){oEl.drag.elex=oEl.drag.el;oEl.drag.elex.startLeft=oEl.drag.startLeft;oEl.drag.elex.startTop=oEl.drag.startTop;}if(oEl.isobject(el)){oEl.drag.el=el;}else if(oEl.test(el)){oEl.drag.el=oEl.get(el);}else{return false;}if(oEl.drag.el.nodeType==3){oEl.drag.el=oEl.drag.el.parentNode;}oEl.drag.el.style.left=oEl.getstyleclass(oEl.drag.el,"left");oEl.drag.el.style.top=oEl.getstyleclass(oEl.drag.el,"top");oEl.drag.startLeft=oEl.drag.el.style.left;oEl.drag.startTop=oEl.drag.el.style.top;oEl.drag.el.style.width=oEl.getstyleclass(oEl.drag.el,"width");oEl.drag.el.style.height=oEl.getstyleclass(oEl.drag.el,"height");}oEl.drag.opacity=(isNaN(oEl.drag.opacity))?100:oEl.drag.opacity;oEl.opacity(oEl.drag.el,oEl.drag.opacity);oEl.drag.left=(e!=null)?parseFloat(oEl.drag.el.style.left):parseFloat(oEl.drag.startLeft);oEl.drag.top=(e!=null)?parseFloat(oEl.drag.el.style.top):parseFloat(oEl.drag.startTop);oEl.drag.left=(oEl.drag.left==null)?0:oEl.drag.left;oEl.drag.top=(oEl.drag.top==null)?0:oEl.drag.top;if(oEl.isobject(oEl.drag.receptor)){oEl.drag.receptor.style.left=oEl.getstyleclass(oEl.drag.receptor,"left");oEl.drag.receptor.style.top=oEl.getstyleclass(oEl.drag.receptor,"top");oEl.drag.receptor.style.width=oEl.getstyleclass(oEl.drag.receptor,"width");oEl.drag.receptor.style.height=oEl.getstyleclass(oEl.drag.receptor,"height");}
oText.select(false);if(e!=null){document.onmousemove=oEl.drag.go;document.onmouseup=oEl.drag.stop;}else{oEl.drag.el.style.left=oText.toPx(oEl.drag.startX+oEl.drag.X);oEl.drag.el.style.top=oText.toPx(oEl.drag.startY+oEl.drag.Y);}};
		this.progress=function(el,x,y){if(el!=undefined&&el!=null&&typeof(el)!="number"){el=(oEl.test(el))?oEl.get(el):el;if(!oEl.isobject(el)){oBox.error("Aucun objet passé à la fonction <kbd>oEl.drag.progress</kbd>");return Stop();}var inc=0;for(var i=0;i<oEl.drag.elp.length;i++){if(oEl.drag.elp[i].id==el.id){inc++;break;}}if(inc==0){inc=oEl.drag.elp.length;oEl.drag.elp[inc]=el;oEl.drag.elp[inc].id=el.id;oEl.drag.elp[inc].stopX=x;oEl.drag.elp[inc].stopY=y;oEl.drag.elp[inc].incX=0;oEl.drag.elp[inc].incY=0;oEl.drag.elp[inc].dX=0;oEl.drag.elp[inc].dY=0;oEl.drag.elp[inc].coef=1;oEl.drag.elp[inc].start=false;}for(var i=0;i<oEl.drag.elp.length;i++){if(oEl.drag.elp[i].start==true){return false;}}if(isNaN(el.stopX)||isNaN(el.stopY)){oBox.error("Aucune destination  passé à la fonction <kbd>oEl.drag.progress</kbd>");return Stop();}}el=oEl.drag.elp[0];if(!oEl.isobject(el)){oBox.error("Aucun objet passé à la fonction <kbd>oEl.drag.progress</kbd>");return Stop();}function Stop(){oEl.drag.elp.shift();if(oEl.drag.elp.length>0){oEl.drag.elp[0].start=false;Start();}return false;}function Start(){window.setTimeout(oEl.drag.progress,1);}var left=(el.style.left)?parseFloat(el.style.left):parseFloat(oEl.getstyleclass(el,"left"));var top=(el.style.top)?parseFloat(el.style.top):parseFloat(oEl.getstyleclass(el,"top"));if(isNaN(left)||isNaN(top)){oBox.error("Impossible de récupérer la position de l'élément <kbd>"+el.id+"</kbd> passé dans la fonction <kbd>oEl.drag.progress</kbd>");return Stop();}if(el.start==false){el.style.left=oText.toPx(left);el.style.top=oText.toPx(top);el.dX=parseInt(el.stopX-left);el.dY=parseInt(el.stopY-top);el.dX=(el.dX<0)?-el.dX:el.dX;el.dY=(el.dY<0)?-el.dY:el.dY;el.incX=(left<el.stopX)?10:-10;el.incY=(top<el.stopY)?10:-10;el.coef=1;el.count=0;if(el.dX<el.dY&&el.dX!=0){el.coef=Math.round(el.dY/el.dX);}if(el.dX>el.dY&&el.dY!=0){el.coef=Math.round(x/el.dY);}if(el.coef<0)el.coef=-el.coef;if(el.coef==0)el.coef=1;el.start=true;}el.count++;if((el.incX>0&&left<el.stopX)||(el.incX<0&&left>el.stopX)){if(el.dX<el.dY){if(el.count==el.coef){el.style.left=oText.toPx(parseFloat(el.style.left)+el.incX);el.count=0;}}else{el.style.left=oText.toPx(parseFloat(el.style.left)+el.incX);}}else{el.style.left=oText.toPx(el.stopX);}if((el.incY>0&&top<el.stopY)||(el.incY<0&&top>el.stopY)){if(el.dY<el.dX){if(el.count==el.coef){el.style.top=oText.toPx(parseFloat(el.style.top)+el.incY);el.count=0;}}else{el.style.top=oText.toPx(parseFloat(el.style.top)+el.incY);}}else{el.style.top=oText.toPx(el.stopY);}if(parseFloat(el.style.left)==el.stopX&&parseFloat(el.style.top)==el.stopY){return Stop();}Start();};}
	}
	function Box(){
		this.type=1;this.ico=1;this.bts=1;this.quit=1;this.title="";this.html="";this.focus=1;this.el=undefined;this.posX=0;this.posY=0;this.width=null;this.exist=0;this.lineheight=15;this.status=false;this.color=null;this.backColor=null;this.backImage=null;this.timer=null;
		this.error=function(){oBox.hide();oBox.html=oText.encode(arguments[0]);oBox.type=4;oBox.title="erreur interne!";oBox.show();};
		this.wait=function(){oBox.html="<div style='text-align:center'><img src='"+_img+"loadimg.gif' /></div>";oBox.show();};
		this.addbutton=function(lib,fc){if(!oBox.exist||typeof(lib)!="string"||lib==""||typeof(fc)!="function"){return false;}var bt=oEl.create("button");var sp=oEl.create("span");bt.onclick=fc;bt.innerHTML=lib;bt.className="jaria_button";bt.style.width=oText.toPx(10*lib.length);sp.innerHTML=oText.repeat("&nbsp;",4);;oBox.el.Bts.appendChild(sp);oBox.el.Bts.appendChild(bt);};
		this.show=function(){if(oBox.html==""){oBox.error("le texte html de boite de dialogue est obligatoire!");}if(isNaN(oBox.type)||parseInt(oBox.type)<1||parseInt(oBox.type)>4){oBox.error("le type de boite de dialogue est incorrecte!");}if(oBox.type<oBox.exist){return false;}var wType=oBox.getType();try{oNav.body.removeChild(oBox.el);}catch(e){}oNav.lock.show();oText.select(false);oBox.exist=oBox.type;oBox.el=oEl.create("div");oBox.el.id="oBox";oBox.el.Head=oEl.create("div");oBox.el.Title=oEl.create("div");oBox.el.Quit=oEl.create("div");oBox.el.Html=oEl.create("div");oBox.el.Bts=oEl.create("div");oBox.el.BtOk=oEl.create("button");oBox.el.className="jaria_box jaria_box"+wType;oBox.width=(oBox.width!=null&&!isNaN(oBox.width)&&oBox.width>400&&oBox.width<=2000)?oBox.width:400;oBox.posX=(!isNaN(oBox.posX))?parseInt(oBox.posX):0;oBox.posY=(!isNaN(oBox.posY))?parseInt(oBox.posY):0;oBox.lineheight=(!isNaN(oBox.lineheight)&&parseFloat(oBox.lineheight)>=15&&parseFloat(oBox.lineheight)<=100)?parseInt(oBox.lineheight):15;oBox.el.style.width=oText.toPx(oBox.width);oBox.el.Html.style.lineHeight=oText.toPx(oBox.lineheight);oBox.el.Head.className="jaria_boxhead jaria_boxhead"+wType;oBox.el.Head.onmousedown=oBox.drag;oBox.el.Head.title="Deplacer";oBox.el.Title.className="jaria_boxtitre jaria_boxtitre"+wType;oBox.el.Title.innerHTML=(oBox.title!="")?oText.encode(oText.firstUp(oBox.title)):oText.firstUp(wType);if(!oBox.ico){oBox.el.Title.style.backgroundImage="url(images/jaria/vide.gif)";oBox.el.Title.style.paddingLeft="3px";}if(oColor.iscolor(oBox.color)){oBox.el.style.color=oBox.color;}if(oColor.iscolor(oBox.backColor)){oBox.el.style.backgroundColor=oBox.backColor;}if(oBox.backImage!=null){oBox.el.style.backgroundImage="url("+oBox.backImage+")";}oBox.el.Title.title="Deplacer";oBox.el.Quit.className="jaria_boxferme jaria_boxferme"+wType;oBox.el.Quit.onclick=oBox.hide;oBox.el.Quit.title="Fermer [Ech]";oBox.el.Quit.styleFloat="rigth";oBox.el.Html.className="jaria_boxcontenu";oBox.el.Html.innerHTML=oText.encode(oBox.html);oBox.el.Bts.className="jaria_boxboutons";oBox.el.BtOk.className="jaria_button";oBox.el.BtOk.style.width="50px";oBox.el.BtOk.innerHTML="Ok";oBox.el.BtOk.onclick=oBox.hide;oBox.el.appendChild(oBox.el.Head);oBox.el.Head.appendChild(oBox.el.Title);if(oBox.quit){oBox.el.Head.appendChild(oBox.el.Quit);}oBox.el.appendChild(oBox.el.Html);oBox.el.Bts.appendChild(oBox.el.BtOk);if(oBox.bts){oBox.el.appendChild(oBox.el.Bts);}oNav.body.appendChild(oBox.el);oEl.opacity(oBox.el,0);oEl.fader.plus(oBox.el);var txt=oBox.el.Title.innerHTML;var pts="";oBox.el.Title.style.width=oText.toPx(oBox.el.Title.offsetWidth);while((oBox.el.Title.offsetWidth+oBox.el.Quit.offsetWidth)>(oBox.el.offsetWidth-6)){txt=txt.substr(0,txt.length-5);pts="...";oBox.el.Title.style.width=oText.toPx(parseFloat(oBox.el.Title.style.width)-10);if(txt.length<=50){break;}}oBox.el.Title.innerHTML=txt+pts;if(wType=="confirm"){oBox.el.BtNo=oEl.create("button");oBox.el.Spa=oEl.create("span");oBox.el.BtNo.onclick=oBox.hide;oBox.el.BtOk.innerHTML="Oui";oBox.el.BtOk.onclick=function(){oBox.el.Bts.innerHTML="<img src='"+_img+"loadimg.gif' />";oBox.valid();};oBox.el.BtNo.className="jaria_button";oBox.el.BtNo.style.width="50px";oBox.el.BtNo.innerHTML="Non";oBox.el.BtNo.onclick=function(){oBox.hide();oBox.annul();};oBox.el.Spa.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;";oBox.el.Bts.appendChild(oBox.el.Spa);oBox.el.Bts.appendChild(oBox.el.BtNo);}if(oBox.status){oBox.el.status=oEl.create("div");oBox.el.status.className="jaria_boxstatus";if(oEl.getstyleclass(oBox.el,"borderColor")!=undefined){oBox.el.status.style.borderTop="1px solid "+oEl.getstyleclass(oBox.el,"borderColor");}oBox.el.status.innerHTML="&nbsp;";oBox.el.status.title="Redimensionner";oEl.addclass(oBox.el.Html,"jaria_scroll");oBox.el.status.onmousedown=oBox.ResizeStart;oBox.el.status.onmouseup=oBox.ResizeStop;document.onmouseup=oBox.ResizeStop;oNav.lock.el.onmouseup=oBox.ResizeStop;oBox.el.Html.onmouseup=oBox.ResizeStop;oBox.el.Bts.onmouseup=oBox.ResizeStop;oBox.el.posStartX=null;oBox.el.posStartY=null;oBox.el.Html.startX=oBox.el.Html.offsetWidth;oBox.el.Html.startY=oBox.el.Html.offsetHeight;oBox.el.appendChild(oBox.el.status);}oBox.timer=window.setTimeout("oBox.scroll()",100);if(oBox.focus){oBox.el.BtOk.focus();}};		this.scroll=function(){window.scrollBy(0,1);window.clearTimeout(oBox.timer);oNav.scroll();}
		this.hide=function(){oNav.lock.hide();oBox.type=1;oBox.exist=0;oBox.html="";oBox.title="";oBox.posX=0;oBox.posY=0;oBox.width=null;oBox.ico=1;oBox.bts=1;oBox.quit=1;oBox.status=false;oBox.focus=1;oBox.lineheight=15;oBox.color=null;oBox.backColor=null;oBox.backImage=null;oText.select(true);oEl.title.hide();try{oNav.body.removeChild(oBox.el);}catch(e){}};		this.getType=function(){switch(oBox.type){case 1:return"info";case 2:return"confirm";case 3:return"alerte";case 4:return"erreur";default:return"";}};
		this.drag=function(evt){oEl.drag.opacity=65;oEl.drag.start(oBox.el,evt);};
    	this.resizeY=function(height){if(oBox.status){oBox.el.Html.style.height=oText.toPx(height);oBox.el.style.height=oText.toPx(oBox.el.Head.offsetHeight+oBox.el.Html.offsetHeight+oBox.el.Bts.offsetHeight+oBox.el.status.offsetHeight);}};
		this.resizeX=function(width){if(oBox.status){oBox.el.Html.style.width=oText.toPx(width);oBox.el.style.width=oText.toPx(oBox.el.Html.offsetWidth);}};
    	this.ResizeStart=function(){function move(){try{var height=parseInt(oBox.el.Html.startY)+parseInt(oNav.mouse.Y)-oNav.scrollY-oBox.el.posStartY;if(typeof(height)=="number"&&height>=30){oBox.el.Html.style.height=oText.toPx(height);oBox.el.style.height=oText.toPx(oBox.el.Head.offsetHeight+oBox.el.Html.offsetHeight+oBox.el.Bts.offsetHeight+oBox.el.status.offsetHeight);}var width=parseInt(oBox.el.Html.startX)+parseInt(oNav.mouse.X)-oNav.scrollX-oBox.el.posStartX;if(typeof(width)=="number"&&width>=oBox.width){oBox.el.Html.style.width=oText.toPx(width);oBox.el.style.width=oText.toPx(oBox.el.Html.offsetWidth);}}catch(e){oBox.ResizeStop();}}if(!oBox.exist){return false;}oEl.opacity(oBox.el,75);oText.select(false);if(oBox.el.posStartY==null){oBox.el.posStartY=parseInt(oNav.mouse.Y)-oNav.scrollY;oBox.el.posStartX=parseInt(oNav.mouse.X)-oNav.scrollX;}if(oEl.getstyleclass(oBox.el.status,"cursor")!=undefined){oNav.lock.el.style.cursor=oEl.getstyleclass(oBox.el.status,"cursor");oBox.el.style.cursor=oEl.getstyleclass(oBox.el.status,"cursor");}oBox.el.status.onmousemove=move;oNav.lock.el.onmousemove=move;oBox.el.Html.onmousemove=move;};
		this.ResizeStop=function(){oEl.opacity(oBox.el,100);oBox.el.posStartX=null;oBox.el.posStartY=null;document.onmouseup=null;oNav.lock.el.style.cursor="default";oBox.el.style.cursor="default";oText.select(true);oBox.el.Html.startY=oBox.el.Html.offsetHeight;oBox.el.Html.startX=oBox.el.Html.offsetWidth;oBox.el.status.onmousemove=function(){return false;};oNav.lock.el.onmousemove=function(){return false;};oBox.el.Html.onmousemove=function(){return false;};};
		this.annul=function(){};
		this.valid=function(){};		
	}	
	function Cal(){
		this.date=null;this.el=undefined;this.months=null;this.days=null;this.daysletter=null;this.day=null;this.month=null;this.year=null;this.id=null;this.left=null;this.top=null;this.exist=false;
		this.drag=function(evt){oEl.drag.opacity=65;oEl.drag.start(oCal.el,evt);};		
		this.daymonth=function(m,y){var day=28;if(oCal.bissextile(parseInt(y))){day=29;};var tab=new Array(31,dayfeb,31,30,31,30,31,31,30,31,30,31);return parseInt(tab[parseInt(m)-1]);};
		this.addday=function(d,inc){if(!oCal.isdate(d)){return"";}if(isNaN(inc)){return d;}var tab=d.toString().split("/");var newdate=new Date(parseFloat(tab[2]),parseFloat(tab[1])-1,parseFloat(tab[0]));var d=new Date(newdate.getTime()+(1000*60*60*24*parseInt(inc)));var day=d.getDate();var m=d.getMonth()+1;var y=d.getFullYear();d=((day<10)?"0"+day:day)+"/"+((m<10)?"0"+m:m)+"/"+((y<1900)?1900:y);return d;};
		this.addmonth=function(d,inc){if(!oCal.isdate(d)){return"";}if(isNaN(inc)){return d;}var tab=d.toString().split("/");var newdate=new Date(parseFloat(tab[2]),parseFloat(tab[1])+inc-1,parseFloat(tab[0]));var y=newdate.getFullYear();var m=newdate.getMonth()+1;var day=newdate.getDate();d=((day<10)?"0"+day:day)+"/"+((m<10)?"0"+m:m)+"/"+((y<1900)?1900:y);return d;};
		this.addyear=function(d,inc){if(!oCal.isdate(d)){return"";}var tab=d.toString().split("/");var newdate=new Date(parseFloat(tab[2])+inc,parseFloat(tab[1])-1,parseFloat(tab[0]));var y=newdate.getFullYear();var m=newdate.getMonth()+1;var day=newdate.getDate();d=((day<10)?"0"+day:day)+"/"+((m<10)?"0"+m:m)+"/"+((y<1900)?1900:y);return d;};
		this.datediff=function(du,au){if(arguments.length<2){return 0;}if(!oCal.isdate(du)||!oCal.isdate(au)){return 0;}var tabdu=du.split("/");var tabau=au.split("/");var jours=1000*60*60*24;var datedu=new Date();var dateau=new Date();datedu.setDate(parseFloat(tabdu[0]));datedu.setMonth(parseFloat(tabdu[1])-1);datedu.setFullYear(parseFloat(tabdu[2]));dateau.setDate(parseFloat(tabau[0]));dateau.setMonth(parseFloat(tabau[1])-1);dateau.setFullYear(parseFloat(tabau[2]));return(parseInt(dateau.getTime()/jours)-parseInt(datedu.getTime()/jours));};
		this.bissextile=function(y){if(isNaN(y)){return false;}if(y%100==0){if(y%400==0){return true;}else{return false;}}else{if(y%4==0){return true;}else{return false;}}};
		this.isdate=function(d){if(!oText.test(d)){return false;}if(!(d.search(/^(\d\d?)(\/|-|\.)(\d\d?)(\/|-|\.)(\d\d)(\d\d)?$/)!=-1)){return false;}var tab=d.split("/");if(tab.length!=3){return false;};for(var i=0;i<3;i++){if(isNaN(tab[i])){return false;}if(i==0&&parseInt(tab[i])>31){return false;}if(i==1&&parseInt(tab[i])>12){return false;}if(i==2&&(parseInt(tab[i])<1900||tab[i].length>4)){return false;}}if((parseInt(tab[0])>30)&&(parseInt(tab[1])==4||parseInt(tab[1])==6||parseInt(tab[1])==9||parseInt(tab[1])==11)){return false;}var day=28;if(oCal.bissextile(parseInt(tab[2]))){day=29;}if(parseInt(tab[0])>day&&parseInt(tab[1])==2){return false;};return true;};
		this.format=function(){if(arguments.lenth<2){oBox.error("Il manque des arguments à la function oCal.format()!");return"";}var d=arguments[0].toString();var format=arguments[1].toString().toUpperCase();if(!oCal.isdate(d)||(!isNaN(d)&&d.length!=8)){oBox.error("Le format de d <kbd>"+d+"</kbd> passé à la fonction oCal.format() est inconnue!");return"";}if(oCal.isdate(d)){var tab=d.split("/");var day=tab[0];var m=tab[1];var y=tab[2];}else if(!isNaN(d)&&d.length==8){var day=d.substr(6,2);var m=d.substr(4,2);var y=d.substr(0,4);}format=(format.indexOf("AAAA")!=-1)?format.replace("AAAA",y):format.replace("AA",y.substr(2,2));format=format.replace("MM",m);format=format.replace("JJ",day);return format;};
		this.hide=function(){try{oNav.body.removeChild(oCal.el);oNav.timer=window.setTimeout("oNav.contextmenu(true, oCal.el)",2000);oCal.exist=false;return false;}catch(e){}};
		this.valid=function(){};
		this.set=function(){var day=parseInt(this.innerHTML);var m=parseInt(oCal.el.selmonth.value);var y=parseInt(oCal.el.selyear.value);var id=oCal.el.id.substr(9,oCal.el.id.length);if(day.toString().length==1){day=("0"+day).toString();}m=oText.daymonth(m);var d=(day+"/"+m+"/"+y).toString();if(oText.trim(oEl.get(id).value)!=d){oEl.get(id).value=d;}oCal.hide();oCal.valid();};
		this.get=function(){var d=new Date();var day=parseInt(1);oCal.month=parseInt(oCal.el.selmonth.value)-1;oCal.year=parseInt(oCal.el.selyear.value);oCal.date.setDate(day);oCal.date.setMonth(oCal.month);oCal.date.setFullYear(oCal.year);oCal.day=d.getDate();if((oCal.month!=d.getMonth())||(oCal.year!=d.getFullYear())){oCal.day=-1;}oCal.left=parseFloat(oCal.el.style.left);oCal.top=parseFloat(oCal.el.style.top);oCal.show(oCal.el.id);};
		this.getdate=function(id){oCal.date=new Date();if(oCal.day==null){oCal.day=oCal.date.getDate();}if(oCal.isdate(oEl.get(id).value)){var d=(oEl.get(id).value).toString();var tab=d.split("/");oCal.date.setDate(parseFloat(tab[0]));oCal.date.setMonth(parseFloat(tab[1])-1);oCal.date.setFullYear(parseFloat(tab[2]));oCal.day=oCal.date.getDate();}oCal.month=oCal.date.getMonth();oCal.year=oCal.date.getFullYear();if((oCal.month!=oCal.date.getMonth())||(oCal.year!=oCal.date.getFullYear())){oCal.day=-1;}};
		this.show = function(id){var div,tb,tbo,tr,td;oCal.hide();oText.select(false);oCal.days=new Array("D","L","M","M","J","V","S");oCal.daysletter=new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");oCal.months=new Array("Janvier","Fevrier","Mars","Avril","Mai","Juin","Juillet","Aout","Septembre","Octobre","Novembre","Decembre");oCal.el=oEl.create("div");oCal.el.id="JARIA_CAL"+id.replace("JARIA_CAL","");oCal.el.className="jaria_cal_box";if(oCal.id!=oCal.el.id){oCal.left=null;oCal.top=null;oCal.day=null;oCal.getdate(id);oCal.id=oCal.el.id;}var thisM=new Date(oCal.year,oCal.month,1);var nextM=new Date(oCal.year,(oCal.month+1),1);oCal.firstweek=thisM.getDay();oCal.daysthismonth=Math.round((nextM.getTime()-thisM.getTime())/(1000*60*60*24));div=oEl.create("div");div.className="jaria_cal_head";div.onmousedown=oCal.drag;div.title="clic droit ou [esc] pour quitter";div.oncontextmenu=oCal.hide;oCal.el.appendChild(div);div=oEl.create("div");div.style.width="142px";div.style.paddingTop="2px";div.style.height="25px";var sel=oEl.create("div");var br=oEl.create("br");var input=oEl.create("input");var sdiv=oEl.create("div");var hid=oEl.create("input");div.style.textAlign="center";sel.style.paddingLeft="12px";sel.style.width="55px";if(oNav.msie){sel.style.styleFloat="left";}else{sel.style.cssFloat="left";}input.className="jaria_listlock";input.style.width="50px";input.style.paddingRight="3px";input.value=oCal.months[oCal.month].substr(0,4);input.readOnly="readonly";input.onchange=oCal.get;input.onclick=function(){var ombre=(oNav.msie)?false:true;oSel.get(this,ombre);};sdiv.className="jaria_liste";sdiv.style.height="100px";hid.type="hidden";hid.value=(oCal.month+1).toString();for(var i=1;i<=12;i++){var opt=oEl.create("div");opt.title=i.toString();opt.onclick=function(){oSel.set(this,this.title);oCal.get();};opt.innerHTML=oCal.months[i-1].substr(0,4);sdiv.appendChild(opt);}sel.appendChild(input);sel.appendChild(br);sel.appendChild(sdiv);sel.appendChild(hid);div.appendChild(sel);oCal.el.selmonth=hid;var sel=oEl.create("div");var br=oEl.create("br");var input=oEl.create("input");var sdiv=oEl.create("div");var hid=oEl.create("input");div.style.textAlign="left";sel.style.paddingLeft="12px";sel.style.width="55px";if(oNav.msie){sel.style.styleFloat="left";}else{sel.style.cssFloat="left";}input.className="jaria_listlock";input.style.width="50px";input.style.paddingRight="3px";input.value=oCal.year.toString();input.readOnly="readonly";input.onclick=function(){var ombre=(oNav.msie)?false:true;oSel.get(this,ombre);};sdiv.className="jaria_liste";sdiv.style.height="100px";hid.type="hidden";hid.value=oCal.year.toString();var d=new Date();for(var i=(d.getFullYear()-50);i<(d.getFullYear()+10);i++){var opt=oEl.create("div");opt.title=i.toString();opt.onclick=function(){oSel.set(this,this.title);oCal.get();};opt.innerHTML=i.toString();sdiv.appendChild(opt);}sel.appendChild(input);sel.appendChild(br);sel.appendChild(sdiv);sel.appendChild(hid);div.appendChild(sel);oCal.el.selyear=hid;oCal.el.appendChild(div);div=oEl.create("div");div.style.width="136px";div.align="right";div.style.padding="3px";tb=oEl.create("table");tb.className="jaria_cal_tb";tbo=oEl.create("tbody");tr=oEl.create("tr");td=oEl.create("td");td.colSpan=7;td.className="jaria_cal_tdnoday";td.innerHTML=oCal.months[oCal.month]+" "+oCal.year;tr.appendChild(td);tbo.appendChild(tr);tr=oEl.create("tr");for(var i=0;i<oCal.days.length;i++){td=oEl.create("td");td.className="jaria_cal_tdday";td.innerHTML=oCal.days[i].toString();td.title=oCal.daysletter[i].toString();tr.appendChild(td);}tbo.appendChild(tr);tr=oEl.create("tr");for(var weekday=0;weekday<oCal.firstweek;weekday++){td=oEl.create("td");td.className="jaria_cal_tdnoday";td.innerHTML="&nbsp;";tr.appendChild(td);}weekday=oCal.firstweek;for(var countday=1;countday<=oCal.daysthismonth;countday++){weekday%=7;if(weekday==0&&countday>1){tbo.appendChild(tr);tr=oEl.create("tr");}td=oEl.create("td");td.innerHTML=countday.toString();td.onclick=oCal.set;if(oCal.day==countday){td.className="jaria_cal_tdday";td.onmouseover=function(){this.className="jaria_cal_tddayov";};td.onmouseout=function(){this.className="jaria_cal_tdday";};}else{td.className="jaria_cal_tdoday";td.onmouseover=function(){this.className="jaria_cal_tdodayov";};td.onmouseout=function(){this.className="jaria_cal_tdoday";};}tr.appendChild(td);weekday++;}for(var i=weekday;i<7;i++){td=oEl.create("td");td.className="jaria_cal_tdnoday";td.innerHTML="&nbsp;";tr.appendChild(td);}tbo.appendChild(tr);tb.appendChild(tbo);div.appendChild(tb);oCal.el.appendChild(div);oNav.body.appendChild(oCal.el);oNav.contextmenu(false,oCal.el);oCal.el.style.left=(oCal.left==null)?oText.toPx(oNav.mouse.X+oNav.scrollX):oText.toPx(oCal.left);oCal.el.style.top=(oCal.top==null)?oText.toPx(oNav.mouse.Y+oNav.scrollY):oText.toPx(oCal.top);oCal.exist=true;oEl.setinscreen(oCal.el);};}
	function Color(){
		this.input=[];this.btcolor=[];this.el=undefined;this.exist=false;	
		this.drag=function(evt){oEl.drag.opacity=65;oEl.drag.start(oColor.el,evt);};	
		this.iscolor=function(c){if(!oText.test(c)){return false;}if(c.toString().length!=7){return false;}if(c.toString().substr(0,1)!="#"){return false;}var car=c.toString().substr(1,7).toUpperCase();for(var i=0;i<car.length;i++){if(isNaN(car.substr(i,1))){if(car.substr(i,1)!="A"&&car.substr(i,1)!="B"&&car.substr(i,1)!="C"&&car.substr(i,1)!="D"&&car.substr(i,1)!="E"&&car.substr(i,1)!="F"){return false;}}}return true;};
		this.navcolor=function(c){if(oNav.msie && oNav.version < 9){return c;}else{return oColor.rgb_hexa(c);}};
		this.rgb_hexa=function(c){var cars="0123456789ABCDEF";var hexa="";var tab=c.split(",");var R=new String(tab[0]);R=R.split("(");tab[0]=R[1];var B=new String(tab[2]);tab[2]=B.replace(")","");for(var i=0;i<tab.length;i++){var N=parseInt(tab[i]);hexa+=cars.charAt(N>>4)+cars.charAt(N&15);}hexa=oText.upper("#"+hexa);return hexa;};
		this.hexa_rgb=function(c){var y=0;var tab=new Array();for(var i=0;i<7;i++){tab[i]=c.charAt(i);var car=tab[i];if(car=="#"){y++;}if(car=="A"){tab[i]=10;}if(car=="B"){tab[i]=11;}if(car=="C"){tab[i]=12;}if(car=="D"){tab[i]=13;}if(car=="E"){tab[i]=14;}if(car=="F"){tab[i]=15;}}var rgb=((tab[0+y]*16)- -tab[1+y]);rgb+=","+((tab[2+y]*16)- -tab[3+y]);rgb+=","+((tab[4+y]*16)- -tab[5+y]);return rgb;}
		this.hide=function(){try{oNav.body.removeChild(oColor.el);if(!oBox.exist){oNav.lock.hide();}oNav.timer=window.setTimeout("oNav.contextmenu(true, oColor.el)",2000);return false;}catch(e){}oColor.exist=false;};
		this.set=function(){if(arguments.length==0){return false;}if(!oEl.test(arguments[0])){return false;}if(!oColor.iscolor(arguments[1])){return false;}var p=oEl.get(arguments[0]).parentNode;oEl.get(arguments[0]).value=arguments[1];for(var i=0;i<p.childNodes.length;i++){if(p.childNodes[i].nodeType==1){if(oText.lower(p.childNodes[i].tagName)=="div"){var div=p.childNodes[i];for(var y=0;y<div.childNodes.length;y++){if(div.childNodes[y].nodeType==1){if(oText.lower(div.childNodes[y].className)=="jaria_btscolor"){div.childNodes[y].style.backgroundColor=arguments[1];break;}}}}}}};
		this.getindex=function(){var el=arguments[0];if(!oEl.isobject(el)){return 0;}if(el.tagName.toLowerCase()!="input"){var p=el.parentNode;el=oEl.gettags("input",p)[0];}for(var i=0;i<oColor.input.length;i++){if(el==oColor.input[i]){break;}}if(!oEl.isobject(oColor.input[i])){oColor.input.push(el);return oColor.input.length-1;}return i;};
		this.show=function(el){if(!oEl.isobject(el)){return false;}oNav.lock.show();oNav.contextmenu(false);oColor.exist=true;var tab=new Array();var p,div,sdiv,img,tb,tbo,tr,td;tab[0]=new Array("#000000","#000000","#003300","#006600","#009900","#00CC00","#00FF00","#330000","#333300","#336600","#339900","#33CC00","#33FF00","#660000","#663300","#666600","#669900","#66CC00","#66FF00");tab[1]=new Array("#333333","#000033","#003333","#006633","#009933","#00CC33","#00FF33","#330033","#333333","#336633","#339933","#33CC33","#33FF33","#660033","#663333","#666633","#669933","#66CC33","#66FF33");tab[2]=new Array("#666666","#000066","#003366","#006666","#009966","#00CC66","#00FF66","#330066","#333366","#336666","#339966","#33CC66","#33FF66","#660066","#663366","#666666","#669966","#66CC66","#66FF66");tab[3]=new Array("#999999","#000099","#003399","#006699","#009999","#00CC99","#00FF99","#330099","#333399","#336699","#339999","#33CC99","#33FF99","#660099","#663399","#666699","#669999","#66CC99","#66FF99");tab[4]=new Array("#CCCCCC","#0000CC","#0033CC","#0066CC","#0099CC","#00CCCC","#00FFCC","#3300CC","#3333CC","#3366CC","#3399CC","#33CCCC","#33FFCC","#6600CC","#6633CC","#6666CC","#6699CC","#66CCCC","#66FFCC");tab[5]=new Array("#FFFFFF","#0000FF","#0033FF","#0066FF","#0099FF","#00CCFF","#00FFFF","#3300FF","#3333FF","#3366FF","#3399FF","#33CCFF","#33FFFF","#6600FF","#6633FF","#6666FF","#6699FF","#66CCFF","#66FFFF");tab[6]=new Array("#FF0000","#990000","#993300","#996600","#999900","#99CC00","#99FF00","#CC0000","#CC3300","#CC6600","#CC9900","#CCCC00","#CCFF00","#FF0000","#FF3300","#FF6600","#FF9900","#FFCC00","#FFFF00");tab[7]=new Array("#00FF00","#990033","#993333","#996633","#999933","#99CC33","#99FF33","#CC0033","#CC3333","#CC6633","#CC9933","#CCCC33","#CCFF33","#FF0033","#FF3333","#FF6633","#FF9933","#FFCC33","#FFFF33");tab[8]=new Array("#0000FF","#990066","#993366","#996666","#999966","#99CC66","#99FF66","#CC0066","#CC3366","#CC6666","#CC9966","#CCCC66","#CCFF66","#FF0066","#FF3366","#FF6666","#FF9966","#FFCC66","#FFFF66");tab[9]=new Array("#FFFF00","#990099","#993399","#996699","#999999","#99CC99","#99FF99","#CC0099","#CC3399","#CC6699","#CC9999","#CCCC99","#CCFF99","#FF0099","#FF3399","#FF6699","#FF9999","#FFCC99","#FFFF99");tab[10]=new Array("#00FFFF","#9900CC","#9933CC","#9966CC","#9999CC","#99CCCC","#99FFCC","#CC00CC","#CC33CC","#CC66CC","#CC99CC","#CCCCCC","#CCFFCC","#FF00CC","#FF33CC","#FF66CC","#FF99CC","#FFCCCC","#FFFFCC");tab[11]=new Array("#FF00FF","#9900FF","#9933FF","#9966FF","#9999FF","#99CCFF","#99FFFF","#CC00FF","#CC33FF","#CC66FF","#CC99FF","#CCCCFF","#CCFFFF","#FF00FF","#FF33FF","#FF66FF","#FF99FF","#FFCCFF","#FFFFFF");var index=oColor.getindex(el);var p=el.parentNode;oColor.btcolor[index]=oEl.getclass("jaria_btscolor",p,true)[0];oColor.input[index].onkeyup=function(){if(this.value!=""&&this.value.substr(0,1)!="#"){this.value="#"+this.value.substr(0,7);}if(!oColor.iscolor(this.value)){oColor.btcolor[index].style.backgroundColor="";}else{oColor.btcolor[index].style.backgroundColor=this.value;}};oColor.el=oEl.create("div");oColor.el.className="jaria_colorbox";div=oEl.create("div");div.className="jaria_colorhead";div.onmousedown=oColor.drag;div.title="clic droit ou [esc] pour quitter";div.oncontextmenu=oColor.hide;oColor.el.appendChild(div);sdiv=oEl.create("div");sdiv.className="jaria_colorplus";sdiv.title="Afficher plus de couleurs";sdiv.onclick=function(){};div.appendChild(sdiv);tb=oEl.create("table");oColor.el.appendChild(tb);tbo=oEl.create("tbody");tb.appendChild(tbo);for(var i=0;i<tab.length;i++){tr=oEl.create("tr");for(var y=0;y<tab[i].length;y++){td=oEl.create("td");sdiv=oEl.create("div");sdiv.className="jaria_colorcase";sdiv.style.backgroundColor=tab[i][y];sdiv.innerHTML="&nbsp;";sdiv.onmouseout=function(){this.parentNode.style.border="1px solid #F9F8F7";};sdiv.onmouseover=function(){oColor.el.lastChild.firstChild.style.backgroundColor=this.style.backgroundColor;oColor.el.lastChild.lastChild.innerHTML=oColor.navcolor(this.style.backgroundColor);this.parentNode.style.border="1px solid #069";};sdiv.onclick=function(){oColor.btcolor[index].style.backgroundColor=oColor.navcolor(oText.upper(this.style.backgroundColor));oColor.input[index].value=oColor.navcolor(oText.upper(this.style.backgroundColor));oColor.valid();oColor.hide();};td.appendChild(sdiv);td.style.border="1px solid #F9F8F7";tr.appendChild(td);}tbo.appendChild(tr);}div=oEl.create("div");div.className="jaria_colortext";div.style.paddingLeft="3px";sdiv=oEl.create("div");sdiv.innerHTML="&nbsp;";sdiv.style.width="14px";sdiv.style.styleFloat="left";div.appendChild(sdiv);sdiv=oEl.create("div");sdiv.innerHTML="&nbsp;";div.appendChild(sdiv);oColor.el.appendChild(div);oNav.body.appendChild(oColor.el);oColor.el.style.left=oText.toPx(oNav.mouse.X+oNav.scrollX);oColor.el.style.top=oText.toPx(oNav.mouse.Y+oNav.scrollY);oEl.setinscreen(oColor.el);};
		this.valid=function(){return false;};
	}
	function Sel(){
		this.el=undefined;this.backgrounColor="#fff";
		this.init=function(){var ombre=true;if(typeof(arguments[0])=="boolean"){ombre=arguments[0];}var fc=[];var sels=oEl.getclass("jaria_listlock");oSel.backgrounColor=(sels.length>0)?oEl.getstyleclass(sels[i],"backgrounColor"):"#fff";for(var i=0;i<sels.length;i++){if(typeof(sels[i].onclick)!="function"){sels[i].onclick=function(){oSel.get(this,ombre);};}if(typeof(sels[i].onfocus)!="function"){sels[i].onfocus=oSel.hide;}if(typeof(sels[i].onchange)=="function"){fc[i]=sels[i].onchange;}if(oNav.msie){var w=sels[i].offsetWidth;w-=parseFloat(oEl.getstyleclass(sels[i],"paddingRight"));w-=parseFloat(oEl.getstyleclass(sels[0],"borderWidth"));sels[i].style.backgroundPosition=oText.toPx(w);}}var lists=oEl.getclass("jaria_liste");for(var i=0;i<lists.length;i++){var opts=lists[i].childNodes;for(var y=0;y<opts.length;y++){if(opts[y].nodeType==1){oEl.addclass(opts[y],"jaria_sliste");if(typeof(opts[y].onclick)!="function"){if(oNav.msie&&oNav.version<8){opts[y].onclick=function(){oSel.set(this,this.title);};}else{var t=opts[y].title;opts[y].setAttribute("onclick","oSel.set(this, '"+t+"');");opts[y].removeAttribute("title");}}oNav.addevent("onclick",fc[i],opts[y]);oNav.delevent("onchange",fc[i],sels[i]);}}}var divs=oEl.getclass("jaria_mliste");for(var i=0;i<divs.length;i++){if(oNav.msie){divs[i].style.scrollbarFaceColor="#bcccf3";divs[i].style.scrollbarShadowColor="#afc5f4";divs[i].style.scrollbarHighlightColor="#e6eefc";divs[i].style.scrollbar3dlightColor="#afc5f4";divs[i].style.scrollbarDarkshadowColor="#fff";divs[i].style.scrollbarTrackColor="#fff";divs[i].style.scrollbarArrowColor="#4d6185";}var opts=divs[i].childNodes;for(var y=0;y<opts.length;y++){if(opts[y].nodeType==1){oEl.addclass(opts[y],"jaria_smliste");if(typeof(opts[y].onclick)!="function"){if(oNav.msie){opts[y].onclick=function(){oSel.setm(this,this.title);};}else{var t=opts[y].title;opts[y].setAttribute("onclick","oSel.setm(this, '"+t+"');");opts[y].removeAttribute("title");}}}}}}; 
		this.hide=function(){var opts=oEl.getclass("jaria_liste");for(var i=0;i<opts.length;i++){oEl.visible(opts[i],false);}var ombre=oEl.getclass("jaria_ombre");for(var i=0;i<ombre.length;i++){ombre[i].parentNode.removeChild(ombre[i]);}var ombre=oEl.getclass("jaria_ombre");};
		this.mouseover=function(event){var el=(!oNav.msie)?event.target:window.event.srcElement;var nodes=el.parentNode.childNodes;for(var i=0;i<nodes.length;i++){if(nodes[i].nodeType==1){if(nodes[i].className=="jaria_slisteover"){nodes[i].className="jaria_sliste";}}}if(el.className=="jaria_sliste"){el.className="jaria_slisteover";}};
		this.mouseout=function(event){var el=(!oNav.msie)?event.target:window.event.srcElement;if(el.className=="jaria_slisteover"){el.className="jaria_sliste";}};
		this.get=function(){if(arguments.length==0){return false}var node=arguments[0];var ombre=true;if(!oEl.isobject(arguments[1])&&typeof(arguments[1])=="boolean"){ombre=arguments[1];}var e=(oEl.isobject(arguments[1]))?arguments[1]:undefined;var div=oEl.getclass("jaria_liste",node.parentNode)[0];if(oSel.getcountoptions(div)==0){return false;}var sel=oEl.getclass("jaria_listlock",node.parentNode)[0];var opts=div.childNodes;div.style.width=oText.toPx(parseFloat(sel.style.width)+21);oSel.el=sel;if(!oEl.isobject(e)){oSel.hide();if(oEl.isvisible(div)){return false;}}var z=0;var y=0;for(var i=0;i<opts.length;i++){if(opts[i].nodeType==1){opts[i].className="jaria_sliste";if(opts[i].innerHTML==sel.value){opts[i].className="jaria_slisteover";opts[i].parentNode.scrollTop=z*15;y=i;}z++;}}if(oEl.isobject(e)&&oEl.isvisible(div)){try{if(e.keyCode==40){y++;while(opts[y].nodeType!=1&&y<opts.length){y++;}}else{y--;while(opts[y].nodeType!=1&&y>=0){y--;}}for(var i=0;i<opts.length;i++){if(opts[i].nodeType==1){opts[i].className="jaria_sliste";}}opts[y].className="jaria_slisteover";i=y;var value=(oSel.getoptionvalue(opts[i])).toString().replace(/"/g,"");oSel.set(opts[y],value,e);opts[y].parentNode.scrollTop=y*3;}catch(E){}return false;}else{oNav.addevent("onmouseover",oSel.mouseover);oNav.addevent("onmouseout",oSel.mouseout);if(div.style.height==""){this.height=parseInt(oSel.getcountoptions(div)*16);if(this.height>200){this.height=200;}div.style.height=oText.toPx(this.height);}oSel.resize(div);oEl.visible(div,true);oEl.getoffset(div, "left");if(ombre){oSel.ombre(div);}if(oNav.msie){div.style.scrollbarFaceColor="#bcccf3";div.style.scrollbarShadowColor="#afc5f4";div.style.scrollbarHighlightColor="#e6eefc";div.style.scrollbar3dlightColor="#afc5f4";div.style.scrollbarDarkshadowColor="#fff";div.style.scrollbarTrackColor="#fff";div.style.scrollbarArrowColor="#4d6185";}}};
		this.set=function(){if(arguments.length<2){return false;}var opt=arguments[0];var value=arguments[1];var e=(arguments.length==3)?arguments[2]:undefined;var parent=opt.parentNode.parentNode;var input=oEl.gettags("input",parent)[0];var hid=oEl.gettags("input",parent)[1];input.value=opt.innerHTML;input.style.backgroundColor=opt.style.backgroundColor;input.style.color=opt.style.color;hid.value=value;if(e==undefined){oSel.hide();}};
		this.getcountoptions=function(parent){var nb=0;for(var i=0;i<parent.childNodes.length;i++){if(parent.childNodes[i].nodeType==1){nb++;}}return nb;};
		this.getindex=function(id){var parent=oEl.get(id).parentNode;var y=0;var value=(oNav.msie)?parent.childNodes[0].value:parent.childNodes[1].value;var nodes=(oNav.msie)?parent.childNodes[2].childNodes:parent.childNodes[4].childNodes;for(var i=0;i<nodes.length;i++){if(nodes[i].nodeType==1){if(nodes[i].innerHTML==value){return y;}y++;}}return 0;};
		this.setindex=function(id,index){var parent=oEl.get(id).parentNode;var nodes=(oNav.msie)?parent.childNodes[2].childNodes:parent.childNodes[4].childNodes;var y=0;for(var i=0;i<nodes.length;i++){if(nodes[i].nodeType==1){if(y==index){var opt=oText.trim(nodes[i].innerHTML);oSel.set(nodes[i],opt);}y++;}}return 0;};
		this.gettext=function(id){var parent=oEl.get(id).parentNode;if(oNav.msie){var value=parent.childNodes[0].value;}else{var value=parent.childNodes[1].value;}return value.toString();};
		this.setbytext=function(id,value){var parent=oEl.get(id).parentNode;var nodes=(oNav.msie)?parent.childNodes[2].childNodes:parent.childNodes[4].childNodes;for(var i=0;i<nodes.length;i++){if(nodes[i].nodeType==1){var opt=oText.trim(nodes[i].innerHTML);if(oText.trim(value)==opt){value=oSel.getoptionvalue(nodes[i]);oSel.set(nodes[i],value);break;}}}};
		this.setbyvalue=function(){var el=(oEl.isobject(arguments[0]))?arguments[0]:oEl.get(arguments[0]);var opts=oEl.getclass("jaria_liste",el.parentNode)[0];opts=oEl.gettags("div",opts);for(var i=0;i<opts.length;i++){var opt=oSel.getoptionvalue(opts[i]);if(oText.trim(arguments[1])==opt){oSel.set(opts[i],opt);break;}}};
		this.getoptionvalue=function(opt){if(typeof(opt)!="object"){return"";}var attr=(opt.onclick).toString();if(attr==null){return"";}var tab=attr.split(";");tab=tab[0].split(",");if(tab.length!=2){return"";}tab=tab[1].split(")");attr=tab[0].replace(/'/g,"");attr=attr.replace(/"/g,"");if(oNav.msie&&oNav.version<8&&(oText.trim(attr)==this.title)){attr=oText.trim(opt.title);}return oText.trim(attr);};
		this.delalloptions=function(el,first){if(arguments.length<1){return false;}if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}el=oEl.get(el);}if(typeof(first)!="number"||parseFloat(first)<0){first=0;}var parent=el.parentNode;var node1=(oNav.msie)?parent.childNodes[0]:parent.childNodes[1];if(node1.className=="jaria_mliste"){var node2=node1;}else{node1.value="";node1.style.backgroundColor=oSel.backgrounColor;var node2=(oNav.msie)?parent.childNodes[2]:parent.childNodes[4];}for(var i=node2.childNodes.length-1;i>=first;i--){node2.removeChild(node2.childNodes[i]);}if(node2.childNodes.length>0){if(node1.className=="jaria_mliste"){oSel.set(node2.childNodes[0],oSel.getoptionvalue(node2.childNodes[0]));}else{oSel.setm(node2.childNodes[0],oSel.getoptionvalue(node2.childNodes[0]));}}};
		this.addoption=function(el,value,text,style,fc){if(arguments.length<3){return false;}if(!oEl.isobject(el)){if(!oEl.test(el)){return false;}el=oEl.get(el);}if(typeof(value)!="string"){value="";}if(typeof(text)!="string"){text="";}var parent=el.parentNode;var node1=(oNav.msie)?parent.childNodes[0]:parent.childNodes[1];var div=oEl.create("div");if(node1.className=="jaria_mliste"){var node2=node1;div.className="jaria_smliste";}else{var node2=(oNav.msie)?parent.childNodes[2]:parent.childNodes[4];div.className="jaria_sliste";}if(typeof(style)=="string"){var tab=(style).toString().split(";");for(var i=0;i<tab.length;i++){try{eval("div.style."+tab[i]);}catch(e){}}}if(oNav.msie){div.title=value;}div.innerHTML=text;if(node1.className=="jaria_mliste"){if(!oNav.msie){div.setAttribute("onclick","oSel.setm(this, '"+value+"');");}else{div.onclick=function(){oSel.setm(this,this.title);};}}else{if(!oNav.msie){div.setAttribute("onclick","oSel.set(this, '"+value+"');");}else{div.onclick=function(){oSel.set(this,this.title);};}}if(typeof(fc)=="function"){oNav.addevent("onclick",fc,div);}if(typeof(fc)=="string"){oNav.addevent("onclick",eval(fc),div);}node2.appendChild(div);};
		this.resize=function(node){var tab=[];if(node.className=="jaria_liste"){oEl.visible(node,true);var w=node.style.width;node.style.width=oText.toPx(oNav.screenX-node.offsetLeft);for(i=0;i<node.childNodes.length;i++){tab[i]=node.childNodes[i].offsetHeight;}node.style.width=w;for(i=0;i<node.childNodes.length;i++){if(node.childNodes[i].nodeType==1){while(parseInt(node.childNodes[i].offsetHeight)>tab[i]){node.style.width=oText.toPx(parseFloat(node.style.width)+5);}}}oEl.visible(node,false);}};
		this.ombre=function(el){div=oEl.create("div");div.className="jaria_ombre";div.style.width=oText.toPx(parseFloat(el.style.width)-5);div.style.height=oText.toPx(parseFloat(el.style.height)-5);oEl.opacity(div,30);div.style.left=oText.toPx(el.offsetLeft);el.parentNode.appendChild(div);};		this.checked=function(el){return(el.className=="jaria_smlistecheck")?true:false;};
		this.setm=function(){var el=arguments[0];var value=arguments[1];if(!oEl.isobject(arguments[0])||typeof(value)!="string"){return false;}var parent=el.parentNode;var opts=parent.childNodes;var hid=oEl.gettags("input",parent.parentNode)[0];hid.value="";if(oText.trim(value)=="*"){var cl=(oSel.checked(el))?"jaria_smliste":"jaria_smlistecheck";for(var i=0;i<opts.length;i++){if(opts[i].nodeType==1){opts[i].className=cl;if(oSel.getoptionvalue(opts[i])!="*"&&oSel.checked(opts[i])){hid.value+=(hid.value=="")?oSel.getoptionvalue(opts[i]):","+oSel.getoptionvalue(opts[i]);}}}return false;}el.className=(oSel.checked(el))?"jaria_smliste":"jaria_smlistecheck";for(var i=0;i<opts.length;i++){if(opts[i].nodeType==1){if(oSel.getoptionvalue(opts[i])=="*"){opts[i].className="jaria_smliste";}else{if(oSel.checked(opts[i])){value=(oSel.getoptionvalue(opts[i])).toString().replace(/"/g,"");hid.value+=(hid.value=="")?value:","+value;}}}}};
		this.setmbyvalue=function(){var el=(oEl.test(arguments[0]))?oEl.get(arguments[0]):undefined;var value=(oText.test(arguments[1]))?oText.trim(arguments[1]):"";if(!oEl.isobject(el)){return false;}var parent=el.parentNode;opts=oEl.gettags("div",oEl.gettags("div",parent)[0]);el.value=value;var tab=value.toString().split(",");for(var i=0;i<opts.length;i++){var val=oSel.getoptionvalue(opts[i]);opts[i].className="jaria_smliste";if(val!="*"){for(var y=0;y<tab.length;y++){if(oText.trim(tab[y])==oText.trim(val)){opts[i].className="jaria_smlistecheck";}}}}};
		this.search=function(el,evt,file,name){if(!oEl.test(el.id)){return false;}var parent=el.parentNode;function hide(){oEl.deltags("br",parent);oEl.deltags("div",parent);}var value=oText.trim((el.value).toString().toUpperCase());if(value==""){hide();return false;}oSel.el=el;var id=(el.id).toString();var height=0;oAjax.recept=function(xml){var br=oEl.create("br");var div=oEl.create("div");div.className="jaria_liste";div.style.width=oSel.el.style.width;parent.appendChild(br);oNav.addevent("onmouseover",oSel.mouseover);oNav.addevent("onmouseout",oSel.mouseout);var tags=oEl.gettags("RESULT",xml);switch(tags.length){case 0:break;case 1:oSel.el.value=oEl.gettags("RESULT",xml)[0].firstChild.nodeValue;break;default:for(var i=0;i<tags.length;i++){var sdiv=oEl.create("div");sdiv.className="jaria_sliste";sdiv.innerHTML=oEl.gettags("RESULT",xml)[i].firstChild.nodeValue;sdiv.onclick=function(){var parent=this.parentNode.parentNode;var input=oEl.gettags("input",parent)[0];input.value=this.innerHTML;oEl.deltags("br",parent);oEl.deltags("div",parent);};div.appendChild(sdiv);}parent.appendChild(div);var height=(i*16>200)?200:i*16;div.style.height=oText.toPx(height);oEl.visible(div,true);oSel.ombre(div);}oEl.delclass(oSel.el,"jaria_listesearch");};hide();if(evt.keyCode==13){return false;}oEl.addclass(oSel.el,"jaria_listesearch");oAjax.init();oAjax.adddata(name,value);oAjax.send(file,"POST");oAjax.onready("xml");};
	}
	function Ajax(){
		this.el=undefined;this.data="";this.timer=null;this.ready=false;this.timeout=10000;this.count=0;this.delai=50;
		this.create=function(){if(!oEl.isobject(oAjax.el)){try{oAjax.el=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{oAjax.el=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){oAjax.el=new XMLHttpRequest();}}}};
		this.del=function(){oAjax.el=undefined;this.data="";this.timer=null;this.ready=false;};
		this.adddata=function(n,v){if(oEl.isobject(oAjax.el)&&arguments.length==2){if(oAjax.data!=""){oAjax.data+="&";}oAjax.data+=oText.trim(n.toString())+"="+oText.trim(v.toString());}};
		this.init=function(){if(!oEl.isobject(oAjax.el)){oAjax.create();}oAjax.data="";oAjax.ready=false;};
		this.send=function(f,methode){if(!oAjax.el||oAjax.data==null||arguments.length==0||oAjax.ready==true){return false;}oAjax.el.open(methode.toString(),f.toString(),true);oAjax.el.setRequestHeader("Content-Type","application/x-www-form-urlencoded");oAjax.el.send(oAjax.data);};
		this.recept=function(){return false;};
		this.ontimeout=function(){oBox.hide();oBox.title="Délai dépassé!";oBox.html="Délai d'attente du host de "+(oAjax.timeout/1000).toString()+"s. dépassé<br>Veuillez réessayer";oBox.type=3;oBox.quit=0;oBox.show();oNav.addevent("onclick",function(){oAjax.count=0;},oBox.el.BtOk);};
		this.onready=function(){if(!oEl.isobject(oAjax.el)){return false;}var fc=null;var format="text";for(var i=0;i<arguments.length;i++){if(typeof(arguments[i])=="function"){fc=arguments[i];}if(typeof(arguments[i])=="string"&&(arguments[i]=="text"||arguments[i]=="xml")){format=arguments[i];}}oAjax.count+=oAjax.delai;if(oAjax.count>=oAjax.timeout){oAjax.ontimeout();oAjax.del();oAjax.count=0;return false;}if(oAjax.el.readyState==4&&!oAjax.ready){if(oAjax.el.status==200){oAjax.ready=true;window.clearTimeout(oAjax.timer);oAjax.timer=null;var res=(format=="text")?(oAjax.el.responseText).toString():oAjax.el.responseXML.documentElement;if(typeof(fc)=="function"){fc(res);}else{oAjax.recept(res);}oAjax.del();}}oAjax.timer=window.setTimeout("oAjax.onready("+fc+", '"+format+"')",oAjax.delai);};
	}
	oNav.loadimg("images/jaria/loading.gif","images/jaria/loadimg.gif","images/jaria/aniloading.gif","images/jaria/barrealertclose.gif","images/jaria/barreinterroclose.gif","images/jaria/barreerrorclose.gif","images/jaria/barreinfoclose.gif","images/jaria/barrediapoclose.gif","images/jaria/backalerte.gif","images/jaria/backconfirm.gif","images/jaria/backerreur.gif","images/jaria/backinfo.gif","images/jaria/backdiapo.gif","images/jaria/barreicoalerte.gif","images/jaria/barreicoinfo.gif","images/jaria/barreicoconfirm.gif","images/jaria/barreicoerreur.gif","images/jaria/barreicodiapo.gif","images/jaria/barrestatus.gif","images/jaria/move.gif","images/jaria/cal.gif","images/jaria/colorplus.gif","images/jaria/btplus.gif","images/jaria/btfleche.gif","images/jaria/btplay.gif","images/jaria/btstop.gif","images/jaria/button.gif","images/jaria/enter.gif","images/jaria/check.gif","images/jaria/bubblebas.gif","images/jaria/bubblehaut.gif","images/jaria/tabcenter.gif","images/jaria/tableft.gif","images/jaria/tabright.gif","images/jaria/cadre_previsu.gif","images/jaria/cadre_previsu_ombre.gif","images/jaria/cadre_previsu_texte_g.gif","images/jaria/cadre_previsu_texte_d.gif","images/jaria/cadre_previsu_texte_c.gif");


