
if (top.location.href!=document.location.href){
        top.location.href=document.location.href
}

IE4 = (document.all) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
VERSION4 = (IE4 | NS4) ? 1 : 0;

if (!VERSION4) event = null;

function helpGetOffset(obj, coord) {
        var val = obj["offset"+coord] ;
        if (coord == "Top") val += obj.offsetHeight;
        while ((obj = obj.offsetParent )!=null) {
                val += obj["offset"+coord];
                if (obj.border && obj.border != 0) val++;
        }
        return val;
}

function helpDown () {
        if (IE4) document.all.helpBox.style.visibility = "hidden";
        if (NS4) document.helpBox.visibility = "hidden";
}

function MessageSur (event,texte) {
        if (!VERSION4) return;

        var ptrObj, ptrLayer;
        if (IE4) {
                ptrObj = event.srcElement;
                ptrLayer = document.all.helpBox;
        }
        if (NS4) {
                ptrObj = event.target;
                ptrLayer = document.helpBox;
        }

        if (!ptrObj.onmouseout) ptrObj.onmouseout = helpDown;

        var str = '<DIV CLASS="helpBoxDIV">'+texte+'</DIV>';
        if (IE4) {
                ptrLayer.innerHTML = str;
                ptrLayer.style.top  = helpGetOffset (ptrObj,"Top") + 2;
                ptrLayer.style.left = helpGetOffset (ptrObj,"Left");
                ptrLayer.style.visibility = "visible";
        }
        if (NS4) {
                ptrLayer.document.write (str);
                ptrLayer.document.close ();
                ptrLayer.document.bgColor = "yellow";
                ptrLayer.top  = ptrObj.y + 20;
                ptrLayer.left = ptrObj.x;
                ptrLayer.visibility = "show";
        }
}

var fenetreNote=null;
function afficheNote(titre,info,police,signature,date,event,message){
  MessageSur(event,message);

  fermerNote();
  fenetre = window.open('','titre','width=600,height=400,resizable=yes,menubar=yes,toolbar=yes,location=no,status=no,scrollbars=yes,dependent=yes,copyhistory=no,top=20,left=50');
  fenetreNote = fenetre;

  if (fenetreNote != null) { //alert("Là");

    doc = fenetre.document;
  texte  = '<html> ';
  texte += '<head>';
  texte += '<title>'+titre+'</title>';
  texte += '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">';
  texte += '<link href=\"Programmes/fstyle.css\" rel=stylesheet>';
  texte += '<SCRIPT language=Javascript src=\"Programmes/fmessage.js\"></SCRIPT>';
  texte += '</head>';

  texte += '<body text=#bbbbbb vLink=#ffcc66 aLink=#ffcc66 link=#eeee33 bgColor=#333333 ';
  texte += 'leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">';

  texte += ' <table  cellSpacing=0 cellPadding=0  width=\"100%\" border=\"0\"  align=\"center\">';
  texte += '  <tr>';
  texte += '     <td  valign=\"top\" width=\"100%\" class=\"corps\">';
  texte += '     <table  cellSpacing=0 cellPadding=0 border=\"0\" width=\"100%\">';
  texte += '        <tr width=\"100%\">';
  texte += '           <td class=\"corps\" align=\"center\">';
  texte += '              <font size=\"4\"><b>';
  texte += titre;
  texte += '              </b></font>';
  texte += '           </td>';
  texte += '        </tr>';
  texte += '        <tr>';
  texte += '           <td width=\"100%\" class=\"texte'+ police +'\">';
  texte += info;
  texte += '           </td>';
  texte += '        </tr>';
  texte += '        <tr>';
  texte += '           <td class=\"corps8\" width=\"100%\"><br><br>';
  texte += police +'  '+ signature +'  '+  date;
  texte += '           </td>';
  texte += '        </tr>';
  texte += '     </table>';
  texte += '    </td>';
  texte += '   </tr>';
  texte += ' </table>';
    texte += '</' + 'BODY' + '><' + '/HTML' + '>';
    doc.write(texte);
    doc.close();
 }//alert("Ici");
 }
