rem: YAHOO.widget.MenuModule=function(_1,_2){YAHOO.widget.MenuModule.superclass.constructor.call(this,_1,_2);};YAHOO.extend(YAHOO.widget.MenuModule,YAHOO.widget.Overlay);YAHOO.widget.MenuModule._initEventHandlers=true;YAHOO.widget.MenuModule._menus={};YAHOO.widget.MenuModule._menuItems={};YAHOO.widget.MenuModule._onDOMEvent=function(_3){var _4=YAHOO.util.Dom;var _5=YAHOO.util.Event;var _6=_5.getTarget(_3);var _7;function getMenuRootElement(_8){var _9;switch(_8.tagName){case "DIV":_9=_8.parentNode;if(_4.hasClass(_8,"bd")&&_9&&_9.tagName=="DIV"){return _9;}else{return _8;}break;case "LI":_7=_8;default:_9=_8.parentNode;if(_9){return getMenuRootElement(_9);}break;}}var _a=getMenuRootElement(_6);if(_a&&_a.id){var _b;var _c=YAHOO.widget.MenuModule._menus[_a.id];if(_7){var _d=_7.getAttribute("yuiid");if(_d){_b=YAHOO.widget.MenuModule._menuItems[_d];}}if(_c){var _e={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent"};var _f=_e[_3.type];switch(_3.type){case "mouseover":if(!_c._bFiredMouseOverEvent&&(_6==_c.element||_4.isAncestor(_c.element,_6))){_c.mouseOverEvent.fire(_3);_c._bFiredMouseOverEvent=true;_c._bFiredMouseOutEvent=false;}if(_b&&!_b._bFiredMouseOverEvent&&(_6==_b.element||_4.isAncestor(_b.element,_6))&&!_b.cfg.getProperty("disabled")){_b.mouseOverEvent.fire(_3);_b._bFiredMouseOverEvent=true;_b._bFiredMouseOutEvent=false;}break;case "mouseout":var _10=_5.getRelatedTarget(_3);var _11=false;if(_b){var _12=_b.cfg.getProperty("submenu");if(_12&&(_10==_12.element||_4.isAncestor(_12.element,_10))){_11=true;}}if(_b&&!_b._bFiredMouseOutEvent&&((_10!=_b.element&&!_4.isAncestor(_b.element,_10))||_11)&&!_b.cfg.getProperty("disabled")){_b.mouseOutEvent.fire(_3);_b._bFiredMouseOutEvent=true;_b._bFiredMouseOverEvent=false;}if(!_c._bFiredMouseOutEvent&&((_10!=_c.element&&!_4.isAncestor(_c.element,_10))||_11)){_c.mouseOutEvent.fire(_3);_c._bFiredMouseOutEvent=true;_c._bFiredMouseOverEvent=false;}break;default:if(_b&&!_b.cfg.getProperty("disabled")){_b[_f].fire(_3);}_c[_f].fire(_3);break;}}}};YAHOO.widget.MenuModule.prototype.CSS_CLASS_NAME="yuimenu";YAHOO.widget.MenuModule.prototype.ITEM_TYPE=null;YAHOO.widget.MenuModule.prototype.GROUP_TITLE_TAG_NAME="H6";YAHOO.widget.MenuModule.prototype._bFiredMouseOverEvent=false;YAHOO.widget.MenuModule.prototype._bFiredMouseOutEvent=false;YAHOO.widget.MenuModule.prototype._aGroupTitleElements=null;YAHOO.widget.MenuModule.prototype._aItemGroups=null;YAHOO.widget.MenuModule.prototype._aListElements=null;YAHOO.widget.MenuModule.prototype._oEventUtil=YAHOO.util.Event;YAHOO.widget.MenuModule.prototype._oDom=YAHOO.util.Dom;YAHOO.widget.MenuModule.prototype.activeItem=null;YAHOO.widget.MenuModule.prototype.parent=null;YAHOO.widget.MenuModule.prototype.srcElement=null;YAHOO.widget.MenuModule.prototype.mouseOverEvent=null;YAHOO.widget.MenuModule.prototype.mouseOutEvent=null;YAHOO.widget.MenuModule.prototype.mouseDownEvent=null;YAHOO.widget.MenuModule.prototype.mouseUpEvent=null;YAHOO.widget.MenuModule.prototype.clickEvent=null;YAHOO.widget.MenuModule.prototype.keyPressEvent=null;YAHOO.widget.MenuModule.prototype.keyDownEvent=null;YAHOO.widget.MenuModule.prototype.keyUpEvent=null;YAHOO.widget.MenuModule.prototype.init=function(_13,_14){var Dom=this._oDom;var _16=this._oEventUtil;if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuModuleItem;}this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];var _17;if(typeof _13=="string"){_17=document.getElementById(_13);}else{if(_13.tagName){_17=_13;}}if(_17){switch(_17.tagName){case "DIV":this.srcElement=_17;YAHOO.widget.MenuModule.superclass.init.call(this,_17);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);var _18=this.body.firstChild;var i=0;do{switch(_18.tagName){case this.GROUP_TITLE_TAG_NAME:this._aGroupTitleElements[i]=_18;break;case "UL":this._aListElements[i]=_18;this._aItemGroups[i]=[];i++;break;}}while((_18=_18.nextSibling));if(this._aListElements[0]){Dom.addClass(this._aListElements[0],"first-of-type");}break;case "SELECT":this.srcElement=_17;var sId=Dom.generateId();YAHOO.widget.MenuModule.superclass.init.call(this,sId);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);break;}}else{YAHOO.widget.MenuModule.superclass.init.call(this,_13);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);}if(this.element){var oEl=this.element;var _1c=YAHOO.util.CustomEvent;Dom.addClass(oEl,this.CSS_CLASS_NAME);if(YAHOO.widget.MenuModule._initEventHandlers){var _1d=document;var _1e=YAHOO.widget.MenuModule._onDOMEvent;_16.addListener(_1d,"mouseover",_1e);_16.addListener(_1d,"mouseout",_1e);_16.addListener(_1d,"mousedown",_1e);_16.addListener(_1d,"mouseup",_1e);_16.addListener(_1d,"click",_1e);_16.addListener(_1d,"keydown",_1e);_16.addListener(_1d,"keyup",_1e);_16.addListener(_1d,"keypress",_1e);YAHOO.widget.MenuModule._initEventHandlers=false;}this.mouseOverEvent=new _1c("mouseOverEvent",this);this.mouseOutEvent=new _1c("mouseOutEvent",this);this.mouseDownEvent=new _1c("mouseDownEvent",this);this.mouseUpEvent=new _1c("mouseUpEvent",this);this.clickEvent=new _1c("clickEvent",this);this.keyPressEvent=new _1c("keyPressEvent",this);this.keyDownEvent=new _1c("keyDownEvent",this);this.keyUpEvent=new _1c("keyUpEvent",this);this.initEvent.subscribe(this._onInit,this,true);this.beforeRenderEvent.subscribe(this._onBeforeRender,this,true);this.renderEvent.subscribe(this._onRender,this,true);this.showEvent.subscribe(this._onShow,this,true);this.beforeHideEvent.subscribe(this._onBeforeHide,this,true);if(_14){this.cfg.applyConfig(_14,true);}this.cfg.queueProperty("visible",false);if(this.srcElement){this._initSubTree();}YAHOO.widget.MenuModule._menus[oEl.id]=this;}this.initEvent.fire(YAHOO.widget.MenuModule);};YAHOO.widget.MenuModule.prototype._initSubTree=function(){var _1f;switch(this.srcElement.tagName){case "DIV":if(this._aListElements.length>0){var i=this._aListElements.length-1;do{_1f=this._aListElements[i].firstChild;do{switch(_1f.tagName){case "LI":this.addItem(new this.ITEM_TYPE(_1f),i);break;}}while((_1f=_1f.nextSibling));}while(i--);}break;case "SELECT":_1f=this.srcElement.firstChild;do{switch(_1f.tagName){case "OPTGROUP":case "OPTION":this.addItem(new this.ITEM_TYPE(_1f));break;}}while((_1f=_1f.nextSibling));break;}};YAHOO.widget.MenuModule.prototype._getFirstEnabledItem=function(){var _21=this._aItemGroups.length;var _22;var _23;for(var i=0;i<_21;i++){_23=this._aItemGroups[i];if(_23){var _25=_23.length;for(var n=0;n<_25;n++){_22=_23[n];if(!_22.cfg.getProperty("disabled")&&_22.element.style.display!="none"){return _22;}_22=null;}}}};YAHOO.widget.MenuModule.prototype._checkPosition=function(_27){if(typeof _27=="string"){var _28=_27.toLowerCase();return ("dynamic,static".indexOf(_28)!=-1);}};YAHOO.widget.MenuModule.prototype._addItemToGroup=function(_29,_2a,_2b){var Dom=this._oDom;var _2d;if(_2a instanceof this.ITEM_TYPE){_2d=_2a;}else{if(typeof _2a=="string"){_2d=new this.ITEM_TYPE(_2a);}}if(_2d){var _2e=Dom.generateId();_2d.element.setAttribute("yuiid",_2e);YAHOO.widget.MenuModule._menuItems[_2e]=_2d;var _2f=typeof _29=="number"?_29:0;var _30=this._getItemGroup(_2f);var _31;if(!_30){_30=this._createItemGroup(_2f);}if(typeof _2b=="number"){var _32=(_2b>=_30.length);if(_30[_2b]){_30.splice(_2b,0,_2d);}else{_30[_2b]=_2d;}_31=_30[_2b];if(_31){if(_32&&(!_31.element.parentNode||_31.element.parentNode.nodeType==11)){this._aListElements[_2f].appendChild(_31.element);}else{function getNextItemSibling(_33,_34){return (_33[_34]||getNextItemSibling(_33,(_34+1)));}var _35=getNextItemSibling(_30,(_2b+1));if(_35&&(!_31.element.parentNode||_31.element.parentNode.nodeType==11)){this._aListElements[_2f].insertBefore(_31.element,_35.element);}}_31.parent=this;this._subscribeToItemEvents(_31);this._configureItemSubmenuModule(_31);this._updateItemProperties(_2f);return _31;}}else{var _36=_30.length;_30[_36]=_2d;_31=_30[_36];if(_31){if(!Dom.isAncestor(this._aListElements[_2f],_31.element)){this._aListElements[_2f].appendChild(_31.element);}_31.element.setAttribute("groupindex",_2f);_31.element.setAttribute("index",_36);_31.parent=this;_31.index=_36;_31.groupIndex=_2f;this._subscribeToItemEvents(_31);this._configureItemSubmenuModule(_31);if(_36===0){Dom.addClass(_31.element,"first-of-type");}return _31;}}}};YAHOO.widget.MenuModule.prototype._removeItemFromGroupByIndex=function(_37,_38){var _39=typeof _37=="number"?_37:0;var _3a=this._getItemGroup(_39);if(_3a){var _3b=_3a.splice(_38,1);var _3c=_3b[0];if(_3c){this._updateItemProperties(_39);if(_3a.length===0){var oUL=this._aListElements[_39];if(this.body&&oUL){this.body.removeChild(oUL);}this._aItemGroups.splice(_39,1);this._aListElements.splice(_39,1);oUL=this._aListElements[0];if(oUL){this._oDom.addClass(oUL,"first-of-type");}}return _3c;}}};YAHOO.widget.MenuModule.prototype._removeItemFromGroupByValue=function(_3e,_3f){var _40=this._getItemGroup(_3e);if(_40){var _41=_40.length;var _42=-1;if(_41>0){var i=_41-1;do{if(_40[i]==_3f){_42=i;break;}}while(i--);if(_42>-1){return this._removeItemFromGroupByIndex(_3e,_42);}}}};YAHOO.widget.MenuModule.prototype._updateItemProperties=function(_44){var _45=this._getItemGroup(_44);var _46=_45.length;if(_46>0){var Dom=this._oDom;var i=_46-1;var _49;var oLI;do{_49=_45[i];if(_49){oLI=_49.element;_49.index=i;_49.groupIndex=_44;oLI.setAttribute("groupindex",_44);oLI.setAttribute("index",i);Dom.removeClass(oLI,"first-of-type");}}while(i--);if(oLI){Dom.addClass(oLI,"first-of-type");}}};YAHOO.widget.MenuModule.prototype._createItemGroup=function(_4b){if(!this._aItemGroups[_4b]){this._aItemGroups[_4b]=[];var oUL=document.createElement("ul");this._aListElements[_4b]=oUL;return this._aItemGroups[_4b];}};YAHOO.widget.MenuModule.prototype._getItemGroup=function(_4d){var _4e=((typeof _4d=="number")?_4d:0);return this._aItemGroups[_4e];};YAHOO.widget.MenuModule.prototype._configureItemSubmenuModule=function(_4f){var _50=_4f.cfg.getProperty("submenu");if(_50){this.cfg.configChangedEvent.subscribe(this._onParentMenuModuleConfigChange,_50,true);this.renderEvent.subscribe(this._onParentMenuModuleRender,_50,true);_50.beforeShowEvent.subscribe(this._onSubmenuBeforeShow,_50,true);_50.showEvent.subscribe(this._onSubmenuShow,_50,true);_50.hideEvent.subscribe(this._onSubmenuHide,_50,true);}};YAHOO.widget.MenuModule.prototype._subscribeToItemEvents=function(_51){var _52=[this,_51];_51.focusEvent.subscribe(this._onItemFocus,_52);_51.blurEvent.subscribe(this._onItemBlur,_52);_51.cfg.configChangedEvent.subscribe(this._onItemConfigChange,_52);};YAHOO.widget.MenuModule.prototype._getOffsetWidth=function(){var _53=this.element.cloneNode(true);this._oDom.setStyle(_53,"width","");document.body.appendChild(_53);var _54=_53.offsetWidth;document.body.removeChild(_53);return _54;};YAHOO.widget.MenuModule.prototype._onInit=function(_55,_56,_57){var _58=(this.cfg.getProperty("position")=="static")?"static":"absolute";this._oDom.setStyle(this.element,"position",_58);};YAHOO.widget.MenuModule.prototype._onBeforeRender=function(_59,_5a,_5b){var Dom=this._oDom;var _5d=this.cfg;var oEl=this.element;var _5f=this._aListElements.length;if(_5d.getProperty("position")=="static"){_5d.queueProperty("iframe",false);_5d.queueProperty("visible",true);}if(_5f>0){var i=0;var _61=true;var oUL;var _63;do{oUL=this._aListElements[i];if(oUL){if(_61){Dom.addClass(oUL,"first-of-type");_61=false;}if(!Dom.isAncestor(oEl,oUL)){this.appendToBody(oUL);}_63=this._aGroupTitleElements[i];if(_63){if(!Dom.isAncestor(oEl,_63)){oUL.parentNode.insertBefore(_63,oUL);}Dom.addClass(oUL,"hastitle");}}i++;}while(i<_5f);}};YAHOO.widget.MenuModule.prototype._onRender=function(_64,_65,_66){if(this.cfg.getProperty("position")=="dynamic"){var _67=this.element.parentNode.tagName=="BODY"?this.element.offsetWidth:this._getOffsetWidth();this.cfg.setProperty("width",(_67+"px"));}};YAHOO.widget.MenuModule.prototype._onShow=function(_68,_69,_6a){this.setInitialFocus();};YAHOO.widget.MenuModule.prototype._onBeforeHide=function(_6b,_6c,_6d){var _6e=this.activeItem;if(_6e){_6e.blur();if(_6e.cfg.getProperty("selected")){_6e.cfg.setProperty("selected",false);}var _6f=_6e.cfg.getProperty("submenu");if(_6f&&_6f.cfg.getProperty("visible")){_6f.hide();}}};YAHOO.widget.MenuModule.prototype._onParentMenuModuleConfigChange=function(_70,_71,_72){var _73=_71[0][0];var _74=_71[0][1];switch(_73){case "iframe":case "constraintoviewport":_72.cfg.setProperty(_73,_74);break;}};YAHOO.widget.MenuModule.prototype._onParentMenuModuleRender=function(_75,_76,_77){var _78=_77.parent.parent;var _79={constraintoviewport:_78.cfg.getProperty("constraintoviewport"),xy:[0,0]};if(this.cfg.getProperty("position")==_78.cfg.getProperty("position")){_79.iframe=_78.cfg.getProperty("iframe");}_77.cfg.applyConfig(_79);if(this._oDom.inDocument(this.element)){this.render();}else{this.render(this.parent.element);}};YAHOO.widget.MenuModule.prototype._onSubmenuBeforeShow=function(_7a,_7b,_7c){var _7d=this.parent;var _7e=_7d.parent.cfg.getProperty("submenualignment");this.cfg.setProperty("context",[_7d.element,_7e[0],_7e[1]]);_7d.submenuIndicator.alt=_7d.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onSubmenuShow=function(_7f,_80,_81){var _82=this.parent;_82.submenuIndicator.alt=_82.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onSubmenuHide=function(_83,_84,_85){var _86=this.parent;if(_86.parent.cfg.getProperty("visible")){_86.cfg.setProperty("selected",false);_86.focus();}_86.submenuIndicator.alt=_86.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onItemFocus=function(_87,_88,_89){var me=_89[0];var _8b=_89[1];me.activeItem=_8b;};YAHOO.widget.MenuModule.prototype._onItemBlur=function(_8c,_8d,_8e){var me=_8e[0];var _90=_8e[1];var _91=_90.cfg.getProperty("submenu");if(!_91||(_91&&!_91.cfg.getProperty("visible"))){me.activeItem=null;}};YAHOO.widget.MenuModule.prototype._onItemConfigChange=function(_92,_93,_94){var me=_94[0];var _96=_93[0][0];var _97=_94[1];switch(_96){case "submenu":var _98=_93[0][1];if(_98){me._configureItemSubmenuModule(_97);}break;case "text":case "helptext":if(me.element.style.width){var _99=me._getOffsetWidth()+"px";me._oDom.setStyle(me.element,"width",_99);}break;}};YAHOO.widget.MenuModule.prototype.enforceConstraints=function(_9a,_9b,obj){var Dom=this._oDom;var _9e=this.cfg;var pos=_9b[0];var x=pos[0];var y=pos[1];var bod=document.getElementsByTagName("body")[0];var htm=document.getElementsByTagName("html")[0];var _a4=Dom.getStyle(bod,"overflow");var _a5=Dom.getStyle(htm,"overflow");var _a6=this.element.offsetHeight;var _a7=this.element.offsetWidth;var _a8=Dom.getClientWidth();var _a9=Dom.getClientHeight();var _aa=window.scrollX||document.body.scrollLeft;var _ab=window.scrollY||document.body.scrollTop;var _ac=_ab+10;var _ad=_aa+10;var _ae=_ab+_a9-_a6-10;var _af=_aa+_a8-_a7-10;var _b0=_9e.getProperty("context");var _b1=_b0?_b0[0]:null;if(x<10){x=_ad;}else{if((x+_a7)>_a8){if(_b1&&((x-_b1.offsetWidth)>_a7)){x=(x-(_b1.offsetWidth+_a7));}else{x=_af;}}}if(y<10){y=_ac;}else{if(y>_ae){if(_b1&&(y>_a6)){y=((y+_b1.offsetHeight)-_a6);}else{y=_ae;}}}_9e.setProperty("x",x,true);_9e.setProperty("y",y,true);};YAHOO.widget.MenuModule.prototype.configPosition=function(_b2,_b3,_b4){var _b5=_b3[0]=="static"?"static":"absolute";this._oDom.setStyle(this.element,"position",_b5);};YAHOO.widget.MenuModule.prototype.configIframe=function(_b6,_b7,_b8){if(this.cfg.getProperty("position")=="dynamic"){YAHOO.widget.MenuModule.superclass.configIframe.call(this,_b6,_b7,_b8);}};YAHOO.widget.MenuModule.prototype.toString=function(){return ("Menu "+this.id);};YAHOO.widget.MenuModule.prototype.setItemGroupTitle=function(_b9,_ba){if(typeof _b9=="string"&&_b9.length>0){var Dom=this._oDom;var _bc=typeof _ba=="number"?_ba:0;var _bd=this._aGroupTitleElements[_bc];if(_bd){_bd.innerHTML=_b9;}else{_bd=document.createElement(this.GROUP_TITLE_TAG_NAME);_bd.innerHTML=_b9;this._aGroupTitleElements[_bc]=_bd;}var i=this._aGroupTitleElements.length-1;var _bf;do{if(this._aGroupTitleElements[i]){Dom.removeClass(this._aGroupTitleElements[i],"first-of-type");_bf=i;}}while(i--);if(_bf!==null){Dom.addClass(this._aGroupTitleElements[_bf],"first-of-type");}}};YAHOO.widget.MenuModule.prototype.addItem=function(_c0,_c1){if(_c0){return this._addItemToGroup(_c1,_c0);}};YAHOO.widget.MenuModule.prototype.insertItem=function(_c2,_c3,_c4){if(_c2){return this._addItemToGroup(_c4,_c2,_c3);}};YAHOO.widget.MenuModule.prototype.removeItem=function(_c5,_c6){if(typeof _c5!="undefined"){var _c7;if(_c5 instanceof YAHOO.widget.MenuModuleItem){_c7=this._removeItemFromGroupByValue(_c6,_c5);}else{if(typeof _c5=="number"){_c7=this._removeItemFromGroupByIndex(_c6,_c5);}}if(_c7){_c7.destroy();return _c7;}}};YAHOO.widget.MenuModule.prototype.getItemGroups=function(){return this._aItemGroups;};YAHOO.widget.MenuModule.prototype.getItem=function(_c8,_c9){if(typeof _c8=="number"){var _ca=this._getItemGroup(_c9);if(_ca){return _ca[_c8];}}};YAHOO.widget.MenuModule.prototype.destroy=function(){this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();var _cb=this._aItemGroups.length;var _cc;var _cd;var _ce;var i;var n;if(_cb>0){i=_cb-1;do{_cd=this._aItemGroups[i];if(_cd){_cc=_cd.length;if(_cc>0){n=_cc-1;do{_ce=this._aItemGroups[i][n];if(_ce){_ce.destroy();}}while(n--);}}}while(i--);}YAHOO.widget.MenuModule.superclass.destroy.call(this);};YAHOO.widget.MenuModule.prototype.setInitialFocus=function(){var _d1=this._getFirstEnabledItem();if(_d1){_d1.focus();}};YAHOO.widget.MenuModule.prototype.setInitialSelection=function(){var _d2=this._getFirstEnabledItem();if(_d2){_d2.cfg.setProperty("selected",true);}};YAHOO.widget.MenuModule.prototype.clearActiveItem=function(){if(this.activeItem){var _d3=this.activeItem.cfg;_d3.setProperty("selected",false);var _d4=_d3.getProperty("submenu");if(_d4){_d4.hide();}}};YAHOO.widget.MenuModule.prototype.initDefaultConfig=function(){YAHOO.widget.MenuModule.superclass.initDefaultConfig.call(this);var _d5=this.cfg;_d5.addProperty("position",{value:"dynamic",handler:this.configPosition,validator:this._checkPosition});_d5.addProperty("submenualignment",{value:["tl","tr"]});};YAHOO.widget.MenuModuleItem=function(_d6,_d7){if(_d6){this.init(_d6,_d7);}};YAHOO.widget.MenuModuleItem.prototype={SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_nrm_1.gif",SELECTED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_hov_1.gif",DISABLED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_dim_1.gif",COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT:"Collapsed.  Click to expand.",EXPANDED_SUBMENU_INDICATOR_ALT_TEXT:"Expanded.  Click to collapse.",DISABLED_SUBMENU_INDICATOR_ALT_TEXT:"Disabled.",CSS_CLASS_NAME:"yuimenuitem",SUBMENU_TYPE:null,SUBMENU_ITEM_TYPE:null,IMG_ROOT:"http: 
add: else{oSubmenu.show();}}}},toString:function(){return("MenuBar "+this.id);},initDefaultConfig:function(){YAHOO.widget.MenuBar.superclass.initDefaultConfig.call(this);var oConfig=this.cfg;oConfig.addProperty("position",{value:"static",handler:this.configPosition,validator:this._checkPosition,supercedes:["visible"]});oConfig.addProperty("submenualignment",{value:["tl","bl"]});oConfig.addProperty("autosubmenudisplay",{value:false,validator:oConfig.checkBoolean});}});YAHOO.widget.MenuBarItem=function(p_oObject,p_oConfig){YAHOO.widget.MenuBarItem.superclass.constructor.call(this,p_oObject,p_oConfig);};YAHOO.extend(YAHOO.widget.MenuBarItem,YAHOO.widget.MenuItem,{init:function(p_oObject,p_oConfig){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;} 
context: YAHOO.widget.MenuModule=function(_1,_2){YAHOO.widget.MenuModule.superclass.constructor.call(this,_1,_2);};YAHOO.extend(YAHOO.widget.MenuModule,YAHOO.widget.Overlay);YAHOO.widget.MenuModule._initEventHandlers=true;YAHOO.widget.MenuModule._menus={};YAHOO.widget.MenuModule._menuItems={};YAHOO.widget.MenuModule._onDOMEvent=function(_3){var _4=YAHOO.util.Dom;var _5=YAHOO.util.Event;var _6=_5.getTarget(_3);var _7;function getMenuRootElement(_8){var _9;switch(_8.tagName){case "DIV":_9=_8.parentNode;if(_4.hasClass(_8,"bd")&&_9&&_9.tagName=="DIV"){return _9;}else{return _8;}break;case "LI":_7=_8;default:_9=_8.parentNode;if(_9){return getMenuRootElement(_9);}break;}}var _a=getMenuRootElement(_6);if(_a&&_a.id){var _b;var _c=YAHOO.widget.MenuModule._menus[_a.id];if(_7){var _d=_7.getAttribute("yuiid");if(_d){_b=YAHOO.widget.MenuModule._menuItems[_d];}}if(_c){var _e={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent"};var _f=_e[_3.type];switch(_3.type){case "mouseover":if(!_c._bFiredMouseOverEvent&&(_6==_c.element||_4.isAncestor(_c.element,_6))){_c.mouseOverEvent.fire(_3);_c._bFiredMouseOverEvent=true;_c._bFiredMouseOutEvent=false;}if(_b&&!_b._bFiredMouseOverEvent&&(_6==_b.element||_4.isAncestor(_b.element,_6))&&!_b.cfg.getProperty("disabled")){_b.mouseOverEvent.fire(_3);_b._bFiredMouseOverEvent=true;_b._bFiredMouseOutEvent=false;}break;case "mouseout":var _10=_5.getRelatedTarget(_3);var _11=false;if(_b){var _12=_b.cfg.getProperty("submenu");if(_12&&(_10==_12.element||_4.isAncestor(_12.element,_10))){_11=true;}}if(_b&&!_b._bFiredMouseOutEvent&&((_10!=_b.element&&!_4.isAncestor(_b.element,_10))||_11)&&!_b.cfg.getProperty("disabled")){_b.mouseOutEvent.fire(_3);_b._bFiredMouseOutEvent=true;_b._bFiredMouseOverEvent=false;}if(!_c._bFiredMouseOutEvent&&((_10!=_c.element&&!_4.isAncestor(_c.element,_10))||_11)){_c.mouseOutEvent.fire(_3);_c._bFiredMouseOutEvent=true;_c._bFiredMouseOverEvent=false;}break;default:if(_b&&!_b.cfg.getProperty("disabled")){_b[_f].fire(_3);}_c[_f].fire(_3);break;}}}};YAHOO.widget.MenuModule.prototype.CSS_CLASS_NAME="yuimenu";YAHOO.widget.MenuModule.prototype.ITEM_TYPE=null;YAHOO.widget.MenuModule.prototype.GROUP_TITLE_TAG_NAME="H6";YAHOO.widget.MenuModule.prototype._bFiredMouseOverEvent=false;YAHOO.widget.MenuModule.prototype._bFiredMouseOutEvent=false;YAHOO.widget.MenuModule.prototype._aGroupTitleElements=null;YAHOO.widget.MenuModule.prototype._aItemGroups=null;YAHOO.widget.MenuModule.prototype._aListElements=null;YAHOO.widget.MenuModule.prototype._oEventUtil=YAHOO.util.Event;YAHOO.widget.MenuModule.prototype._oDom=YAHOO.util.Dom;YAHOO.widget.MenuModule.prototype.activeItem=null;YAHOO.widget.MenuModule.prototype.parent=null;YAHOO.widget.MenuModule.prototype.srcElement=null;YAHOO.widget.MenuModule.prototype.mouseOverEvent=null;YAHOO.widget.MenuModule.prototype.mouseOutEvent=null;YAHOO.widget.MenuModule.prototype.mouseDownEvent=null;YAHOO.widget.MenuModule.prototype.mouseUpEvent=null;YAHOO.widget.MenuModule.prototype.clickEvent=null;YAHOO.widget.MenuModule.prototype.keyPressEvent=null;YAHOO.widget.MenuModule.prototype.keyDownEvent=null;YAHOO.widget.MenuModule.prototype.keyUpEvent=null;YAHOO.widget.MenuModule.prototype.init=function(_13,_14){var Dom=this._oDom;var _16=this._oEventUtil;if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuModuleItem;}this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];var _17;if(typeof _13=="string"){_17=document.getElementById(_13);}else{if(_13.tagName){_17=_13;}}if(_17){switch(_17.tagName){case "DIV":this.srcElement=_17;YAHOO.widget.MenuModule.superclass.init.call(this,_17);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);var _18=this.body.firstChild;var i=0;do{switch(_18.tagName){case this.GROUP_TITLE_TAG_NAME:this._aGroupTitleElements[i]=_18;break;case "UL":this._aListElements[i]=_18;this._aItemGroups[i]=[];i++;break;}}while((_18=_18.nextSibling));if(this._aListElements[0]){Dom.addClass(this._aListElements[0],"first-of-type");}break;case "SELECT":this.srcElement=_17;var sId=Dom.generateId();YAHOO.widget.MenuModule.superclass.init.call(this,sId);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);break;}}else{YAHOO.widget.MenuModule.superclass.init.call(this,_13);this.beforeInitEvent.fire(YAHOO.widget.MenuModule);}if(this.element){var oEl=this.element;var _1c=YAHOO.util.CustomEvent;Dom.addClass(oEl,this.CSS_CLASS_NAME);if(YAHOO.widget.MenuModule._initEventHandlers){var _1d=document;var _1e=YAHOO.widget.MenuModule._onDOMEvent;_16.addListener(_1d,"mouseover",_1e);_16.addListener(_1d,"mouseout",_1e);_16.addListener(_1d,"mousedown",_1e);_16.addListener(_1d,"mouseup",_1e);_16.addListener(_1d,"click",_1e);_16.addListener(_1d,"keydown",_1e);_16.addListener(_1d,"keyup",_1e);_16.addListener(_1d,"keypress",_1e);YAHOO.widget.MenuModule._initEventHandlers=false;}this.mouseOverEvent=new _1c("mouseOverEvent",this);this.mouseOutEvent=new _1c("mouseOutEvent",this);this.mouseDownEvent=new _1c("mouseDownEvent",this);this.mouseUpEvent=new _1c("mouseUpEvent",this);this.clickEvent=new _1c("clickEvent",this);this.keyPressEvent=new _1c("keyPressEvent",this);this.keyDownEvent=new _1c("keyDownEvent",this);this.keyUpEvent=new _1c("keyUpEvent",this);this.initEvent.subscribe(this._onInit,this,true);this.beforeRenderEvent.subscribe(this._onBeforeRender,this,true);this.renderEvent.subscribe(this._onRender,this,true);this.showEvent.subscribe(this._onShow,this,true);this.beforeHideEvent.subscribe(this._onBeforeHide,this,true);if(_14){this.cfg.applyConfig(_14,true);}this.cfg.queueProperty("visible",false);if(this.srcElement){this._initSubTree();}YAHOO.widget.MenuModule._menus[oEl.id]=this;}this.initEvent.fire(YAHOO.widget.MenuModule);};YAHOO.widget.MenuModule.prototype._initSubTree=function(){var _1f;switch(this.srcElement.tagName){case "DIV":if(this._aListElements.length>0){var i=this._aListElements.length-1;do{_1f=this._aListElements[i].firstChild;do{switch(_1f.tagName){case "LI":this.addItem(new this.ITEM_TYPE(_1f),i);break;}}while((_1f=_1f.nextSibling));}while(i--);}break;case "SELECT":_1f=this.srcElement.firstChild;do{switch(_1f.tagName){case "OPTGROUP":case "OPTION":this.addItem(new this.ITEM_TYPE(_1f));break;}}while((_1f=_1f.nextSibling));break;}};YAHOO.widget.MenuModule.prototype._getFirstEnabledItem=function(){var _21=this._aItemGroups.length;var _22;var _23;for(var i=0;i<_21;i++){_23=this._aItemGroups[i];if(_23){var _25=_23.length;for(var n=0;n<_25;n++){_22=_23[n];if(!_22.cfg.getProperty("disabled")&&_22.element.style.display!="none"){return _22;}_22=null;}}}};YAHOO.widget.MenuModule.prototype._checkPosition=function(_27){if(typeof _27=="string"){var _28=_27.toLowerCase();return ("dynamic,static".indexOf(_28)!=-1);}};YAHOO.widget.MenuModule.prototype._addItemToGroup=function(_29,_2a,_2b){var Dom=this._oDom;var _2d;if(_2a instanceof this.ITEM_TYPE){_2d=_2a;}else{if(typeof _2a=="string"){_2d=new this.ITEM_TYPE(_2a);}}if(_2d){var _2e=Dom.generateId();_2d.element.setAttribute("yuiid",_2e);YAHOO.widget.MenuModule._menuItems[_2e]=_2d;var _2f=typeof _29=="number"?_29:0;var _30=this._getItemGroup(_2f);var _31;if(!_30){_30=this._createItemGroup(_2f);}if(typeof _2b=="number"){var _32=(_2b>=_30.length);if(_30[_2b]){_30.splice(_2b,0,_2d);}else{_30[_2b]=_2d;}_31=_30[_2b];if(_31){if(_32&&(!_31.element.parentNode||_31.element.parentNode.nodeType==11)){this._aListElements[_2f].appendChild(_31.element);}else{function getNextItemSibling(_33,_34){return (_33[_34]||getNextItemSibling(_33,(_34+1)));}var _35=getNextItemSibling(_30,(_2b+1));if(_35&&(!_31.element.parentNode||_31.element.parentNode.nodeType==11)){this._aListElements[_2f].insertBefore(_31.element,_35.element);}}_31.parent=this;this._subscribeToItemEvents(_31);this._configureItemSubmenuModule(_31);this._updateItemProperties(_2f);return _31;}}else{var _36=_30.length;_30[_36]=_2d;_31=_30[_36];if(_31){if(!Dom.isAncestor(this._aListElements[_2f],_31.element)){this._aListElements[_2f].appendChild(_31.element);}_31.element.setAttribute("groupindex",_2f);_31.element.setAttribute("index",_36);_31.parent=this;_31.index=_36;_31.groupIndex=_2f;this._subscribeToItemEvents(_31);this._configureItemSubmenuModule(_31);if(_36===0){Dom.addClass(_31.element,"first-of-type");}return _31;}}}};YAHOO.widget.MenuModule.prototype._removeItemFromGroupByIndex=function(_37,_38){var _39=typeof _37=="number"?_37:0;var _3a=this._getItemGroup(_39);if(_3a){var _3b=_3a.splice(_38,1);var _3c=_3b[0];if(_3c){this._updateItemProperties(_39);if(_3a.length===0){var oUL=this._aListElements[_39];if(this.body&&oUL){this.body.removeChild(oUL);}this._aItemGroups.splice(_39,1);this._aListElements.splice(_39,1);oUL=this._aListElements[0];if(oUL){this._oDom.addClass(oUL,"first-of-type");}}return _3c;}}};YAHOO.widget.MenuModule.prototype._removeItemFromGroupByValue=function(_3e,_3f){var _40=this._getItemGroup(_3e);if(_40){var _41=_40.length;var _42=-1;if(_41>0){var i=_41-1;do{if(_40[i]==_3f){_42=i;break;}}while(i--);if(_42>-1){return this._removeItemFromGroupByIndex(_3e,_42);}}}};YAHOO.widget.MenuModule.prototype._updateItemProperties=function(_44){var _45=this._getItemGroup(_44);var _46=_45.length;if(_46>0){var Dom=this._oDom;var i=_46-1;var _49;var oLI;do{_49=_45[i];if(_49){oLI=_49.element;_49.index=i;_49.groupIndex=_44;oLI.setAttribute("groupindex",_44);oLI.setAttribute("index",i);Dom.removeClass(oLI,"first-of-type");}}while(i--);if(oLI){Dom.addClass(oLI,"first-of-type");}}};YAHOO.widget.MenuModule.prototype._createItemGroup=function(_4b){if(!this._aItemGroups[_4b]){this._aItemGroups[_4b]=[];var oUL=document.createElement("ul");this._aListElements[_4b]=oUL;return this._aItemGroups[_4b];}};YAHOO.widget.MenuModule.prototype._getItemGroup=function(_4d){var _4e=((typeof _4d=="number")?_4d:0);return this._aItemGroups[_4e];};YAHOO.widget.MenuModule.prototype._configureItemSubmenuModule=function(_4f){var _50=_4f.cfg.getProperty("submenu");if(_50){this.cfg.configChangedEvent.subscribe(this._onParentMenuModuleConfigChange,_50,true);this.renderEvent.subscribe(this._onParentMenuModuleRender,_50,true);_50.beforeShowEvent.subscribe(this._onSubmenuBeforeShow,_50,true);_50.showEvent.subscribe(this._onSubmenuShow,_50,true);_50.hideEvent.subscribe(this._onSubmenuHide,_50,true);}};YAHOO.widget.MenuModule.prototype._subscribeToItemEvents=function(_51){var _52=[this,_51];_51.focusEvent.subscribe(this._onItemFocus,_52);_51.blurEvent.subscribe(this._onItemBlur,_52);_51.cfg.configChangedEvent.subscribe(this._onItemConfigChange,_52);};YAHOO.widget.MenuModule.prototype._getOffsetWidth=function(){var _53=this.element.cloneNode(true);this._oDom.setStyle(_53,"width","");document.body.appendChild(_53);var _54=_53.offsetWidth;document.body.removeChild(_53);return _54;};YAHOO.widget.MenuModule.prototype._onInit=function(_55,_56,_57){var _58=(this.cfg.getProperty("position")=="static")?"static":"absolute";this._oDom.setStyle(this.element,"position",_58);};YAHOO.widget.MenuModule.prototype._onBeforeRender=function(_59,_5a,_5b){var Dom=this._oDom;var _5d=this.cfg;var oEl=this.element;var _5f=this._aListElements.length;if(_5d.getProperty("position")=="static"){_5d.queueProperty("iframe",false);_5d.queueProperty("visible",true);}if(_5f>0){var i=0;var _61=true;var oUL;var _63;do{oUL=this._aListElements[i];if(oUL){if(_61){Dom.addClass(oUL,"first-of-type");_61=false;}if(!Dom.isAncestor(oEl,oUL)){this.appendToBody(oUL);}_63=this._aGroupTitleElements[i];if(_63){if(!Dom.isAncestor(oEl,_63)){oUL.parentNode.insertBefore(_63,oUL);}Dom.addClass(oUL,"hastitle");}}i++;}while(i<_5f);}};YAHOO.widget.MenuModule.prototype._onRender=function(_64,_65,_66){if(this.cfg.getProperty("position")=="dynamic"){var _67=this.element.parentNode.tagName=="BODY"?this.element.offsetWidth:this._getOffsetWidth();this.cfg.setProperty("width",(_67+"px"));}};YAHOO.widget.MenuModule.prototype._onShow=function(_68,_69,_6a){this.setInitialFocus();};YAHOO.widget.MenuModule.prototype._onBeforeHide=function(_6b,_6c,_6d){var _6e=this.activeItem;if(_6e){_6e.blur();if(_6e.cfg.getProperty("selected")){_6e.cfg.setProperty("selected",false);}var _6f=_6e.cfg.getProperty("submenu");if(_6f&&_6f.cfg.getProperty("visible")){_6f.hide();}}};YAHOO.widget.MenuModule.prototype._onParentMenuModuleConfigChange=function(_70,_71,_72){var _73=_71[0][0];var _74=_71[0][1];switch(_73){case "iframe":case "constraintoviewport":_72.cfg.setProperty(_73,_74);break;}};YAHOO.widget.MenuModule.prototype._onParentMenuModuleRender=function(_75,_76,_77){var _78=_77.parent.parent;var _79={constraintoviewport:_78.cfg.getProperty("constraintoviewport"),xy:[0,0]};if(this.cfg.getProperty("position")==_78.cfg.getProperty("position")){_79.iframe=_78.cfg.getProperty("iframe");}_77.cfg.applyConfig(_79);if(this._oDom.inDocument(this.element)){this.render();}else{this.render(this.parent.element);}};YAHOO.widget.MenuModule.prototype._onSubmenuBeforeShow=function(_7a,_7b,_7c){var _7d=this.parent;var _7e=_7d.parent.cfg.getProperty("submenualignment");this.cfg.setProperty("context",[_7d.element,_7e[0],_7e[1]]);_7d.submenuIndicator.alt=_7d.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onSubmenuShow=function(_7f,_80,_81){var _82=this.parent;_82.submenuIndicator.alt=_82.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onSubmenuHide=function(_83,_84,_85){var _86=this.parent;if(_86.parent.cfg.getProperty("visible")){_86.cfg.setProperty("selected",false);_86.focus();}_86.submenuIndicator.alt=_86.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT;};YAHOO.widget.MenuModule.prototype._onItemFocus=function(_87,_88,_89){var me=_89[0];var _8b=_89[1];me.activeItem=_8b;};YAHOO.widget.MenuModule.prototype._onItemBlur=function(_8c,_8d,_8e){var me=_8e[0];var _90=_8e[1];var _91=_90.cfg.getProperty("submenu");if(!_91||(_91&&!_91.cfg.getProperty("visible"))){me.activeItem=null;}};YAHOO.widget.MenuModule.prototype._onItemConfigChange=function(_92,_93,_94){var me=_94[0];var _96=_93[0][0];var _97=_94[1];switch(_96){case "submenu":var _98=_93[0][1];if(_98){me._configureItemSubmenuModule(_97);}break;case "text":case "helptext":if(me.element.style.width){var _99=me._getOffsetWidth()+"px";me._oDom.setStyle(me.element,"width",_99);}break;}};YAHOO.widget.MenuModule.prototype.enforceConstraints=function(_9a,_9b,obj){var Dom=this._oDom;var _9e=this.cfg;var pos=_9b[0];var x=pos[0];var y=pos[1];var bod=document.getElementsByTagName("body")[0];var htm=document.getElementsByTagName("html")[0];var _a4=Dom.getStyle(bod,"overflow");var _a5=Dom.getStyle(htm,"overflow");var _a6=this.element.offsetHeight;var _a7=this.element.offsetWidth;var _a8=Dom.getClientWidth();var _a9=Dom.getClientHeight();var _aa=window.scrollX||document.body.scrollLeft;var _ab=window.scrollY||document.body.scrollTop;var _ac=_ab+10;var _ad=_aa+10;var _ae=_ab+_a9-_a6-10;var _af=_aa+_a8-_a7-10;var _b0=_9e.getProperty("context");var _b1=_b0?_b0[0]:null;if(x<10){x=_ad;}else{if((x+_a7)>_a8){if(_b1&&((x-_b1.offsetWidth)>_a7)){x=(x-(_b1.offsetWidth+_a7));}else{x=_af;}}}if(y<10){y=_ac;}else{if(y>_ae){if(_b1&&(y>_a6)){y=((y+_b1.offsetHeight)-_a6);}else{y=_ae;}}}_9e.setProperty("x",x,true);_9e.setProperty("y",y,true);};YAHOO.widget.MenuModule.prototype.configPosition=function(_b2,_b3,_b4){var _b5=_b3[0]=="static"?"static":"absolute";this._oDom.setStyle(this.element,"position",_b5);};YAHOO.widget.MenuModule.prototype.configIframe=function(_b6,_b7,_b8){if(this.cfg.getProperty("position")=="dynamic"){YAHOO.widget.MenuModule.superclass.configIframe.call(this,_b6,_b7,_b8);}};YAHOO.widget.MenuModule.prototype.toString=function(){return ("Menu "+this.id);};YAHOO.widget.MenuModule.prototype.setItemGroupTitle=function(_b9,_ba){if(typeof _b9=="string"&&_b9.length>0){var Dom=this._oDom;var _bc=typeof _ba=="number"?_ba:0;var _bd=this._aGroupTitleElements[_bc];if(_bd){_bd.innerHTML=_b9;}else{_bd=document.createElement(this.GROUP_TITLE_TAG_NAME);_bd.innerHTML=_b9;this._aGroupTitleElements[_bc]=_bd;}var i=this._aGroupTitleElements.length-1;var _bf;do{if(this._aGroupTitleElements[i]){Dom.removeClass(this._aGroupTitleElements[i],"first-of-type");_bf=i;}}while(i--);if(_bf!==null){Dom.addClass(this._aGroupTitleElements[_bf],"first-of-type");}}};YAHOO.widget.MenuModule.prototype.addItem=function(_c0,_c1){if(_c0){return this._addItemToGroup(_c1,_c0);}};YAHOO.widget.MenuModule.prototype.insertItem=function(_c2,_c3,_c4){if(_c2){return this._addItemToGroup(_c4,_c2,_c3);}};YAHOO.widget.MenuModule.prototype.removeItem=function(_c5,_c6){if(typeof _c5!="undefined"){var _c7;if(_c5 instanceof YAHOO.widget.MenuModuleItem){_c7=this._removeItemFromGroupByValue(_c6,_c5);}else{if(typeof _c5=="number"){_c7=this._removeItemFromGroupByIndex(_c6,_c5);}}if(_c7){_c7.destroy();return _c7;}}};YAHOO.widget.MenuModule.prototype.getItemGroups=function(){return this._aItemGroups;};YAHOO.widget.MenuModule.prototype.getItem=function(_c8,_c9){if(typeof _c8=="number"){var _ca=this._getItemGroup(_c9);if(_ca){return _ca[_c8];}}};YAHOO.widget.MenuModule.prototype.destroy=function(){this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();var _cb=this._aItemGroups.length;var _cc;var _cd;var _ce;var i;var n;if(_cb>0){i=_cb-1;do{_cd=this._aItemGroups[i];if(_cd){_cc=_cd.length;if(_cc>0){n=_cc-1;do{_ce=this._aItemGroups[i][n];if(_ce){_ce.destroy();}}while(n--);}}}while(i--);}YAHOO.widget.MenuModule.superclass.destroy.call(this);};YAHOO.widget.MenuModule.prototype.setInitialFocus=function(){var _d1=this._getFirstEnabledItem();if(_d1){_d1.focus();}};YAHOO.widget.MenuModule.prototype.setInitialSelection=function(){var _d2=this._getFirstEnabledItem();if(_d2){_d2.cfg.setProperty("selected",true);}};YAHOO.widget.MenuModule.prototype.clearActiveItem=function(){if(this.activeItem){var _d3=this.activeItem.cfg;_d3.setProperty("selected",false);var _d4=_d3.getProperty("submenu");if(_d4){_d4.hide();}}};YAHOO.widget.MenuModule.prototype.initDefaultConfig=function(){YAHOO.widget.MenuModule.superclass.initDefaultConfig.call(this);var _d5=this.cfg;_d5.addProperty("position",{value:"dynamic",handler:this.configPosition,validator:this._checkPosition});_d5.addProperty("submenualignment",{value:["tl","tr"]});};YAHOO.widget.MenuModuleItem=function(_d6,_d7){if(_d6){this.init(_d6,_d7);}};YAHOO.widget.MenuModuleItem.prototype={SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_nrm_1.gif",SELECTED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_hov_1.gif",DISABLED_SUBMENU_INDICATOR_IMAGE_PATH:"nt/ic/ut/alt1/menuarorght8_dim_1.gif",COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT:"Collapsed.  Click to expand.",EXPANDED_SUBMENU_INDICATOR_ALT_TEXT:"Expanded.  Click to collapse.",DISABLED_SUBMENU_INDICATOR_ALT_TEXT:"Disabled.",CSS_CLASS_NAME:"yuimenuitem",SUBMENU_TYPE:null,SUBMENU_ITEM_TYPE:null,IMG_ROOT:"http://us.i1.yimg.com/us.yimg.com/i/",IMG_ROOT_SSL:"https://a248.e.akamai.net/sec.yimg.com/i/",_oAnchor:null,_oText:null,_oHelpTextEM:null,_oSubmenu:null,_oDom:YAHOO.util.Dom,_bFiredMouseOverEvent:false,_bFiredMouseOutEvent:false,constructor:YAHOO.widget.MenuModuleItem,imageRoot:null,isSecure:YAHOO.widget.Module.prototype.isSecure,index:null,groupIndex:null,parent:null,element:null,srcElement:null,value:null,submenuIndicator:null,browser:YAHOO.widget.Module.prototype.browser,destroyEvent:null,mouseOverEvent:null,mouseOutEvent:null,mouseDownEvent:null,mouseUpEvent:null,clickEvent:null,keyPressEvent:null,keyDownEvent:null,keyUpEvent:null,focusEvent:null,blurEvent:null,init:function(_d8,_d9){this.imageRoot=(this.isSecure)?this.IMG_ROOT_SSL:this.IMG_ROOT;if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.MenuModule;}if(!this.SUBMENU_ITEM_TYPE){this.SUBMENU_ITEM_TYPE=YAHOO.widget.MenuModuleItem;}this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();var _da=this.cfg;if(this._checkString(_d8)){this._createRootNodeStructure();_da.setProperty("text",_d8);}else{if(this._checkDOMNode(_d8)){switch(_d8.tagName){case "OPTION":this._createRootNodeStructure();_da.setProperty("text",_d8.text);this.srcElement=_d8;break;case "OPTGROUP":this._createRootNodeStructure();_da.setProperty("text",_d8.label);this.srcElement=_d8;this._initSubTree();break;case "LI":var _db=this._getFirstElement(_d8,"A");var _dc="#";var _dd=null;var _de=null;if(_db){_dc=_db.getAttribute("href");_dd=_db.getAttribute("target");if(_db.innerText){_de=_db.innerText;}else{var _df=_db.ownerDocument.createRange();_df.selectNodeContents(_db);_de=_df.toString();}}else{var _e0=_d8.firstChild;_de=_e0.nodeValue;_db=document.createElement("a");_db.setAttribute("href",_dc);_d8.replaceChild(_db,_e0);_db.appendChild(_e0);}this.srcElement=_d8;this.element=_d8;this._oAnchor=_db;var _e1=this._getFirstElement(_db);var _e2=false;var _e3=false;if(_e1){this._oText=_e1.firstChild;switch(_e1.tagName){case "EM":_e2=true;break;case "STRONG":_e3=true;break;}}else{this._oText=_db.firstChild;}_da.setProperty("text",_de,true);_da.setProperty("url",_dc,true);_da.setProperty("target",_dd,true);_da.setProperty("emphasis",_e2,true);_da.setProperty("strongemphasis",_e3,true);this._initSubTree();break;}}}if(this.element){this._oDom.addClass(this.element,this.CSS_CLASS_NAME);var _e4=YAHOO.util.CustomEvent;this.destroyEvent=new _e4("destroyEvent",this);this.mouseOverEvent=new _e4("mouseOverEvent",this);this.mouseOutEvent=new _e4("mouseOutEvent",this);this.mouseDownEvent=new _e4("mouseDownEvent",this);this.mouseUpEvent=new _e4("mouseUpEvent",this);this.clickEvent=new _e4("clickEvent",this);this.keyPressEvent=new _e4("keyPressEvent",this);this.keyDownEvent=new _e4("keyDownEvent",this);this.keyUpEvent=new _e4("keyUpEvent",this);this.focusEvent=new _e4("focusEvent",this);this.blurEvent=new _e4("blurEvent",this);this.clickEvent.subscribe(this._onMenuModuleItemClick,this,true);if(_d9){_da.applyConfig(_d9);}_da.fireQueue();}},_getFirstElement:function(_e5,_e6){var _e7;if(_e5.firstChild&&_e5.firstChild.nodeType==1){_e7=_e5.firstChild;}else{if(_e5.firstChild&&_e5.firstChild.nextSibling&&_e5.firstChild.nextSibling.nodeType==1){_e7=_e5.firstChild.nextSibling;}}if(_e6){return (_e7&&_e7.tagName==_e6)?_e7:false;}return _e7;},_checkString:function(_e8){return (typeof _e8=="string");},_checkDOMNode:function(_e9){return (_e9&&_e9.tagName);},_createRootNodeStructure:function(){this.element=document.createElement("li");this._oText=document.createTextNode("");this._oAnchor=document.createElement("a");this._oAnchor.appendChild(this._oText);this.cfg.refireEvent("url");this.element.appendChild(this._oAnchor);},_initSubTree:function(){var _ea=this.SUBMENU_TYPE;var _eb=this.SUBMENU_ITEM_TYPE;var _ec=this.srcElement;var _ed=this.cfg;if(_ec.childNodes.length>0){var _ee=_ec.firstChild;var _ef=[];do{switch(_ee.tagName){case "DIV":_ed.setProperty("submenu",(new _ea(_ee)));break;case "OPTION":_ef[_ef.length]=_ee;break;}}while((_ee=_ee.nextSibling));var _f0=_ef.length;if(_f0>0){_ed.setProperty("submenu",(new _ea(this._oDom.generateId())));for(var n=0;n<_f0;n++){this._oSubmenu.addItem((new _eb(_ef[n])));}}}},_onMenuModuleItemClick:function(_f2,_f3,_f4){var _f5=YAHOO.util.Event;var _f6=_f3[0];var _f7=_f5.getTarget(_f6);var _f8=this.cfg.getProperty("submenu");if(_f7==this.submenuIndicator&&_f8){if(_f8.cfg.getProperty("visible")){_f8.hide();}else{var _f9=this.parent.activeItem;if(_f9&&_f9!=this){this.parent.clearActiveItem();}this.parent.activeItem=this;this.cfg.setProperty("selected",true);_f8.show();}}else{var _fa=this.cfg.getProperty("url");var _fb=(_fa.substr((_fa.length-1),1)=="#");var _fc=this.cfg.getProperty("target");var _fd=(_fc&&_fc.length>0);if(_f7.tagName=="A"&&_fb&&!_fd){_f5.preventDefault(_f6);}if(_f7.tagName!="A"&&!_fb&&!_fd){document.location=_fa;}}},configText:function(_fe,_ff,_100){var _101=_ff[0];if(this._oText){this._oText.nodeValue=_101;}},configHelpText:function(_102,_103,_104){var me=this;var Dom=this._oDom;var _107=_103[0];var oEl=this.element;var _109=this.cfg;var _10a=[oEl,this._oAnchor];var oImg=this.submenuIndicator;function initHelpText(){Dom.addClass(_10a,"hashelptext");if(_109.getProperty("disabled")){_109.refireEvent("disabled");}if(_109.getProperty("selected")){_109.refireEvent("selected");}}function removeHelpText(){Dom.removeClass(_10a,"hashelptext");oEl.removeChild(me._oHelpTextEM);me._oHelpTextEM=null;}if(this._checkDOMNode(_107)){if(this._oHelpTextEM){this._oHelpTextEM.parentNode.replaceChild(_107,this._oHelpTextEM);}else{this._oHelpTextEM=_107;oEl.insertBefore(this._oHelpTextEM,oImg);}initHelpText();}else{if(this._checkString(_107)){if(_107.length===0){removeHelpText();}else{if(!this._oHelpTextEM){this._oHelpTextEM=document.createElement("em");oEl.insertBefore(this._oHelpTextEM,oImg);}this._oHelpTextEM.innerHTML=_107;initHelpText();}}else{if(!_107&&this._oHelpTextEM){removeHelpText();}}}},configURL:function(_10c,_10d,_10e){var sURL=_10d[0];if(!sURL){sURL="#";}this._oAnchor.setAttribute("href",sURL);},configTarget:function(_110,_111,_112){var _113=_111[0];var _114=this._oAnchor;if(_113&&_113.length>0){_114.setAttribute("target",_113);}else{_114.removeAttribute("target");}},configEmphasis:function(_115,_116,_117){var _118=_116[0];var _119=this._oAnchor;var _11a=this._oText;var _11b=this.cfg;var oEM;if(_118&&_11b.getProperty("strongemphasis")){_11b.setProperty("strongemphasis",false);}if(_119){if(_118){oEM=document.createElement("em");oEM.appendChild(_11a);_119.appendChild(oEM);}else{oEM=this._getFirstElement(_119,"EM");_119.removeChild(oEM);_119.appendChild(_11a);}}},configStrongEmphasis:function(_11d,_11e,_11f){var _120=_11e[0];var _121=this._oAnchor;var _122=this._oText;var _123=this.cfg;var _124;if(_120&&_123.getProperty("emphasis")){_123.setProperty("emphasis",false);}if(_121){if(_120){_124=document.createElement("strong");_124.appendChild(_122);_121.appendChild(_124);}else{_124=this._getFirstElement(_121,"STRONG");_121.removeChild(_124);_121.appendChild(_122);}}},configDisabled:function(_125,_126,_127){var _128=_126[0];var Dom=this._oDom;var _12a=this._oAnchor;var _12b=[this.element,_12a];var oEM=this._oHelpTextEM;var _12d=this.cfg;var oImg=this.submenuIndicator;var _12f;var _130;if(oEM){_12b[2]=oEM;}if(_128){if(_12d.getProperty("selected")){_12d.setProperty("selected",false);}_12a.removeAttribute("href");Dom.addClass(_12b,"disabled");_12f=this.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH;_130=this.DISABLED_SUBMENU_INDICATOR_ALT_TEXT;}else{_12a.setAttribute("href",_12d.getProperty("url"));Dom.removeClass(_12b,"disabled");_12f=this.SUBMENU_INDICATOR_IMAGE_PATH;_130=this.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT;}if(oImg){oImg.src=this.imageRoot+_12f;oImg.alt=_130;}},configSelected:function(_131,_132,_133){if(!this.cfg.getProperty("disabled")){var Dom=this._oDom;var _135=_132[0];var oEM=this._oHelpTextEM;var _137=[this.element,this._oAnchor];var oImg=this.submenuIndicator;var _139;if(oEM){_137[_137.length]=oEM;}if(oImg){_137[_137.length]=oImg;}if(_135){Dom.addClass(_137,"selected");_139=this.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH;}else{Dom.removeClass(_137,"selected");_139=this.SUBMENU_INDICATOR_IMAGE_PATH;}if(oImg){oImg.src=document.images[(this.imageRoot+_139)].src;}}},configSubmenu:function(_13a,_13b,_13c){var Dom=this._oDom;var oEl=this.element;var _13f=_13b[0];var oImg=this.submenuIndicator;var _141=this.cfg;var _142=[this.element,this._oAnchor];if(_13f){_13f.parent=this;this._oSubmenu=_13f;if(!oImg){var me=this;function preloadImage(_144){var _145=me.imageRoot+_144;if(!document.images[_145]){var _146=document.createElement("img");_146.src=_145;_146.name=_145;_146.id=_145;_146.style.display="none";document.body.appendChild(_146);}}preloadImage(this.SUBMENU_INDICATOR_IMAGE_PATH);preloadImage(this.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH);preloadImage(this.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH);oImg=document.createElement("img");oImg.src=(this.imageRoot+this.SUBMENU_INDICATOR_IMAGE_PATH);oImg.alt=this.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT;oEl.appendChild(oImg);this.submenuIndicator=oImg;Dom.addClass(_142,"hassubmenu");if(_141.getProperty("disabled")){_141.refireEvent("disabled");}if(_141.getProperty("selected")){_141.refireEvent("selected");}}}else{Dom.removeClass(_142,"hassubmenu");if(oImg){oEl.removeChild(oImg);}if(this._oSubmenu){this._oSubmenu.destroy();}}},initDefaultConfig:function(){var _147=this.cfg;var _148=_147.checkBoolean;_147.addProperty("text",{value:"",handler:this.configText,validator:this._checkString,suppressEvent:true});_147.addProperty("helptext",{handler:this.configHelpText});_147.addProperty("url",{value:"#",handler:this.configURL,suppressEvent:true});_147.addProperty("target",{handler:this.configTarget,suppressEvent:true});_147.addProperty("emphasis",{value:false,handler:this.configEmphasis,validator:_148,suppressEvent:true});_147.addProperty("strongemphasis",{value:false,handler:this.configStrongEmphasis,validator:_148,suppressEvent:true});_147.addProperty("disabled",{value:false,handler:this.configDisabled,validator:_148,suppressEvent:true});_147.addProperty("selected",{value:false,handler:this.configSelected,validator:_148,suppressEvent:true});_147.addProperty("submenu",{handler:this.configSubmenu});},getNextEnabledSibling:function(){if(this.parent instanceof YAHOO.widget.MenuModule){var _149=this.groupIndex;function getNextArrayItem(_14a,_14b){return _14a[_14b]||getNextArrayItem(_14a,(_14b+1));}var _14c=this.parent.getItemGroups();var _14d;if(this.index<(_14c[_149].length-1)){_14d=getNextArrayItem(_14c[_149],(this.index+1));}else{var _14e;if(_149<(_14c.length-1)){_14e=_149+1;}else{_14e=0;}var _14f=getNextArrayItem(_14c,_14e);_14d=getNextArrayItem(_14f,0);}return (_14d.cfg.getProperty("disabled")||_14d.element.style.display=="none")?_14d.getNextEnabledSibling():_14d;}},getPreviousEnabledSibling:function(){if(this.parent instanceof YAHOO.widget.MenuModule){var _150=this.groupIndex;function getPreviousArrayItem(_151,_152){return _151[_152]||getPreviousArrayItem(_151,(_152-1));}function getFirstItemIndex(_153,_154){return _153[_154]?_154:getFirstItemIndex(_153,(_154+1));}var _155=this.parent.getItemGroups();var _156;if(this.index>getFirstItemIndex(_155[_150],0)){_156=getPreviousArrayItem(_155[_150],(this.index-1));}else{var _157;if(_150>getFirstItemIndex(_155,0)){_157=_150-1;}else{_157=_155.length-1;}var _158=getPreviousArrayItem(_155,_157);_156=getPreviousArrayItem(_158,(_158.length-1));}return (_156.cfg.getProperty("disabled")||_156.element.style.display=="none")?_156.getPreviousEnabledSibling():_156;}},focus:function(){var _159=this.parent;var _15a=this._oAnchor;var _15b=_159.activeItem;if(!this.cfg.getProperty("disabled")&&_159&&_159.cfg.getProperty("visible")&&this.element.style.display!="none"){if(_15b){_15b.blur();}_15a.focus();this.focusEvent.fire();}},blur:function(){var _15c=this.parent;if(!this.cfg.getProperty("disabled")&&_15c&&this._oDom.getStyle(_15c.element,"visibility")=="visible"){this._oAnchor.blur();this.blurEvent.fire();}},destroy:function(){var oEl=this.element;if(oEl){this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();this.focusEvent.unsubscribeAll();this.blurEvent.unsubscribeAll();this.cfg.configChangedEvent.unsubscribeAll();var _15e=oEl.parentNode;if(_15e){_15e.removeChild(oEl);this.destroyEvent.fire();}this.destroyEvent.unsubscribeAll();}}};YAHOO.widget.Menu=function(_15f,_160){YAHOO.widget.Menu.superclass.constructor.call(this,_15f,_160);};YAHOO.extend(YAHOO.widget.Menu,YAHOO.widget.MenuModule);YAHOO.widget.Menu.prototype.init=function(_161,_162){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuItem;}YAHOO.widget.Menu.superclass.init.call(this,_161);this.beforeInitEvent.fire(YAHOO.widget.Menu);this.showEvent.subscribe(this._onMenuShow,this,true);this.mouseOverEvent.subscribe(this._onMenuMouseOver,this,true);this.keyDownEvent.subscribe(this._onMenuKeyDown,this,true);if(_162){this.cfg.applyConfig(_162,true);}this.initEvent.fire(YAHOO.widget.Menu);};YAHOO.widget.Menu.prototype._onMenuShow=function(_163,_164,_165){var _166=this.parent;if(_166&&_166.parent instanceof YAHOO.widget.Menu){var _167=_166.parent.cfg.getProperty("submenualignment");this.cfg.setProperty("submenualignment",[_167[0],_167[1]]);}};YAHOO.widget.Menu.prototype._onMenuMouseOver=function(_168,_169,_16a){if(this.parent){this.parent.cfg.setProperty("selected",true);}};YAHOO.widget.Menu.prototype._onMenuKeyDown=function(_16b,_16c,_16d){if(this.cfg.getProperty("position")=="dynamic"){var _16e=_16c[0];var _16f=this.parent;if(_16e.keyCode==27){this.hide();if(_16f){_16f.focus();if(_16f.parent instanceof YAHOO.widget.Menu){_16f.cfg.setProperty("selected",true);}YAHOO.util.Event.preventDefault(_16e);}}}};YAHOO.widget.Menu.prototype.onDomResize=function(e,obj){if(!this._handleResize){this._handleResize=true;return;}var me=this;var _173=this.cfg;if(_173.getProperty("position")=="dynamic"){_173.setProperty("width",(this._getOffsetWidth()+"px"));if(this.parent&&_173.getProperty("visible")){function align(){me.align();}window.setTimeout(align,0);}}YAHOO.widget.Menu.superclass.onDomResize.call(this,e,obj);};YAHOO.widget.MenuItem=function(_174,_175){YAHOO.widget.MenuItem.superclass.constructor.call(this,_174,_175);};YAHOO.extend(YAHOO.widget.MenuItem,YAHOO.widget.MenuModuleItem);YAHOO.widget.MenuItem.prototype.init=function(_176,_177){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;}if(!this.SUBMENU_ITEM_TYPE){this.SUBMENU_ITEM_TYPE=YAHOO.widget.MenuItem;}YAHOO.widget.MenuItem.superclass.init.call(this,_176);this.keyDownEvent.subscribe(this._onKeyDown,this,true);this.mouseOverEvent.subscribe(this._onMouseOver,this,true);this.mouseOutEvent.subscribe(this._onMouseOut,this,true);this.clickEvent.subscribe(this._onClick,this,true);var _178=this.cfg;if(_177){_178.applyConfig(_177,true);}_178.fireQueue();};YAHOO.widget.MenuItem.prototype.CHECKED_IMAGE_PATH="nt/ic/ut/bsc/menuchk8_nrm_1.gif";YAHOO.widget.MenuItem.prototype.SELECTED_CHECKED_IMAGE_PATH="nt/ic/ut/bsc/menuchk8_hov_1.gif";YAHOO.widget.MenuItem.prototype.DISABLED_CHECKED_IMAGE_PATH="nt/ic/ut/bsc/menuchk8_dim_1.gif";YAHOO.widget.MenuItem.prototype.CHECKED_IMAGE_ALT_TEXT="Checked.";YAHOO.widget.MenuItem.prototype.DISABLED_CHECKED_IMAGE_ALT_TEXT="Checked. (Item disabled.)";YAHOO.widget.MenuItem.prototype._checkImage=null;YAHOO.widget.MenuItem.prototype._onKeyDown=function(_179,_17a,_17b){var _17c=YAHOO.util.Event;var _17d=_17a[0];var _17e=this.parent;var _17f=this.cfg;var _180;switch(_17d.keyCode){case 38:case 40:if(this==_17e.activeItem&&!_17f.getProperty("selected")){_17f.setProperty("selected",true);}else{var _181=(_17d.keyCode==38)?this.getPreviousEnabledSibling():this.getNextEnabledSibling();if(_181){_17e.clearActiveItem();_181.cfg.setProperty("selected",true);_181.focus();}}_17c.preventDefault(_17d);break;case 39:_17e.clearActiveItem();_17f.setProperty("selected",true);this.focus();var _182=_17f.getProperty("submenu");if(_182){_182.show();_182.setInitialSelection();}else{if(YAHOO.widget.MenuBarItem&&_17e.parent&&_17e.parent instanceof YAHOO.widget.MenuBarItem){_17e.hide();_180=_17e.parent;if(_180){_180.focus();_180.cfg.setProperty("selected",true);}}}_17c.preventDefault(_17d);break;case 37:if(_17e.parent){_17e.hide();_180=_17e.parent;if(_180){_180.focus();_180.cfg.setProperty("selected",true);}}_17c.preventDefault(_17d);break;}};YAHOO.widget.MenuItem.prototype._onMouseOver=function(_183,_184,_185){var _186=this.parent;var _187=this.cfg;var _188=_186.activeItem;if(_188&&_188!=this){_186.clearActiveItem();}_187.setProperty("selected",true);this.focus();var _189=_187.getProperty("submenu");if(_189){_189.show();}};YAHOO.widget.MenuItem.prototype._onMouseOut=function(_18a,_18b,_18c){var _18d=this.cfg;var _18e=_18d.getProperty("submenu");_18d.setProperty("selected",false);if(_18e){var _18f=_18b[0];var _190=YAHOO.util.Event.getRelatedTarget(_18f);if(!(_190==_18e.element||YAHOO.util.Dom.isAncestor(_18e.element,_190))){_18e.hide();}}};YAHOO.widget.MenuItem.prototype._onClick=function(_191,_192,_193){function findRoot(_194){var _195=_194.parent;if(_195){var _196=_195.parent;if(_196&&(_196 instanceof YAHOO.widget.Menu)&&_196.cfg.getProperty("position")=="dynamic"){return findRoot(_196);}}return _194;}var _197=findRoot(this.parent);var sURL=this.cfg.getProperty("url");if((sURL.substr((sURL.length-1),1)=="#")&&_197&&_197.cfg.getProperty("position")=="dynamic"){_197.hide();}};YAHOO.widget.MenuItem.prototype.configChecked=function(_199,_19a,_19b){var Dom=YAHOO.util.Dom;var _19d=_19a[0];var oEl=this.element;var _19f=this.cfg;var oImg;if(_19d){var me=this;function preloadImage(_1a2){var _1a3=me.imageRoot+_1a2;if(!document.images[_1a3]){var _1a4=document.createElement("img");_1a4.src=_1a3;_1a4.name=_1a3;_1a4.id=_1a3;_1a4.style.display="none";document.body.appendChild(_1a4);}}preloadImage(this.CHECKED_IMAGE_PATH);preloadImage(this.SELECTED_CHECKED_IMAGE_PATH);preloadImage(this.DISABLED_CHECKED_IMAGE_PATH);oImg=document.createElement("img");oImg.src=(this.imageRoot+this.CHECKED_IMAGE_PATH);oImg.alt=this.CHECKED_IMAGE_ALT_TEXT;var _1a5=this.cfg.getProperty("submenu");if(_1a5){oEl.insertBefore(oImg,_1a5.element);}else{oEl.appendChild(oImg);}Dom.addClass([oEl,oImg],"checked");this._checkImage=oImg;if(_19f.getProperty("disabled")){_19f.refireEvent("disabled");}if(_19f.getProperty("selected")){_19f.refireEvent("selected");}}else{oImg=this._checkImage;Dom.removeClass([oEl,oImg],"checked");if(oImg){oEl.removeChild(oImg);}this._checkImage=null;}};YAHOO.widget.MenuItem.prototype.configSelected=function(_1a6,_1a7,_1a8){YAHOO.widget.MenuItem.superclass.configSelected.call(this,_1a6,_1a7,_1a8);var _1a9=this.cfg;if(!_1a9.getProperty("disabled")&&_1a9.getProperty("checked")){var _1aa=_1a7[0];var sSrc=this.imageRoot+(_1aa?this.SELECTED_CHECKED_IMAGE_PATH:this.CHECKED_IMAGE_PATH);this._checkImage.src=document.images[sSrc].src;}};YAHOO.widget.MenuItem.prototype.configDisabled=function(_1ac,_1ad,_1ae){YAHOO.widget.MenuItem.superclass.configDisabled.call(this,_1ac,_1ad,_1ae);if(this.cfg.getProperty("checked")){var _1af=_1ad[0];var sAlt=this.CHECKED_IMAGE_ALT_TEXT;var sSrc=this.CHECKED_IMAGE_PATH;var oImg=this._checkImage;if(_1af){sAlt=this.DISABLED_CHECKED_IMAGE_ALT_TEXT;sSrc=this.DISABLED_CHECKED_IMAGE_PATH;}oImg.src=document.images[(this.imageRoot+sSrc)].src;oImg.alt=sAlt;}};YAHOO.widget.MenuItem.prototype.initDefaultConfig=function(){YAHOO.widget.MenuItem.superclass.initDefaultConfig.call(this);this.cfg.addProperty("checked",{value:false,handler:this.configChecked,validator:this.cfg.checkBoolean,suppressEvent:true,supercedes:["disabled"]});};YAHOO.widget.ContextMenu=function(_1b3,_1b4){YAHOO.widget.ContextMenu.superclass.constructor.call(this,_1b3,_1b4);};YAHOO.extend(YAHOO.widget.ContextMenu,YAHOO.widget.Menu);YAHOO.widget.ContextMenu._aMenus=[];YAHOO.widget.ContextMenu.prototype._oTrigger=null;YAHOO.widget.ContextMenu.prototype.contextEventTarget=null;YAHOO.widget.ContextMenu.prototype.init=function(_1b5,_1b6){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.ContextMenuItem;}YAHOO.widget.ContextMenu.superclass.init.call(this,_1b5);this.beforeInitEvent.fire(YAHOO.widget.ContextMenu);if(_1b6){this.cfg.applyConfig(_1b6,true);}this.initEvent.fire(YAHOO.widget.ContextMenu);var _1b7=YAHOO.widget.ContextMenu._aMenus;_1b7[_1b7.length]=this;};YAHOO.widget.ContextMenu.prototype._onDocumentClick=function(_1b8,_1b9){this.hide();};YAHOO.widget.ContextMenu.prototype._onTriggerClick=function(_1ba,_1bb){if(_1ba.ctrlKey){YAHOO.util.Event.stopEvent(_1ba);}};YAHOO.widget.ContextMenu.prototype._onTriggerContextMenu=function(_1bc,_1bd){var _1be=YAHOO.util.Event;var _1bf=this.cfg;var _1c0=YAHOO.widget.ContextMenu._aMenus;var i=_1c0.length-1;do{_1c0[i].hide();}while(i--);if(_1bc.type=="mousedown"&&!_1bc.ctrlKey){return;}this.contextEventTarget=_1be.getTarget(_1bc);var nX=_1be.getPageX(_1bc);var nY=_1be.getPageY(_1bc);_1bf.applyConfig({xy:[nX,nY],visible:true});_1bf.fireQueue();_1be.stopEvent(_1bc);};YAHOO.widget.ContextMenu.prototype.initDefaultConfig=function(){YAHOO.widget.ContextMenu.superclass.initDefaultConfig.call(this);this.cfg.addProperty("trigger",{handler:this.configTrigger});};YAHOO.widget.ContextMenu.prototype.configTrigger=function(_1c4,_1c5,_1c6){var _1c7=YAHOO.util.Event;var _1c8=_1c5[0];if(_1c8){if(this._oTrigger){_1c7.purgeElement(this._oTrigger);}this._oTrigger=_1c8;var _1c9=(this.browser=="opera");_1c7.addListener(_1c8,(_1c9?"mousedown":"contextmenu"),this._onTriggerContextMenu,this,true);if(_1c9){_1c7.addListener(_1c8,"click",this._onTriggerClick,this,true);}_1c7.addListener(document,"click",this._onDocumentClick,this,true);}};YAHOO.widget.ContextMenuItem=function(_1ca,_1cb){YAHOO.widget.ContextMenuItem.superclass.constructor.call(this,_1ca,_1cb);};YAHOO.extend(YAHOO.widget.ContextMenuItem,YAHOO.widget.MenuItem);YAHOO.widget.ContextMenuItem.prototype.init=function(_1cc,_1cd){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.ContextMenu;}if(!this.SUBMENU_ITEM_TYPE){this.SUBMENU_ITEM_TYPE=YAHOO.widget.ContextMenuItem;}YAHOO.widget.ContextMenuItem.superclass.init.call(this,_1cc);var _1ce=this.cfg;if(_1cd){_1ce.applyConfig(_1cd,true);}_1ce.fireQueue();};YAHOO.widget.MenuBar=function(_1cf,_1d0){YAHOO.widget.MenuBar.superclass.constructor.call(this,_1cf,_1d0);};YAHOO.extend(YAHOO.widget.MenuBar,YAHOO.widget.MenuModule);YAHOO.widget.MenuBar.prototype.init=function(_1d1,_1d2){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuBarItem;}YAHOO.widget.MenuBar.superclass.init.call(this,_1d1);this.beforeInitEvent.fire(YAHOO.widget.MenuBar);var _1d3=this.cfg;if(!_1d2||(_1d2&&!_1d2.position)){_1d3.queueProperty("position","static");}if(!_1d2||(_1d2&&!_1d2.submenualignment)){_1d3.queueProperty("submenualignment",["tl","bl"]);}if(_1d2){_1d3.applyConfig(_1d2,true);}this.initEvent.fire(YAHOO.widget.MenuBar);};YAHOO.widget.MenuBar.prototype.CSS_CLASS_NAME="yuimenubar";YAHOO.widget.MenuBarItem=function(_1d4,_1d5){YAHOO.widget.MenuBarItem.superclass.constructor.call(this,_1d4,_1d5);};YAHOO.extend(YAHOO.widget.MenuBarItem,YAHOO.widget.MenuModuleItem);YAHOO.widget.MenuBarItem.prototype.init=function(_1d6,_1d7){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;}if(!this.SUBMENU_ITEM_TYPE){this.SUBMENU_ITEM_TYPE=YAHOO.widget.MenuItem;}YAHOO.widget.MenuBarItem.superclass.init.call(this,_1d6);this.keyDownEvent.subscribe(this._onKeyDown,this,true);var _1d8=this.cfg;if(_1d7){_1d8.applyConfig(_1d7,true);}_1d8.fireQueue();};YAHOO.widget.MenuBarItem.prototype.CSS_CLASS_NAME="yuimenubaritem";YAHOO.widget.MenuBarItem.prototype.SUBMENU_INDICATOR_IMAGE_PATH="nt/ic/ut/alt1/menuarodwn8_nrm_1.gif";YAHOO.widget.MenuBarItem.prototype.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH="nt/ic/ut/alt1/menuarodwn8_hov_1.gif";YAHOO.widget.MenuBarItem.prototype.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH="nt/ic/ut/alt1/menuarodwn8_dim_1.gif";YAHOO.widget.MenuBarItem.prototype._onKeyDown=function(_1d9,_1da,_1db){var _1dc=YAHOO.util.Event;var _1dd=_1da[0];var _1de=this.cfg;var _1df=this.parent;switch(_1dd.keyCode){case 37:case 39:if(this==_1df.activeItem&&!_1de.getProperty("selected")){_1de.setProperty("selected",true);}else{var _1e0=(_1dd.keyCode==37)?this.getPreviousEnabledSibling():this.getNextEnabledSibling();if(_1e0){_1df.clearActiveItem();_1e0.cfg.setProperty("selected",true);_1e0.focus();}}_1dc.preventDefault(_1dd);break;case 40:_1df.clearActiveItem();_1de.setProperty("selected",true);this.focus();var _1e1=_1de.getProperty("submenu");if(_1e1){_1e1.show();_1e1.setInitialSelection();}_1dc.preventDefault(_1dd);break;}};
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/menu-min.js/buggy/www/resources/yui/menu/menu-min.js