
    Ext.onReady(function(){

    Ext.BLANK_IMAGE_URL = '/picts/empty.gif';

    Ext.ux.AutoHideMenu = function(config) {
          Ext.ux.AutoHideMenu.superclass.constructor.call(this,config);    
          this.on("show",this.autoHide,this);
          this.on("mouseover",this.resetTimer,this);
          this.on('mouseout', this.handleOut,this);

      };

      var autoHideTimer = null;

      Ext.extend(Ext.ux.AutoHideMenu, Ext.menu.Menu, {
          //allows user to define custom delay on the hide. otherwise, 10 seconds.
          hideDelay:  this.hideDelay ? this.hideDelay : 7000,
          minWidth:170,
          //IE6 was giving some inconsistent errors when autoHideTimer wasn't listed here
          //so I threw it in here for good measure. No harm, no foul.
          //autoHideTimer: null, 

          autoHide: function() {
              clearTimeout(autoHideTimer);
              delete autoHideTimer;
              autoHideTimer = this.hide.defer(this.hideDelay, this);
          },
         
          handleOut: function() {
              clearTimeout(autoHideTimer);
              delete autoHideTimer;
              autoHideTimer = this.hide.defer(750, this, [true]);
          },
          
          resetTimer: function() {
              clearTimeout(autoHideTimer);
              delete autoHideTimer;
          }
      });

// register xtype
Ext.reg('autohidemenu', Ext.ux.AutoHideMenu); 

    var tb = new Ext.Toolbar();
    tb.render('navContainer');


    var menu_0 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_0',
        items: [
        
            {
                href:"index.aspx?p=3YpQZ--Bj9UgU--D",text:"News"
                
            },
            {
                href:"index.aspx?p=ppbSbZZJ5NE--D",text:"Events"
                
            },
            {
                href:"index.aspx?p=SSTVVyKDeUmkNg2jkkCcwA--D--D",text:"Total Shirt Shop"
                
            }
        ]
    });

    

    tb.add({
            text:'Home',
            ctCls:'nav_btn_top',
            menu: menu_0, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            },
            onMouseDown : function(e){
                this.showMenu();
                document.location.href = 'index.aspx?p=gntXPP0yeuY--D';
            }
            
        }); 
    
    tb.addSeparator();    
    

    var menu_1 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_1',
        items: [
        
            {
                href:"index.aspx?p=x2i7PNhBaq0--D",text:"Ski"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=IuVUwX8tKaE--D",text:"Alpinski"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=xJakLfSFG4U--D",text:"Atomic"
                                           
                        },
                        {
                        href:"index.aspx?p=9--BgG5HRGxsI--D",text:"Elan"
                                           
                        },
                        {
                        href:"index.aspx?p=qYnRszvyIYc--D",text:"Fischer"
                                           
                        },
                        {
                        href:"index.aspx?p=IrePIcViBRE--D",text:"Head"
                                           
                        },
                        {
                        href:"index.aspx?p=155TraqqCAo--D",text:"K2"
                                           
                        },
                        {
                        href:"index.aspx?p=1cO5mCjuKtg--D",text:"Nordica"
                                           
                        },
                        {
                        href:"index.aspx?p=FlwkuDFQz7E--D",text:"Salomon"
                                           
                        },
                        {
                        href:"index.aspx?p=--FfbNwl--FGxS8--D",text:"Scott"
                                           
                        },
                        {
                        href:"index.aspx?p=3aRSfsOU--Bqs--D",text:"Völkl"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=AUL53sv1A4Y--D",text:"Freeski"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=XdoLSVahzU4--D",text:"K2"
                                           
                        },
                        {
                        href:"index.aspx?p=FD6N--B7PB30M--D",text:"Line"
                                           
                        },
                        {
                        href:"index.aspx?p=4hSeUEzPPeU--D",text:"Salomon"
                                           
                        },
                        {
                        href:"index.aspx?p=ydTeTgp3CHA--D",text:"Scott"
                                           
                        },
                        {
                        href:"index.aspx?p=tNNQjaebOLY--D",text:"Head"
                                           
                        },
                        {
                        href:"index.aspx?p=pHrouVvzSTI--D",text:"Bindungen"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=o1kJ3EeiZ74--D",text:"Schuhe"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=fOjZggUDPus--D",text:"Atomic"
                                           
                        },
                        {
                        href:"index.aspx?p=JsCDWpt4tX0--D",text:"Head"
                                           
                        },
                        {
                        href:"index.aspx?p=7lenNO4TXOg--D",text:"Nordica"
                                           
                        },
                        {
                        href:"index.aspx?p=3Ezebad5aNg--D",text:"Salomon"
                                           
                        },
                        {
                        href:"index.aspx?p=JLBZwg78zCQ--D",text:"Full Tilt"
                                           
                        },
                        {
                        href:"index.aspx?p=N1S8WFm6yaQ--D",text:"Scarpa"
                                           
                        }
                        ]})
                        
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=Kd5kzwyZPZ8--D",text:"Snowboard"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=hwnjy44u1FQ--D",text:"Boards"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=3gJ5dFWrH2g--D",text:"Artec"
                                           
                        },
                        {
                        href:"index.aspx?p=WHLmQvPtS8c--D",text:"Burton"
                                           
                        },
                        {
                        href:"index.aspx?p=N0nOQ1ufS5o--D",text:"Elan"
                                           
                        },
                        {
                        href:"index.aspx?p=SLNl6g43ezI--D",text:"K2"
                                           
                        },
                        {
                        href:"index.aspx?p=42wHRbbJpwk--D",text:"Nidecker"
                                           
                        },
                        {
                        href:"index.aspx?p=ttUymnZovLs--D",text:"Jones"
                                           
                        },
                        {
                        href:"index.aspx?p=Z2bPTwEqcjU--D",text:"Salomon"
                                           
                        },
                        {
                        href:"index.aspx?p=FSiHVcD3Opw--D",text:"Völkl"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=VMvxw0jORYw--D",text:"Bindings"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=Y4OCh0KlJFI--D",text:"Burton"
                                           
                        },
                        {
                        href:"index.aspx?p=lzEUgxUzcWU--D",text:"Drake"
                                           
                        },
                        {
                        href:"index.aspx?p=OX9DfAs6w2I--D",text:"K2"
                                           
                        },
                        {
                        href:"index.aspx?p=I1d4--B7ZG6Gs--D",text:"Salomon"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=uKQdLFNowaI--D",text:"Schuhe"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=KoKPu8Kjlks--D",text:"Burton"
                                           
                        },
                        {
                        href:"index.aspx?p=mxPgEhFTwRQ--D",text:"Northwave"
                                           
                        },
                        {
                        href:"index.aspx?p=6ZHLRWiTbss--D",text:"Salomon"
                                           
                        },
                        {
                        href:"index.aspx?p=wTO0gr8IVtA--D",text:"K2"
                                           
                        }
                        ]})
                        
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=pk9--BNKK3sHM--D",text:"Textil"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=ixr7BgMJddQ--D",text:"Ski/Snowboard"         
                    
                    },
                    {
                    href:"index.aspx?p=Sae016g1mNY--D",text:"Winter-Handschuhe"         
                    
                    },
                    {
                    href:"index.aspx?p=QLiabw3DfYM--D",text:"Bike"         
                    
                    },
                    {
                    href:"index.aspx?p=14TfMm5HI--BY--D",text:"Outdoor"         
                    
                    },
                    {
                    href:"index.aspx?p=mrLsY2x3u6c--D",text:"Running"         
                    
                    },
                    {
                    href:"index.aspx?p=qfjPrUhKu7c--D",text:"Freizeit"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=kDxWqpBYPKI--D",text:"Helme/Protektoren"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=9P8ZQAqQ49c--D",text:"Winter Helme"         
                    
                    },
                    {
                    href:"index.aspx?p=0rFGpqQMhwk--D",text:"Protektoren"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=FMHVNCjiZYs--D",text:"Brillen"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=--F--BnCrUk0vDU--D",text:"Goggles"         
                    
                    },
                    {
                    href:"index.aspx?p=z83URCadnqk--D",text:"Sonnenbrillen"         
                    
                    },
                    {
                    href:"index.aspx?p=Duv76VQWqNU--D",text:"Sportbrillen"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=uOjBcbQcuI0--D",text:"Rucksäcke/Taschen"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=oAYHWYLWae8--D",text:"Ski-/Snowboardtouren"         
                    
                    },
                    {
                    href:"index.aspx?p=MqSVMwWaDVE--D",text:"Trekking"         
                    
                    },
                    {
                    href:"index.aspx?p=0JxMNVGhAns--D",text:"Freizeit"         
                    
                    },
                    {
                    href:"index.aspx?p=Y29jpJNICtA--D",text:"Taschen"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=H06--BboHaSkQ--D",text:"Schuhe"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=93woCOS--BsOs--D",text:"Bike"         
                    
                    },
                    {
                    href:"index.aspx?p=pEdNwDPuw70--D",text:"Trekking/Walking"         
                    
                    },
                    {
                    href:"index.aspx?p=5PMnhp0iQ2Y--D",text:"Running"         
                    
                    },
                    {
                    href:"index.aspx?p=StR0FyAm57E--D",text:"Indoor"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=RLYFgp8ri4E--D",text:"Bike"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=sKmSpHzEkeA--D",text:"Bionicon"         
                    
                    },
                    {
                    href:"index.aspx?p=ksoVIvjornc--D",text:"Ghost"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=w34A3M47w1o--D",text:"Fullys"
                                           
                        },
                        {
                        href:"index.aspx?p=jwgi9G4AyhY--D",text:"Hardtail"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=Lso8VBv6SMc--D",text:"Scott"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=Ds--B8DqLVeZY--D",text:"E-Bikes"
                                           
                        },
                        {
                        href:"index.aspx?p=7umMbDH8RI4--D",text:"Fullys"
                                           
                        },
                        {
                        href:"index.aspx?p=4vrfqZZPyog--D",text:"Hardtail"
                                           
                        },
                        {
                        href:"index.aspx?p=mEK4uZom1aA--D",text:"Trekking"
                                           
                        },
                        {
                        href:"index.aspx?p=82BzEYB095c--D",text:"Junior"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=5uSiFZlM5uM--D",text:"Price"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=j3YEfcWKQf4--D",text:"Fullys"
                                           
                        },
                        {
                        href:"index.aspx?p=DYU5d4L--FNdQ--D",text:"Hardtail"
                                           
                        },
                        {
                        href:"index.aspx?p=yYfgsdGVDoY--D",text:"Trekking"
                                           
                        },
                        {
                        href:"index.aspx?p=lrzVYWLpyOQ--D",text:"Citybike"
                                           
                        },
                        {
                        href:"index.aspx?p=0Xb--F7Ux8ym4--D",text:"Rennvelo"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=PaKcC8pcbT4--D",text:"Niner"         
                    
                    },
                    {
                    href:"index.aspx?p=bz7Yr3pfxu8--D",text:"Raleigh"         
                    
                    ,menu: new Ext.ux.AutoHideMenu({        
                        items: [
                    
                        {
                        href:"index.aspx?p=FV8JhyLwYIs--D",text:"E-Bikes"
                                           
                        },
                        {
                        href:"index.aspx?p=p3oybatHTsU--D",text:"City Bikes"
                                           
                        }
                        ]})
                        
                    },
                    {
                    href:"index.aspx?p=--BeAhXSIkERY--D",text:"Charriot"         
                    
                    },
                    {
                    href:"index.aspx?p=OaImlqszBTI--D",text:"Bike Parts"         
                    
                    }
                    ]})
                    
            },
            {
                href:"index.aspx?p=gOsjN9f--BhJE--D",text:"Allerlei"
                
                ,menu: new Ext.ux.AutoHideMenu({        
                    items: [
                
                    {
                    href:"index.aspx?p=VLHoEMk2QXU--D",text:"Freeride Equipment"         
                    
                    },
                    {
                    href:"index.aspx?p=H9HvB3og5p4--D",text:"Schneeschuhe"         
                    
                    },
                    {
                    href:"index.aspx?p=oe9A--BQLmo--FI--D",text:"Pulsuhren"         
                    
                    },
                    {
                    href:"index.aspx?p=lpGtGNkKeoA--D",text:"Pflegemittel"         
                    
                    },
                    {
                    href:"index.aspx?p=i0D--Bbc8ikwk--D",text:"Karten/Bücher"         
                    
                    }
                    ]})
                    
            }
        ]
    });

    

    tb.add({
            text:'Produkte',
            ctCls:'nav_btn_top',
            menu: menu_1, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            },
            onMouseDown : function(e){
                this.showMenu();
                document.location.href = 'index.aspx?p=U7A4MMh3KYKOdRifEzcYNA--D--D';
            }
            
        }); 
    
    tb.addSeparator();    
    

    var menu_2 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_2',
        items: [
        
            {
                href:"index.aspx?p=s8OJX4vWgkgyh1vm4Tso--Bw--D--D",text:"Ski"
                
            },
            {
                href:"index.aspx?p=IJrF3UvCrm7E6nhoFinlELJn6yLZEHBh",text:"Board"
                
            },
            {
                href:"index.aspx?p=HIdZUDHVMV2gBXVg3TT--Bng--D--D",text:"Bike"
                
            }
        ]
    });

    

    tb.add({
            text:'Service',
            ctCls:'nav_btn_top',
            menu: menu_2, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            }
        }); 
    
    tb.addSeparator();    
    

    var menu_3 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_3',
        items: [
        
            {
                href:"index.aspx?p=Ol818sHucLvHbBGfWgopkA--D--D",text:"Preisliste"
                
            }
        ]
    });

    

    tb.add({
            text:'Miete',
            ctCls:'nav_btn_top',
            menu: menu_3, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            }
        }); 
    
    tb.addSeparator();    
    

    var menu_4 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_4',
        items: [
        
            {
                href:"index.aspx?p=XmdrcdcAPd4--D",text:"Kontakt"
                
            },
            {
                href:"index.aspx?p=b3oa8zDq6gdbsOa2VDYIeA--D--D",text:"Fashion Store"
                
            },
            {
                href:"index.aspx?p=AF2hDTlRGx0--D",text:"Unser Team"
                
            },
            {
                href:"index.aspx?p=z3cmBPv6gEsVa8sN47--F98A--D--D",text:"Newsletter"
                
            }
        ]
    });

    

    tb.add({
            text:'Über uns',
            ctCls:'nav_btn_top',
            menu: menu_4, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            },
            onMouseDown : function(e){
                this.showMenu();
                document.location.href = 'index.aspx?p=hcukkn8Xm0o--D';
            }
            
        }); 
    
    tb.addSeparator();    
    

    var menu_5 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_5',
        items: [
        
            {
                href:"index.aspx?p=dHStvYnXd--BxByDqPnVw54w--D--D",text:"Partner"
                
            },
            {
                href:"index.aspx?p=--BoCcajfIRLU--D",text:"Marken"
                
            }
        ]
    });

    

    tb.add({
            text:'Links',
            ctCls:'nav_btn_top',
            menu: menu_5, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            }
        }); 
    
    tb.addSeparator();    
    

    var menu_6 = new Ext.ux.AutoHideMenu({
        id: 'mainMenu_6',
        items: [
        
            {
                href:"index.aspx?p=22fAqohw7JFHsnspny9GcA--D--D",text:"Bildergallerie"
                
            }
        ]
    });

    

    tb.add({
            text:'Gallery',
            ctCls:'nav_btn_top',
            menu: menu_6, 
            clickEvent: 'whatever',
            onMouseOver : function(e){ 
                this.showMenu();
            }
        }); 
    

});