function affichephoto(titre,info,police,signature,date,event,message,image){
  MessageSur(event,message);

  fermerNote();
  fenetre = window.open('','titre','width=600,height=400,resizable=yes,menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,dependent=yes,copyhistory=no,top=20,left=50');
  fenetreNote = fenetre;

  if (fenetreNote != null) { //alert("Là");

    doc = fenetre.document;
  texte  = '<html> ';
  texte += '<head>';
  texte += '<title>'+titre+'</title>';
  texte += '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">';
  texte += '<link href=\"Programmes/fstyle.css\" rel=stylesheet>';
  texte += '<SCRIPT language=Javascript src=\"Programmes/fmessage.js\"></SCRIPT>';
  texte += '</head>';

  texte += '<body text=#bbbbbb vLink=#ffcc66 aLink=#ffcc66 link=#eeee33 bgColor=#333333 ';
  texte += 'leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">';

  texte += ' <table  cellSpacing=0 cellPadding=0  width=\"100%\" border=\"0\"  align=\"center\">';
  texte += '  <tr>';
  texte += '     <td  valign=\"top\" width=\"100%\" class=\"corps\">';
  texte += '     <table  cellSpacing=0 cellPadding=0 border=\"0\" width=\"100%\">';
  texte += '        <tr width=\"100%\">';
  texte += '           <td class=\"corps\" align=\"center\">';
  texte += '              <font size=\"4\"><b><br>';
  texte += titre;
  texte += '              </b></font>';
  texte += '           </td>';
  texte += '        </tr>';
  texte += '        <tr width=\"100%\">';
  texte += '           <td class=\"corps\" align=\"center\"><br>';
  texte += '              <a alt=\"'+titre+'\" >';
  texte += '               <IMG src=\"'+image+'\"  style=\"border: 1px solid #ff0000\" >';
  texte += '           </a></td>';
  texte += '        </tr>';
  texte += '        <tr>';
  texte += '           <td width=\"100%\" class=\"texte'+ police +'\"><br>';
  texte += info;
  texte += '           </td>';
  texte += '        </tr>';
  texte += '        <tr>';
  texte += '           <td class=\"corps8\" width=\"100%\"><br><br>';
  texte += police +'  '+ signature +'  '+  date;
  texte += '           </td>';
  texte += '        </tr>';
  texte += '     </table>';
  texte += '    </td>';
  texte += '   </tr>';
  texte += ' </table>';
    texte += '</' + 'BODY' + '><' + '/HTML' + '>';
    doc.write(texte);
    doc.close();
 }//alert("Ici");
 }


function fermerNote() { //alert("Début") ;
  if (fenetreNote != null) {
    fenetreNote.close( );
    fenetreNote = null;
    }
}

//  *******************************************************************************************

        function Quelnavigateur() {
                var b = navigator.appName
                if (b=="Netscape") this.b = "ns"
                else if (b=="Microsoft Internet Explorer") this.b = "ie"
                else this.b = b
                this.v = parseInt(navigator.appVersion)
                this.ns = (this.b=="ns" && this.v>=4)
                this.ns4 = (this.b=="ns" && this.v==4)
                this.ns5 = (this.b=="ns" && this.v==5)
                this.ie = (this.b=="ie" && this.v>=4)
                this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
                this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
                if (this.ie5) this.v = 5;
                this.min = (this.ns||this.ie)

                usragt=navigator.userAgent.toLowerCase();
                this.mac = ( usragt.indexOf('mac')!=-1 ) ? 1 : 0;
                this.opera = ( usragt.indexOf('opera')!=-1 ) ? 1 : 0;
        }

        var is = new Quelnavigateur();
        var agt=navigator.userAgent.toLowerCase();
        var mac = (agt.indexOf("mac")!=-1);

        if(is.ie || is.ns5 || is.opera) document.write( '<LINK REL="StyleSheet" TYPE="text/css" HREF="../styles/iestyle.css">' );
        else if(is.ns) document.write( '<LINK REL="StyleSheet" TYPE="text/css" HREF="../styles/nnstyle.css">' );

        function swap_img(imgname,imgpic) { document.images[imgname].src='img/'+imgpic; }

        function menu_on(trid) {
                if(document.getElementById) {
                        trid.bgColor='#CC0000';
                        trid.getElementsByTagName('A').item(0).className = 'CategoryHover';
                } else if(document.all) trid.bgColor='#CC0000';
        }

        function menu_out(trid) {
                if(document.getElementById) {
                        trid.bgColor='#FFFFFF';
                        trid.getElementsByTagName('A').item(0).className = 'Category';
                }
                else if(document.all) trid.bgColor='#FFFFFF';
        }


