var TridentFix=new Class({tridentFix:function(A){A.addEvents({mouseover:function(){this.addClass("iehover")},mouseout:function(){this.removeClass("iehover")}})}});var DropMenu=new Class({Implements:[Options,TridentFix],options:{mode:"horizontal"},menu:null,initialize:function(C,A){if(A){this.setOptions(A)}this.menu=$(C);var B=this.menu.getChildren();B.each(function(F,D){var E,G;E=F.getFirst();G=E.getNext("ul");if(Browser.Engine.trident){this.tridentFix(F)}if(G){F.mel=G;G.wrapper=new Element("div",{styles:$extend({overflow:"hidden"})}).wraps(G);G.wrapper.addClass("sub");G.setStyle("opacity",0);G.store("normalHeight",G.wrapper.offsetHeight+2);G.setStyle("height",G.wrapper.offsetHeight);G.setStyle("margin-top",-G.wrapper.offsetHeight);G.pel=F;new SubMenu(G)}},this)}});var SubMenu=new Class({Implements:[Options,TridentFix],options:{mode:"vertical"},menu:null,depth:0,initialize:function(C,D,A){if(A){this.setOptions(A)}if(D){this.depth=D}this.menu=C;if(this.depth==0){this.menu.addClass("submenu")}if(this.depth>=1){this.menu.addClass("sub_submenu")}this.menu.pel.addEvents(this.parentEvents);var B=this.menu.getChildren();B.each(function(G,E){var F,H;F=G.getFirst();H=F.getNext("div");if(Browser.Engine.trident){this.tridentFix(G)}},this)},parentEvents:{mouseover:function(A){A.stop();this.mel.set("morph",{duration:500,transition:Fx.Transitions.Quint.easeOut});this.mel.morph({"margin-top":0,opacity:1})},mouseout:function(A){A.stop();this.mel.set("morph",{duration:1000,transition:Fx.Transitions.Quint.easeIn});this.mel.morph({"margin-top":-this.mel.retrieve("normalHeight"),opacity:0})}}});