function Navigation()
        {
        Navigation.system()
        Navigation.config()
        }

Navigation.system=function ()
        {
        this.TabAlias=new Array()
        this.NumOp=0
        this.RecLevel=-1
        this.NumLv=new Array()
        this.ID=new Array()
        this.OpMe1=new Array()
        this.OpMe2=new Array()
        this.OpMe3=new Array()
        this.OpMe4=new Array()
        this.OpMe5=new Array()
        this.OpMe6=new Array()
        this.OpMe7=new Array()
        this.OpMe8=new Array()
        this.CurrentSiteArea=""
        this.NS4 = navigator.appName=='Netscape' && document.layers ? 1 : 0
        this.NS6 = navigator.appName=='Netscape' && document.getElementById ? 1 : 0
        this.IE = this.NS4 || this.NS6 ? 0 : 1
        this.Loaded=true
        this.LinkActivated=true
        this.NextSpace=""
        this.NS4ObjToMove=''
        }

Navigation.config=function ()
        {
        this.DecalageDroite=7
        this.IndentNbPixels=19
        this.LineHeight=14
        this.LargeurMenu=171
        this.DefaultLinkTarget='_self'
        this.CurrentTitle="HomePage"
        this.TAG_NOLINK='[NOLINK]'
        this.TAG_REQUEST='[NOCACHE]'
        this.TAG_RETURN='[RETURN]'
        this.Expanded=0
        this.StayLeft=1
        this.ShowPath=false
        this.TabDefaultClassByLevel=new Array()
        this.TabSelectedClassByLevel=new Array("MenuStyleBackTable")
        this.SpaceTableByLevel=new Array(10,2)
        this.TextClassByLevelStyleOFF=new Array("MenuStyleDev","MenuStyleOff")
        this.TextClassByLevelStyleON=new Array("MenuStyleOn")
        this.TextClassByLevelStyleACT=new Array("MenuStyleDev","MenuStyleOn")
	this.CodeBelowMenu ='<HR><BR><a href="/smb/FR/Pages/contact/index.html", target="_self"><IMG SRC="/smb/FR/Images/menu_callcenter.gif" BORDER="0" WIDTH="170" HEIGHT="50"></A>'

        }
function ContactPopper(w,h,myurl){
        var winl = ((screen.width - w) / (9.5));
        var wint = (screen.height - h) / (2);
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',noresizable';
        var Win1=window.open(myurl,'Window1',winprops);
        Win1.opener=self;
}

Navigation.Add = function(a,b,c,d,e)
        {
        if (!this.Loaded) Navigation()
        else Navigation.RecAdd(a,this.SData)
        this.SData=new Array(a,b,c,d,e)
        }

Navigation.RecAdd = function(OldL,CData)
        {
        nb=this.NumOp
        this.OpMe1[nb]= CData[0]
        if (this.RecLevel<CData[0]) this.NumLv[CData[0]]=1
        this.ID[CData[0]]=this.NumLv[CData[0]]
        this.OpMe2[nb]=this.NumLv[CData[0]]
        this.OpMe3[nb]=OldL>CData[0] ? 1 : 0
        this.OpMe4[nb]=CData[1]
        this.OpMe5[nb]=CData[2]
        this.OpMe6[nb]= typeof CData[4] =="undefined" ? DefaultLinkTarget : CData[4]
        this.TabAlias[(CData[3]+"").toLowerCase()]=this.ID.slice(0,CData[0]+1)
        this.OpMe7[nb]=CData[3]
        this.OpMe8[nb]="["+this.ID.slice(0,CData[0])+"]"
        this.RecLevel=CData[0]
        this.NumLv[CData[0]]++
        this.NumOp++
        }


Navigation.WriteMenu = function(alias)
        {
        if (alias!="" && typeof alias!="undefined") Navigation.MakeMenu(alias,false)
        }