//   **************************************************************************************
var origWidth = 0, origHeight = 0;

function checkBrowser(){
 useragent=navigator.userAgent.toLowerCase();

        this.ver=navigator.appVersion
        this.dom=document.getElementById?1:0
        this.ie6=(this.ver.indexOf("MSIE 6")>-1)?1:0;
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie5=(this.ie6)?1:this.ie5;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
 this.opr=useragent.indexOf('opera')!=-1?1:0;

                usragt=navigator.userAgent.toLowerCase();
                this.mac = ( usragt.indexOf('mac')!=-1 ) ? 1 : 0;
                this.opera = ( usragt.indexOf('opera')!=-1 ) ? 1 : 0;

        return this
}

function _do_resize_0(){
 onresize = function() { window.location.reload(); }
}

function _do_resize_1(){
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
}

function _locate_0(_objn){
 var _lobj = document.getElementById(_objn);
 var _lx = _lobj.offsetLeft, _ly = _lobj.offsetTop;
 while(_lobj.offsetParent){
  _lx += _lobj.offsetParent.offsetLeft;
  _ly += _lobj.offsetParent.offsetTop;
  _lobj = _lobj.offsetParent;
 }
 return new Array(_lx, _ly);
}

function _locate_1(_objn){
 var _lobj = document.all[_objn];
 var _lx = _lobj.offsetLeft, _ly = _lobj.offsetTop;
 if(_lobj.offsetParent.offsetLeft>0){
  while(_lobj.offsetParent){
   _lx += _lobj.offsetParent.offsetLeft;
   _ly += _lobj.offsetParent.offsetTop;
   _lobj = _lobj.offsetParent;
  }
 }
 else{
  while(_lobj.parentElement){
   _lx += _lobj.parentElement.offsetLeft;
   _ly += _lobj.parentElement.offsetTop;
   _lobj = _lobj.parentElement;
  }
 }
 return new Array(_lx, _ly);
}

function _locate_3(_objn){
 _p = document.layers[_objn];
 return new Array(_p.pageX, _p.pageY);
}

bw=new checkBrowser();

var speed;
var pause;
var strtdly = 1000;
var _maxinf = 0;
var _curinf = 0;
var _move = false;
var dloop, uloop, timer;
var nb = 1;

//
function makeObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.';
        this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
          this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
        this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight;
        this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight;
        this.up=goUp;this.down=goDown;
        this.moveIt=moveIt;
    this.obj = obj + "Object";
    eval(this.obj + "=this");
    return this;
}

function moveIt(x,y){
 this.x=x;this.y=y;
 this.css.left=this.x;
 this.css.top=this.y;
}

//
function goDown(move){
 if(this.y>0){ this.moveIt(0,this.y-move); timer = setTimeout(this.obj+".down("+move+")",speed);}
 else{
  if(!_move){
   if(nb<_maxinf){ setTimeout(this.obj+".down("+move+")",pause*1000); nb++;}
   _move = true;
  }
  else{
   if(this.y>-this.scrollHeight){ this.moveIt(0,this.y-move); timer = setTimeout(this.obj+".down("+move+")",speed);}
   else{ _multiscroll(); _move = false;}
  }
 }
}

//
function goUp(move){
        if(this.y<0){
                this.moveIt(0,this.y-move)
                if(uloop)
                 timer = setTimeout(this.obj+".up("+move+")",speed);
                else
                 if(nb<_maxinf){ setTimeout("_test()",pause*1000);; nb++;}
        }
}

