/*
HTTP Host: static.ak.fbcdn.net
Generated: March 21st 2010 4:23:35 PM PDT
Machine: 10.16.139.109
Locale: nu_ll
Path: js/menubar.js
*/

if (window.CavalryLogger) { CavalryLogger.start_js(["js\/menubar.js"]); }

function MenuBar(_L0){this.core_menu_id=_L0;this.core_menu=$(_L0);this.menus=DOM.scry(this.core_menu,'li.fb_menu');this.timeout=250;}copy_properties(MenuBar.prototype,{setTimeoutInterval:function(_L0){this.timeout=_L0;return this;},init:function(){var _L0=Event.listen(this.core_menu,'mouseover',function(e){var _L2=e.getTarget();var _L3=false;for(var i=0;i<this.menus.length;i++){var _L5=this.menus[i];var _L6=_L5.id+'_dropdown';if(ge(_L6)){var _L7=_L5.firstChild;var _L8=$(_L6);var _L9=hover_menu(_L7).registerHTMLMenu(_L6).setPosition(dropmenu.ALIGN_LEFT).setTimeoutInterval(this.timeout).addHook('show',bind(this,'_onShowCallback',_L7,_L8)).addHook('hide',bind(this,'_onHideCallback',_L7)).initialize();if(!_L3&&DOM.contains(_L5,_L2)){_L9.show();_L3=true;}}}_L0.remove();}.bind(this));},_onShowCallback:function(_L0,_L1){CSS.addClass(_L0,'hover');var _L2=window['ScrollArea']&&ScrollArea.getInnerInstance(_L1);if(_L2)_L2.moveTo(0);},_onHideCallback:function(_L0){CSS.removeClass(_L0,'hover');}});

if (window.Bootloader) { Bootloader.done(["js\/menubar.js"]); }