Navigation.MakeMenu = function(alias,mode)
        {

        this.CurrentSiteArea=alias
        param=this.TabAlias[(alias+"").toLowerCase()]
        this.ParamTab=(param+"").split(",")
        CodeHTML=new Array()
        NivDev=new Array()
        NivDev[0]="[]"
        Step=0


        for (i=0;i<this.NumOp;i++)
                {
                ClassTable=""
                ClassTexte=""
                OkAff=false

                if (this.ParamTab[Step]==this.OpMe2[i] && NivDev[this.OpMe1[i]]==this.OpMe8[i])
                        {
                        Step++
                        if (this.OpMe3[i]>0)
                                {
                                NivDev[this.OpMe1[i+1]]=this.OpMe8[i+1]
                                if (this.ShowPath) ClassTexte=Navigation.ChooseParam(i,this.TextClassByLevelStyleON," CLASS=")
                                }
                        if (alias==this.OpMe7[i])
                                {
                                ClassTable=Navigation.ChooseParam(i,this.TabSelectedClassByLevel," CLASS=")
                                ClassTexte=Navigation.ChooseParam(i,this.TextClassByLevelStyleACT," CLASS=")
                                if (ClassTexte=="" && this.ShowPath) ClassTexte=Navigation.ChooseParam(i,this.TextClassByLevelStyleON," CLASS=")
                                }
                        OkAff=true
                    }
                else if (this.OpMe1[i]==0 || NivDev[this.OpMe1[i]]==this.OpMe8[i])  OkAff=true

                if (OkAff || this.Expanded==-1 || this.OpMe1[i]<=this.Expanded)
                        {
                        if (CodeHTML.length>0)
                                {
                                SpaceTmp=Navigation.ChooseParam(i,this.SpaceTableByLevel,"<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 HEIGHT=","><TR><TD></TD></TR></TABLE>")
                                if (SpaceTmp!="")
                                        {
                                        CodeHTML[CodeHTML.length]=SpaceTmp
                                        this.NextSpace=SpaceTmp
                                        }
                                else if(this.NextSpace!="")
                                        {
                                        CodeHTML[CodeHTML.length]=this.NextSpace
                                        this.NextSpace=""
                                        }
                                }
                        indent=this.StayLeft == -1 || this.OpMe1[i] <= this.StayLeft ? 0 : this.OpMe1[i]-this.StayLeft
                        if (ClassTable=="") ClassTable=Navigation.ChooseParam(i,this.TabDefaultClassByLevel," CLASS=")
                        if (ClassTexte=="") ClassTexte=Navigation.ChooseParam(i,this.TextClassByLevelStyleOFF," CLASS=")
                        if (this.OpMe4[i]!=this.TAG_RETURN) CodeHTML[CodeHTML.length]='<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+(this.LargeurMenu)+' '+ClassTable+' HEIGHT='+this.LineHeight+'><TR><TD WIDTH='+this.DecalageDroite+'>&nbsp;</TD><TD ALIGN=LEFT WIDTH='+(this.LargeurMenu-this.DecalageDroite)+'><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD WIDTH='+(indent*this.IndentNbPixels)+'></TD><TD><A HREF="javascript:Navigation.GoTo('+i+')" '+ClassTexte+'> '+this.OpMe4[i]+'</A></TD></TR></TABLE></TD></TR></TABLE>\n'
                        else CodeHTML[CodeHTML.length]='<br>'
                        }
                }

        if (!mode)
                {
                if (this.NS4)
                        {
                        with(Navigation.getLayer("ObjDynMenu"))
                                {
                                document.write(CodeHTML.join("")+this.CodeBelowMenu)
                                document.close()
                                }
                        Navigation.NS4ObjPosition()
                        }
                if (this.IE || this.NS6) Navigation.getLayer("ObjDynMenu").innerHTML=CodeHTML.join("")+this.CodeBelowMenu
                }
        else return CodeHTML;
        }

Navigation.ChooseParam = function(lev,tab,cod1,cod2)
        {
        currclass=this.OpMe1[lev]>tab.length-1 ? tab[tab.length-1] : tab[this.OpMe1[lev]]
        if (typeof currclass !="undefined" && currclass!=0) result=(typeof cod1 =="undefined" ? "" : cod1)+currclass+(typeof cod2 =="undefined" ? "" : cod2)
        else result=""
        return result
        }