function _scroll(i){
 cobj = infos[i];
 if(loaded){
  if(speed>0) {cobj.down(speed);}
  else {cobj.up(speed);}
 }
}

//
var loaded = false;
var infos = new Array();
var _build = "<div id=Cont align=left>";

function scrollInit(){
 if(_curinf>0){
  infos[0]=new makeObj('Cont');
  locate = bw.dom?_locate_0("l"):bw.ie4?_locate_1("l"):bw.ns4?_locate_3("l"):new array(-100,-100);
  infos[0].moveIt(locate[0]+5,locate[1]+2);
  for(i=1;i<=_maxinf;i++){
   infos[i] = new makeObj('Text'+i,'Cont');
   infos[i].moveIt(0,28);
  }
  infos[0].css.visibility='visible';
  loaded=true;
  _multiscroll();
 } else
  setTimeout("scrollInit", 10);
}

function _multiscroll(){
 infos[_curinf].css.visibility='hidden';
 infos[_curinf].moveIt(0,28);
 _curinf = (_curinf<_maxinf)?(_curinf+1):1;
 infos[_curinf].css.visibility='visible';
 _scroll(_curinf);
}

function _add(_inf, _link){
 _maxinf++;
 if ( _link != '' && _link != '#' ) _build += "<div id=Text"+ _maxinf+" align=left><font class=News><a href=\""+_link+"\" class=News>"+_inf+"</a></font></div>";
 else _build += '<div id=Text'+ _maxinf +' align=left><font style="font-size:12px;color:#FFFFFF;font-family:verdana,arial;font-weight:bold;">'+_inf+'</font></div>';
}

function _writeinfos(){
 _build+="</div>";
 document.write(_build);
 _curinf = _maxinf;
}

var _onload = "setTimeout('scrollInit()', strtdly);";
//  ******************************************************************************************
<!--



//
_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;}

//
hexstr="0123456789ABCDEF";function dechex(x){return(hexstr.charAt(x/16)+hexstr.charAt(x%16))}

//
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)}

//
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;}}

//
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();
}

//  *************************************************************************************
 <!--
var K_PAD_X = 9; // 9
var KJVS_X = 55; //POSX DU MENU 185
var KJVS_Y = 40;         //POSY DU MENU 34
var K_JVS_ECART = Array(0,119,221,338);        //ECART POUR LES ITEMS DU MENU 0 119 221 338
var g_jvsObjLayer=-1;        //-1

var jvs_layerlevel = 1000;
var jvs_delayct;
var jvs_delayflag=0;
var jvs_no_unroll = Array(0,0,0,0);
var jvs_active = 0;
var K_JVS_DELAY  =400; //delais avant fermeture d'un menu l'ors d'une sortie de la souris
var ns6=document.getElementById&&!document.all
var ie=document.all


// Global gestion des disparitions de formulaire
var Mome_flHide, Mome_flObj;


function jvs_calc_sizex (x)
{
         if (x>10)
         x = Math.round((K_PAD_X*x)-(x*2.3))
         else
         x = Math.round((K_PAD_X*x))
        return x;
}

function show_5G(Obj2Show) {
        if ( Obj2Show ) {
                if ( document.all || document.getElementById ) isns4 = false;
                else isns4 = true;

                if ( isns4 ) Obj2Show.visibility = 'show';
                else Obj2Show.style.visibility = 'visible';
        }
}
function hide_5G(Obj2Hide) {
        if ( Obj2Hide ) {
                if ( document.all || document.getElementById ) isns4 = false;
                else isns4 = true;

                if ( isns4 ) Obj2Hide.visibility = 'hide';
                else Obj2Hide.style.visibility = 'hidden';
        }
}



function jvs_setup_layer()
{

        jvs_drawbutton();
        jvs_drawlayer();
}

