<!--
// DHTML library loader v1.0
// written by Ardekadan (c) 2001
// released August 2001
var libDir,libVer="1.0";libDir=libDir?libDir+'/':'';
var blankImg=libDir+"blank.gif",OBJLIB,REDIR,AGENT=navigator.userAgent.toLowerCase(),DOM=document.getElementById?1:0,OP=AGENT.indexOf("opera")!=-1?1:0,OP5=OP&&DOM?1:0,OP6=AGENT.indexOf("opera 6");IE4=document.all&&!DOM&&!OP?1:0,IE5=document.all&&DOM&&!OP?1:0,NS4=AGENT.indexOf('mozilla')!=-1&&AGENT.indexOf('spoofer')==-1&&AGENT.indexOf('compatible')==-1&&parseInt(navigator.appVersion)==4?1:0,NS5=AGENT.indexOf("gecko")!=-1&&DOM?1:0,AOL=AGENT.indexOf('aol')!=-1?1:0,IE=IE4||IE5?1:0,NS=NS4||NS5?1:0,DHTML=IE||NS||OP5?1:0,VER="none",GEN=0,WRITABLE=!OP;
if(IE5){VER="ie5";GEN=5;}else if(NS5){VER="ns5";GEN=5;}else if(OP6){VER="op6";GEN=5;}else if(OP5){VER="op5";GEN=4;}else if(IE4){VER="ie4";GEN=4;}else if(NS4){VER="ns4";GEN=4;}
function includeLib(o){document.write('<script language="javascript" src="'+libDir+'lib'+(o?'obj_':'_')+VER+'.js"></script>');}
function includeObjLib(){includeLib(1);}
if(!DHTML){REDIR?location.replace(REDIR):alert('Cette page requiert un navigateur compatible JavaScript 1.2 !');}
else{includeLib(0);if(OBJLIB)includeLib(1);}
// LIBRARY BASE FUNCTIONS
window.windowOnLoad=new Array();window.Sin=new Array(360);window.Cos=new Array(360);window.kfArray=new MemArray();window.mmArray=new MemArray();window.objDHTML=new Array();window.hexa=Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");window.baseColors=new Array("#000000","#000080","#008000","#008080","#800000","#800080","#808000","#B0B0B0","#808080","#0000FF","#00FF00","#00FFFF","#FF0000","#FF00FF","#FFFF00","#FFFFFF");
var keepFocus=true,msgStat="",defStat="",kfPageX=0,kfPageY=0,i=1,evAbort=i++,evBlur=i++,evChange=i++,evClick=i++,evDblClick=i++,evDragDrop=i++,evError=i++,evFocus=i++,evKeyDown=i++,evKeyPress=i++,evKeyUp=i++,evLoad=i++,evMouseDown=i++,evMouseMove=i++,evMouseOut=i++,evMouseOver=i++,evMouseUp=i++,evMove=i++,evReset=i++,evResize=i++,evSelect=i++,evSubmit=i++,evUnLoad=i++,libRedraw=i++,libMove=i++,libHide=i++,libShow=i++,libKeepFocus=i++,libDrag=i++,libDrop=i++,libDragDrop=i++,libAnim=i++,libAnimStart=i++,libAnimStop=i++,evCount=i;
function AncestorDHTML(parent,type,name){this.parent=parent;var i=objDHTML.length;objDHTML[i]=this;this.index=i;this.obj="objDHTML["+i+"]";this.id="objDHTMLid"+i;this.dhtml=1;this.type=type;this.name=name;this.created=this.visible=false;this.x=this.y=0;this.width=this.height=1;this.ancestor=this.init=this.reinit=this.create=this.start=this.stop=this.show=this.hide=this.redraw=this.moveTo=this.moveBy=this.action=fnVoidF;this.enable=fnVoidT;this.state=fnVoid0;this.handleEvent=function(ev,evType,obj){if(this.parent)this.parent.handleEvent(ev,evType,this);};this.clearHandle=function(handle,mode){eval('if(this.'+handle+'!=null){window.clear'+((mode)?'Interval':'Timeout')+'(this.'+handle+');this.'+handle+'=null;}');};return this;}
function genSin(S,a,o,n,f){a=a?a:1;o=o?o:0;n=n?n:360;for(var i=0;i<n;i++){S[i]=a*Math.sin((2*Math.PI)*i/n)+o;if(f)S[i]=Math.floor(S[i]);}}
function genCos(C,a,o,n,f){a=a?a:1;o=o?o:0;n=n?n:360;for(var i=0;i<n;i++){C[i]=a*Math.cos((2*Math.PI)*i/n)+o;if(f)C[i]=Math.floor(C[i]);}}
function getSin(a){return Cos[a%360];}function getCos(a){return Sin[a%360];}genSin(Sin);genCos(Cos);
function rand(max){if(!max)max=100;return Math.floor(Math.random()*max);}
function hex(val,nb,max){var ret="";val=Math.max(Math.min(val,max),0);if(nb)for(var i=0;i<nb;i++){ret=hexa[val&15]+ret;val>>>=4;}else while(val){ret=hexa[val&15]+ret;val>>>=4;}return((ret)?ret:"0");}
function hexColor(r,g,b){return("#"+hex(r,2,255)+hex(g,2,255)+hex(b,2,255));}
function validColor(c,def){return c!=null?(isNaN(c)?c:baseColors[c&15]):def;}
function sizeCSS(val,u){return val!=null?(isNaN(val)?val:val+(u?u:"px")):"auto";}
function closeOpener(w){if(!w.opener)return;closeOpener(w.opener);w.opener.close();w.opener=null;}
function msgStatus(txt){window.status=msgStat=txt!=null?txt:"";}
function addMsgStatus(txt){window.status=msgStat+(txt!=null?txt:"");}
function defStatus(txt){window.defaultStatus=defStat=txt!=null?txt:"";}
function addDefStatus(txt){window.defaultStatus=defStat+(txt!=null?txt:"");}
function fnVoidF(){return false;}function fnVoidT(){return true;}function fnVoid0(){return 0;}function fnVoid1(){return 1;}
function ErrorOff(){window.onerror=fnVoidT;}function ErrorOn(){window.onerror=null;}
function CPoint(x,y){this.x=x?x:0;this.y=y?y:0;this.set=function _01(x,y){this.x=x;this.y=y;};return this;}
function CRect(ax,ay,bx,by){this.a=new CPoint(ax,ay);this.b=new CPoint(bx,by);this.set=function _01(ax,ay,bx,by){this.a.set(ax,ay);this.b.set(bx,by);};return this;}
function preloadImage(){var imgTable=new Array();for(var i=0;i<arguments.length;i++){imgTable[i]=new Image();imgTable[i].src=arguments[i];}return imgTable;}
function changeImage(id,url){getImage(id).src=url;}
function imageHTML(url,id,width,height,alt,event,border,vspace,hspace,align){return('<img'+(id?' name="'+id+'"':'')+' src="'+url+'"'+(width?' width="'+width+'"':'')+(height?' height="'+height+'"':'')+(alt?' alt="'+alt+'"':'')+' border="'+(border?border:0)+'" hspace="'+(hspace?hspace:0)+'" vspace="'+(vspace?vspace:0)+'"'+(align?' align="'+align+'"':'')+' '+(event?event:'')+' />');}
function linkHTML(url,target,content,event,css,id){return('<a'+(css?' class="'+css+'"':'')+(id?' name="'+id+'" id="'+id+'"':'')+' href="'+(url?url+'" '+(target?'target="'+target+'" ':''):'#" ')+(event?event:'')+'>'+content+'</a>');}
function setEvent(obj,evName,code,ret){return eval((typeof(obj)=='string'?obj:'obj')+'.'+evName+'=new Function("e",code+";return '+(ret==null?true:ret)+';");');}
function MemArray(){this.get=function(i){return this.mem[i];};this.add=function(v){var i,h=this.heap.length-1;if(h>=0){this.mem[i=this.heap[h]]=v;this.heap.pop();}else this.mem[i=this.mem.length]=v;return i};this.rem=function(i){this.mem[i]=null;this.heap[this.heap.length]=i;};this.length=function(){return this.mem.length;};this.mem=new Array();this.heap=new Array();return this;}
function addIndex(A,V){var i;for(i=0;i<A.length;i++)if(A[i]==null)break;A[i]=V;return i;}
function remIndex(A,I){if(I!=null&&I<A.length&&I>=0)A[I]=null;}
function keepPos(obj,cond){function OBJ(obj,mover){this.obj=obj;this.mover=mover;}return obj?kfArray.add(new OBJ(obj,"if("+(cond?cond:obj.dhtml?"obj.enable(libKeepFocus)":"true")+")"+(obj.dhtml?"obj.moveTo(":"moveLayer(obj,")+"px+Math.abs("+(obj.dhtml?"obj.x":"getLayerX(obj)")+"-kfPageX),py+Math.abs("+(obj.dhtml?"obj.y":"getLayerY(obj)")+"-kfPageY));")):null;}
function unKeepPos(index){kfArray.rem(index);}
function scrollHandler(e){var px=getPageX(),py=getPageY(),v;if(keepFocus&&kfPageX!=px||kfPageY!=py)for(var i=0;i<kfArray.length();i++){v=kfArray.get(i);if(v)with(v)eval(v.mover);}kfPageX=px;kfPageY=py;}
function scrollUpdate(){kfPageX=getPageX();kfPageY=getPageY();}
function moveHandler(e){var f;EV.check(e);for(var i=0;i<mmArray.length();i++){f=mmArray.get(i);if(f)f();}}
function trailMouse(func){return func?mmArray.add(func):null;}
function unTrailMouse(index){mmArray.rem(index);}
function addOnLoad(func){if(func)windowOnLoad[windowOnLoad.length]=typeof(func)=='string'?new Function(func):func;}
window.onload=function(){if(keepFocus)keepFocusOn();document.onmousemove=moveHandler;if(windowOnLoad.length)for(var i in windowOnLoad)windowOnLoad[i]();}
// -->