Navigation.UniqueRequest= function(url)
        {
        today = new Date();
        return (url.toLowerCase().indexOf("?open")!=-1 ? "&" : "?open&" ) + "Navigation.UniqueRequest="+today.getTime()
        }

Navigation.GoTo = function(nb)
        {
        if (this.OpMe5[nb].indexOf(this.TAG_NOLINK)==-1)
                {
                if (this.OpMe5[nb].indexOf(this.TAG_REQUEST)!=-1) QueryString=Navigation.UniqueRequest(this.OpMe5[nb])
                else QueryString=''
                 if (this.LinkActivated) open(this.OpMe5[nb]+QueryString,this.OpMe6[nb])
                this.CurrentSiteArea=this.OpMe7[nb]
                CurrentTitle=this.OpMe4[nb]
                }

        Navigation.WriteMenu(this.OpMe7[nb])
        }

Navigation.WriteLayer = function(name,code)
        {
        if (this.NS4)
                {
                name.document.write(code)
                name.document.close()
                }
        if (this.IE || this.NS6) name.innerHTML=code
        }

Navigation.getRefPos = function(L,M)
        {
        return this.NS4 ? (M ? L.pageY : L.pageX ) : (M ? L.offsetTop : L.offsetLeft)
        }

Navigation.getLayer = function(L)
        {
        return this.NS4 ? eval('document.'+L) : (this.NS6 ? document.getElementById(L) : eval('document.all.'+L))
        }

Navigation.MakeCode = function()
        {

        Navigation.RecAdd(0,this.SData)
        this.CurrentSiteArea=(SiteArea+"")

        if (this.NS4)
                {
                CodeMenu1='<ILAYER NAME=PosRefMenu></ILAYER><LAYER NAME="ObjDynMenu" visibility=hidden z-index=1>'
                CodeMenu2='</LAYER>'
                }
        else
                {
                CodeMenu1='<DIV STYLE="position:relative;width:'+this.LargeurMenu+'" ID=ObjDynMenu>'
                CodeMenu2='</DIV>'
                }
        return CodeMenu1+Navigation.MakeMenu(this.CurrentSiteArea,true).join("")+this.CodeBelowMenu+CodeMenu2
        }


Navigation.RePosition = function()
        {
        if (Navigation.NS4)
                {

                Navigation.PositionHaut=Navigation.getRefPos(Navigation.getLayer("PosRefMenu"),1)
                Navigation.PositionGauche=Navigation.getRefPos(Navigation.getLayer("PosRefMenu"),0)
                if (Navigation.PositionHaut==0 && this.PositionGauche==0) setTimeout("Navigation.RePosition()",10)
                else with(Navigation.getLayer("ObjDynMenu"))
                        {
                        top=Navigation.PositionHaut
                        left=Navigation.PositionGauche
                        clip.right=Navigation.LargeurMenu
                        visibility="show"
                        }
                if (Navigation.NS4ObjToMove!="") Navigation.NS4ObjPosition()
                }
        }


Navigation.NS4ObjPosition = function()
        {
        if (Navigation.NS4)
                {
                Navigation.Hauteur=Navigation.getLayer("ObjDynMenu").document.height

                if (Navigation.NS4ObjToMove!="")
                        {
                        Obj=Navigation.getLayer(Navigation.NS4ObjToMove)
                        if (typeof Obj!="undefined")
                                {
                                with(Obj)
                                        {
                                        top=Navigation.PositionHaut+Navigation.Hauteur
                                        left=Navigation.PositionGauche
                                        clip.right=Navigation.LargeurMenu
                                        visibility="show"
                                        Navigation.Hauteur+=document.height
                                        }
                                }
                        }

                if (document.height<Navigation.PositionHaut+Navigation.Hauteur) document.height=Navigation.PositionHaut+Navigation.Hauteur
                }
        }

if(document.layers) window.onload=Navigation.RePosition