function menu_roll(e,p_state,type,p_action){
        var v_class;



        g_dropdownover = p_state
        if (jvs_delayflag && g_dropdownover ) jvs_delayflag=0;
        if (p_state)
                v_class ='on';
        else
                v_class ='off';

        source=ie? event.srcElement : e.target
        if (source.tagName=="TR"||source.tagName=="TABLE")return
        while(source.tagName!="TD"&&source.tagName!="HTML")
        source=ns6? source.parentNode : source.parentElement

        if (p_action!=0)
        {
                source=ns6? source.parentNode : source.parentElement;

                if (type)
                        document.location.href = JVS_SOUS_MENU[g_jvs_lastopen][jvs_current_sub_num][source.rowIndex][1];
                else
                        document.location.href = JVS_MENU[g_jvs_lastopen][source.rowIndex][1];

        }

        if (source.className!=v_class)
                {

                        source.className=v_class
                        subsource=ns6? source.parentNode : source.parentElement
                        if (        p_state && type == 0 ) jvs_sub_level(subsource.rowIndex)
                }

}
var jvs_current_sub_num
function jvs_sub_level ( p_level)
{

        if (g_jvsObjLayer==-1) g_jvsObjLayer = new LOBJ("MSECOND");
//        if (JVS_SOUS_MENU[g_jvs_lastopen][p_level].length==0 ){g_jvsObjLayer.vi(0); return;}
        if ((p_level == null) || (JVS_SOUS_MENU[g_jvs_lastopen][p_level].length==0 )){g_jvsObjLayer.vi(0); return;}

        tempx = JVS_TAILLE_SOUS_MENU[g_jvs_lastopen][p_level];
        g_jvsObjLayer.wr( jvs_fill_table ( JVS_SOUS_MENU[g_jvs_lastopen][p_level] , 1,tempx))

        t_posx = KJVS_X+K_JVS_ECART[g_jvs_lastopen]+jvs_calc_sizex(JVS_TAILLE_MENU[g_jvs_lastopen])+1;   //1

        if ((t_posx+jvs_calc_sizex(tempx)+2)>getwx()) t_posx = KJVS_X+K_JVS_ECART[g_jvs_lastopen]-jvs_calc_sizex(tempx)-1;  //-1
        g_jvsObjLayer.sx(t_posx+59);        // 2      Décalage du sous menu en X
        temp_y = 27+KJVS_Y+p_level*24; // 27  14      Décalage du sous menu en y
        if (temp_y+(16*JVS_SOUS_MENU[g_jvs_lastopen][p_level].length)>getwy())
                temp_y = temp_y-(temp_y+(16*JVS_SOUS_MENU[g_jvs_lastopen][p_level].length)-getwy()+5); //5

        g_jvsObjLayer.sy(temp_y);
        g_jvsObjLayer.vi(1);
        jvs_current_sub_num = p_level;
}
function contains_ns6(master, slave) {
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}


