<!--
//dev cfp v.boysson@5emegauche.com
// Pop Up Windows
// creation popup
	
	

//UTIL
_ub="document.body.";_us="scroll";_uw="Width";_uh="Height";_b=document.all;_d=document;_w=window;
function getwx(){return(_b)?eval(_ub+"client"+_uw):_w.innerWidth}
function getwy(){return(_b)?eval(_ub+"client"+_uh):_w.innerHeight}
function getpx(){return(_b)?eval(_ub+_us+_uw):_d.width}
function getpy(){return(_b)?eval(_ub+_us+_uh):_d.height}
function getsx(){return(_b)?eval(_ub+_us+"Left"):_w.pageXOffset}
function getsy(){return(_b)?eval(_ub+_us+"top"):_w.pageYOffset}
function findObj(n, d) {var p,i,x;if(!d) d=document;if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;}

//CONVERT LIB
hexstr="0123456789ABCDEF";function dechex(x){return(hexstr.charAt(x/16)+hexstr.charAt(x%16))}

//REAL TIME TOOL
function RTID(){RT=new Date();return (RT.getMilliseconds()+(RT.getSeconds()*999)+(RT.getMinutes()*59940)+(RT.getHours()*3596400))}
function RTOBJ(d,s,e){z=this;z.a=1;z.t=0;z.d=d;z.s=s;z.e=e;z.i=(e-s)/d;}
RTOBJ.prototype.gv=RTGV;function RTGV(){z=this;if(this.t==0)z.t=RTID();T=RTID()-z.t;if(T>z.d){z.a=0;return z.e}return z.s+(T*z.i)}

//LAYER OBJECT
function newbrowse(){return document.getElementById}
function LOBJ(L){z=this;z.N=L;t="document.";z.b=document.all;if(z.b){z.ie=eval(t+"all."+L);z.l= eval(t+"all."+L+".style")}else if (document.getElementById){z.ie=document.getElementById(L);z.l=document.getElementById(L).style;}else z.l=eval(t+L);}
LOBJ.prototype.sx=LSX;function LSX(x){z=this;(z.b)?z.l.pixelLeft=x:z.l.left=x}
LOBJ.prototype.gx=LGX;function LGX(){z=this;return(z.b)?z.l.pixelLeft:z.l.left}
LOBJ.prototype.sy=LSY;function LSY(x){z=this;(z.b)?z.l.pixelTop=x:z.l.top=x}
LOBJ.prototype.gy=LGY;function LGY(){z=this;return(z.b)?z.l.pixelTop:z.l.top}
LOBJ.prototype.vi=LVI;function LVI(x){z=this;if(x)z.l.visibility=(z.b || newbrowse())?"visible":"show";else z.l.visibility=(z.b || newbrowse())?"hidden":"hide";}
LOBJ.prototype.re=LRE;function LRE(x,y){z=this;if(z.b){z.l.width=x;z.l.height=y;}else z.l.resize(x,y);}
LOBJ.prototype.bg=LBG;function LBG(b){z=this;(z.b)?z.l.backgroundColor=b:z.l.bgColor=b}
LOBJ.prototype.wr=LWR;function LWR(d){z=this;if(z.b||newbrowse())z.ie.innerHTML=d;else{z.l.document.write(d);z.l.document.close()}}
LOBJ.prototype.cl=LCL;function LCL(l,t,r,b){c="clip";v=",";z=this;z.l[c];if(z.b)z.l[c]="rect("+t+v+r+v+b+v+l+")";else{z.l[c].top=t;z.l[c].left=l;z.l[c].bottom=b;z.l[c].right=r;}}

//RADIOMANAGER
RadioManager.prototype.AddItem=AddItem;RadioManager.prototype.DoRoll=DoRoll;RadioManager.prototype.UnDoRoll=UnDoRoll;RadioManager.prototype.DoClick=DoClick;RadioManager.prototype.Reset=ResetMan;
function RadioManager(id){this.itsList=new Array;this.counter=0;this.current=0;this.id=id}
function AddItem(pTarget){this.counter++;this.itsList[this.counter]=new RadioItem(pTarget);}
function DoRoll(pNum){this.itsList[pNum].Roll(1);}
function UnDoRoll(pNum){if(this.current!=pNum)this.itsList[pNum].Roll(0);}
function DoClick(pNum){if (this.current!=0 && pNum!=this.current)this.itsList[this.current].Roll(0);this.current=pNum;this.itsList[pNum].Roll(1);do_open(this.id,this.current);}
function ResetMan(pNum){if (this.current!=0)this.itsList[this.current].Roll(0);this.current=0;}

//RADIO ITEM
RadioItem.prototype.Roll=Roll;
function RadioItem(pTarget){this.im=findObj(pTarget);this.Off=this.im.src;this.On=this.Off.substring(0,this.Off.length-4)+"_on.gif";this.rollimage=new Image;this.rollimage.src=this.On;}
function Roll(pState){this.im.src=(pState) ? this.On : this.Off}

//RELOAD POUR NETSCAPE
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

//MM_reloadPage(true);
//-->