function jvs_findObj(n, d) { //v4.01
  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=jvs_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
// Masquage des menus





function jvs_init()
{
        Mome_flObj = jvs_findObj( 'lFormData' );
        Mome_flHide = false;
}
function jvs_lancer()
{

        eval("window.onload = function(){ "+_onload+"};");
        if ((!is.mac || (is.mac && ns6))  && ( is.ie || ns6 )&& !is.opera)
        {
                jvs_active =1;
                jvs_setup_layer();
                jvs_delais();
                jvs_init();
        }
        else
        {
                jvs_init();
        }
}

function jvs_delais()
{
        //document.title= g_dropdownover + " " + jvs_delayflag ;
        if (!g_dropdownover)
        {

                if (!jvs_delayflag)
                        {
                                jvs_delayflag=1;
                                jvs_delayct = K_JVS_DELAY + RTID();
                        }
                if (jvs_delayct< RTID()) jvs_unrool();
        }
        setTimeout('jvs_delais()',100);
}
// Creation d'un layer + Tableau  avec item du menu
function jvs_create ( p_name , p_data , p_x , p_y, p_type,p_size )
{
        var html;
        jvs_layerlevel++ ;
        var i;
        html = '<div id="' + p_name + '" style="visibility:hidden;position:absolute; left:' + p_x + 'px; top:' + p_y + 'px; width:10px; height:10px; z-index:'+  jvs_layerlevel + '">';
        html += jvs_fill_table ( p_data , p_type , p_size)
        html += ' </div>';

        return html;
// onMouseOver="this.backgroundColor=\'#CCCCFF\'" onMouseOut="this.style.backgroundColor=\'transparent\'
}
function jvs_fill_table ( p_data , p_type, p_size)
{
        var html;            // 1 0 0 00ffff  et le suivant  0 1
        html = '<table border="1" cellspacing="1" cellpadding="1" bgcolor="#333333" style="cursor:pointer;cursor:hand"><tr><td>'
        html += '<table  width="'+ jvs_calc_sizex(p_size) +'"  cellspacing="1" cellpadding="1" onMousedown="menu_roll(event,1,'+ p_type + ',1)" onMouseover="menu_roll(event,1,'+ p_type + ',0)" onMouseout="menu_roll(event,0,'+ p_type + ',0)" >';
        for ( i=0 ; i!= p_data.length ; i++ )
        html += '<tr><td class=off nowrap>&nbsp;&nbsp;' + p_data[i][0] + '</td></tr>';
        html += ' </table></td></tr></table>'
        return html;
}
function jvs_drawlayer()
{

        load_data()

        for( a = 0; a!=JVS_MENU.length ; a++)document.write( jvs_create("M5PRIN" + a  ,JVS_MENU[a],0,0,0,JVS_TAILLE_MENU[a]));
        document.write( jvs_create("MSECOND" ,JVS_SOUS_MENU[0][0],0,0,1,JVS_TAILLE_MENU[0]));        // b 100 a 300

}
var g_jvs_lastopen=-1;
var g_dropdownover = 0;
var g_jvs_level2 = -1
function jvs_derouler(p_menu,p_state,p_noroll )
{

        if (!jvs_active)
        {
                if (!p_noroll)
                {
                        obj = jvs_findObj("mmmenu" + p_menu);
                        obj.src = "images/Accueil_" + p_menu +"_" + p_state +".gif";
                }
                return;
        }
        jvs_no_unroll[p_menu] = p_noroll;
        if (p_state)
        {
                jvs_unrool();
                Mome_flHide = false;
                hide_5G( Mome_flObj);
                g_jvs_lastopen = p_menu;
                jvs_change_rool( p_menu , p_state  );
                g_dropdownover = 1;
        }
        else
        {
                g_dropdownover = 0;
        }

}
function jvs_change_rool(p_menu , p_state )
{
        if (!jvs_no_unroll[p_menu])
                {
                        obj = jvs_findObj("mmmenu" + p_menu)
                        obj.src = "images/Accueil_" + p_menu +"_" + p_state +".gif"
                }

        ObjLayer = new LOBJ("M5PRIN" + p_menu);
        ObjLayer.sx(KJVS_X+K_JVS_ECART[p_menu]);
        ObjLayer.sy(KJVS_Y+27); // 27
        ObjLayer.vi(p_state);
}
function jvs_unrool()
{
        //if ( g_dropdownover ) return
        if (g_jvs_lastopen!=-1) jvs_change_rool( g_jvs_lastopen , 0)
        if(g_jvsObjLayer!=-1)        g_jvsObjLayer.vi(0);
        g_jvs_lastopen=-1;
        jvs_delayflag=0;

        Mome_flHide = true;
        show_5G( Mome_flObj);

}
function jvs_drawbutton()
{
        return;                                                                                                                       //27                                                                                                                                                        //27
        document.write('<div id="MENUL1" style="position:absolute; left:'+(KJVS_X+K_JVS_ECART[0])+'px; top:'+KJVS_Y+'px; width:109; height:27; z-index:1"><a href="#" onMouseOut="jvs_derouler(0,0)" onMouseOver="jvs_derouler(0,1)"><img src="images/Accueil_0_0.gif" name="jvs_menu0" width="109" height="27" border="0"></a></div>');
}
//-->
