﻿// Copyright (c) ComponentOne L.L.C., All rights reserved.
Type.registerNamespace("C1.Web.UI.Controls.C1Menu");C1.Web.UI.Controls.C1Menu.C1MenuItemsOrientation=function(){};C1.Web.UI.Controls.C1Menu.C1MenuItemsOrientation.prototype={auto:0,vertical:1,horizontal:2};C1.Web.UI.Controls.C1Menu.C1MenuItemsOrientation.registerEnum("C1.Web.UI.Controls.C1Menu.C1MenuItemsOrientation",false);C1.Web.UI.Controls.C1Menu.C1SubMenuExpandDirection=function(){};C1.Web.UI.Controls.C1Menu.C1SubMenuExpandDirection.prototype={auto:0,center:2,topLeft:3,topRight:4,topCenter:5,rightTop:6,rightBottom:7,rightMiddle:8,bottomLeft:9,bottomRight:10,bottomCenter:11,leftTop:12,leftBottom:13,leftMiddle:14};C1.Web.UI.Controls.C1Menu.C1SubMenuExpandDirection.registerEnum("C1.Web.UI.Controls.C1Menu.C1SubMenuExpandDirection",false);C1.Web.UI.Controls.C1Menu.HeaderType=function(){};C1.Web.UI.Controls.C1Menu.HeaderType.prototype={h1:1,h2:2,h3:3,h4:4,h5:5,h6:6};C1.Web.UI.Controls.C1Menu.HeaderType.registerEnum("C1.Web.UI.Controls.C1Menu.HeaderType",false);C1.Web.UI.Controls.C1Menu.ImagePosition=function(){};C1.Web.UI.Controls.C1Menu.ImagePosition.prototype={left:0,right:1};C1.Web.UI.Controls.C1Menu.ImagePosition.registerEnum("C1.Web.UI.Controls.C1Menu.ImagePosition",false);C1.Web.UI.Controls.C1Menu.ChangeStatus=function(){};C1.Web.UI.Controls.C1Menu.ChangeStatus.prototype={itemAdd:0,itemRemove:1};C1.Web.UI.Controls.C1Menu.ChangeStatus.registerEnum("C1.Web.UI.Controls.C1Menu.ChangeStatus",false);C1.Web.UI.Controls.C1Menu.IC1MenuItemOwner=function(){};C1.Web.UI.Controls.C1Menu.IC1MenuItemOwner.registerInterface("C1.Web.UI.Controls.C1Menu.IC1MenuItemOwner");C1.Web.UI.Controls.C1Menu.C1Menu=function(a){this._currentMenuPath=new Array(0);C1.Web.UI.Controls.C1Menu.C1Menu.initializeBase(this,[a]);this.nestedGroupContainer=a};C1.Web.UI.Controls.C1Menu.C1Menu.$3_30=function(b){var a=b.element.parentNode;if(a){return C1.Web.UI.FlowPanel.determineOrientation(a)}return 0};C1.Web.UI.Controls.C1Menu.C1Menu.$3_32=function(c){var b=1;var a=c.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName==="UL"){b=C1.Web.UI.FlowPanel.determineOrientation(a[d]);break}}return b};C1.Web.UI.Controls.C1Menu.C1Menu.$3_52=function(d,c){var b=-1;var a=null;if(c){b=c.calculateCurrentLevel();if(!C1.Web.UI.Utils.Common.testIsNull(c.get_owner())){a=c.get_menu()}}switch(d){case 0:if((b===1||!b)&&a&&(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(c))){return a.$3_53()}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(c)){var e=a.$3_2D(c);if(!e){return 2}else{return 1}}}return 1;default:return d}};C1.Web.UI.Controls.C1Menu.C1Menu.prototype={$3_1:null,$3_2:0,$3_3:false,$3_4:false,$3_5:false,$3_6:false,$3_7:null,$3_8:null,$3_9:null,$3_A:null,$3_B:null,$3_C:null,$3_D:null,$3_E:null,$3_F:null,$3_10:null,$3_11:null,$3_12:null,$3_13:null,$3_14:null,$3_15:null,$3_16:false,$3_17:null,$3_18:false,$3_19:null,$3_1A:null,$3_1B:null,$3_1C:null,$3_1D:null,$3_1E:null,$3_1F:null,$3_20:null,$3_21:null,$3_22:null,$3_23:null,$3_24:null,nestedGroupContainer:null,scrollContainer:null,get_enabled:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Enabled))?true:this._propertiesState.Enabled},set_enabled:function(a){this.get_element().disabled=!a;this._propertiesState.Enabled=a;this.saveState();return a},get_autoPostBack:function(){var a=this._propertiesState.AutoPostBack;if(C1.Web.UI.Utils.Common.testIsNull(a)){return true}return a},set_autoPostBack:function(a){if(this.get_autoPostBack()===a){return}this._propertiesState.AutoPostBack=a;this.saveState();return a},get_$3_25:function(){return this.get_enabled()&&this.get_autoPostBack()},get_orientation:function(){this.internalInitialize();if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Orientation)){var a=this.$3_31();if(a===1){return 1}else{return 2}}return this._propertiesState.Orientation},set_orientation:function(a){this.internalInitialize();if(a===2){this.$3_33(0)}else{if(a===1){this.$3_33(1)}}this._propertiesState.Orientation=a;return a},get_scrollBehavior:function(){if(!this.$3_1&&this.nestedGroupContainer&&this.scrollContainer){this.$3_1=new C1.Web.UI.DOMScrollBehavior(this.scrollContainer);var a=this._propertiesState.ScrollSettings;if(!C1.Web.UI.Utils.Common.testIsNull(a)){this.$3_4B(a);this.$3_1.assignPropertiesUsingHash(a)}this.$3_1.initialize()}return this.$3_1},get_nestedGroupCheckable:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.NestedGroupCheckable)){return true}return this._propertiesState.NestedGroupCheckable},set_nestedGroupCheckable:function(a){this._propertiesState.NestedGroupCheckable=a;this.saveState();return a},get_flowRight:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.FlowRight))?false:this._propertiesState.FlowRight},set_flowRight:function(a){this._propertiesState.FlowRight=a;this.saveState();return a},get_accessKey:function(){return this.get_propertiesState()["AccessKey"]},set_accessKey:function(a){this.get_propertiesState()["AccessKey"]=a;return a},get_contextMenu:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ContextMenu)){return false}return this._propertiesState.ContextMenu},set_contextMenu:function(a){this._propertiesState.ContextMenu=a;this.$3_3E();return a},get_contextElementID:function(){return(!this._propertiesState.ContextElementID)?"":this._propertiesState.ContextElementID},set_contextElementID:function(a){this._propertiesState.ContextElementID=a;this.$3_3E();return a},get_hoverElementID:function(){return(!this._propertiesState.HoverElementID)?"":this._propertiesState.HoverElementID},set_hoverElementID:function(a){this._propertiesState.HoverElementID=a;this.$3_3F();return a},get_collapseAnimation:function(){return(!this.get_propertiesState()["CollapseAnimation"])?0:this.get_propertiesState()["CollapseAnimation"]},set_collapseAnimation:function(a){this.get_propertiesState()["CollapseAnimation"]=a;return a},get_collapseDelay:function(){return(C1.Web.UI.Utils.Common.testIsNull(this.get_propertiesState()["CollapseDelay"]))?100:this.get_propertiesState()["CollapseDelay"]},set_collapseDelay:function(a){if(a<0){return}this.get_propertiesState()["CollapseDelay"]=a;return a},get_collapseDuration:function(){return(!this.get_propertiesState()["CollapseDuration"])?500:this.get_propertiesState()["CollapseDuration"]},set_collapseDuration:function(a){if(a<0){return}this.get_propertiesState()["CollapseDuration"]=a;return a},get_expandAnimation:function(){return(!this.get_propertiesState()["ExpandAnimation"])?0:this.get_propertiesState()["ExpandAnimation"]},set_expandAnimation:function(a){this.get_propertiesState()["ExpandAnimation"]=a;return a},get_expandDelay:function(){return(C1.Web.UI.Utils.Common.testIsNull(this.get_propertiesState()["ExpandDelay"]))?100:this.get_propertiesState()["ExpandDelay"]},set_expandDelay:function(a){if(a<0){return}this.get_propertiesState()["ExpandDelay"]=a;return a},get_expandDuration:function(){return(!this.get_propertiesState()["ExpandDuration"])?500:this.get_propertiesState()["ExpandDuration"]},set_expandDuration:function(a){if(a<0){return}this.get_propertiesState()["ExpandDuration"]=a;return a},get_expandEasing:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ExpandEasing))?31:this._propertiesState.ExpandEasing},set_expandEasing:function(a){this._propertiesState.ExpandEasing=a;return a},get_collapseEasing:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.CollapseEasing))?31:this._propertiesState.CollapseEasing},set_collapseEasing:function(a){this._propertiesState.CollapseEasing=a;return a},get_clickToOpen:function(){return(C1.Web.UI.Utils.Common.testIsNull(this.get_propertiesState()["ClickToOpen"]))?false:this.get_propertiesState()["ClickToOpen"]},set_clickToOpen:function(a){this.get_propertiesState()["ClickToOpen"]=a;return a},get_windowCollisionDetection:function(){return(C1.Web.UI.Utils.Common.testIsNull(this.get_propertiesState()["WindowCollisionDetection"]))?false:this.get_propertiesState()["WindowCollisionDetection"]},set_windowCollisionDetection:function(a){this.get_propertiesState()["WindowCollisionDetection"]=a;return a},get_displayVisible:function(){if(C1.Web.UI.Utils.Common.testIsNull(this.get_propertiesState()["DisplayVisible"])){return true}return this.get_propertiesState()["DisplayVisible"]},set_displayVisible:function(a){if(a===this.get_displayVisible()){return}this.get_propertiesState()["DisplayVisible"]=a;this.$3_26(a);return a},$3_26:function(a){if(a){this.get_element().style.display=""}else{this.get_element().style.display="none"}},add_scrollBehaviorInit:function(a){this.get_events().addHandler("ScrollBehaviorInit",a)},remove_scrollBehaviorInit:function(a){this.get_events().removeHandler("ScrollBehaviorInit",a)},add_showing:function(a){this.get_events().addHandler("showing",a)},remove_showing:function(a){this.get_events().removeHandler("showing",a)},add_shown:function(a){this.get_events().addHandler("shown",a)},remove_shown:function(a){this.get_events().removeHandler("shown",a)},add_hidden:function(a){this.get_events().addHandler("hidden",a)},remove_hidden:function(a){this.get_events().removeHandler("hidden",a)},add_hiding:function(a){this.get_events().addHandler("hiding",a)},remove_hiding:function(a){this.get_events().removeHandler("hiding",a)},add_itemBlur:function(a){this.get_events().addHandler(this.get_id()+"_ItemBlur",a)},remove_itemBlur:function(a){this.get_events().removeHandler(this.get_id()+"_ItemBlur",a)},add_itemClick:function(a){this.get_events().addHandler(this.get_id()+"_ItemClick",a)},remove_itemClick:function(a){this.get_events().removeHandler(this.get_id()+"_ItemClick",a)},add_itemFocus:function(a){this.get_events().addHandler(this.get_id()+"_ItemFocus",a)},remove_itemFocus:function(a){this.get_events().removeHandler(this.get_id()+"_ItemFocus",a)},add_itemMouseDown:function(a){this.get_events().addHandler(this.get_id()+"_ItemMouseDown",a)},remove_itemMouseDown:function(a){this.get_events().removeHandler(this.get_id()+"_ItemMouseDown",a)},add_itemMouseOut:function(a){this.get_events().addHandler(this.get_id()+"_ItemMouseOut",a)},remove_itemMouseOut:function(a){this.get_events().removeHandler(this.get_id()+"_ItemMouseOut",a)},add_itemMouseOver:function(a){this.get_events().addHandler(this.get_id()+"_ItemMouseOver",a)},remove_itemMouseOver:function(a){this.get_events().removeHandler(this.get_id()+"_ItemMouseOver",a)},add_itemMouseUp:function(a){this.get_events().addHandler(this.get_id()+"_ItemMouseUp",a)},remove_itemMouseUp:function(a){this.get_events().removeHandler(this.get_id()+"_ItemMouseUp",a)},add_itemChecked:function(a){this.get_events().addHandler(this.get_id()+"_ItemChecked",a)},remove_itemChecked:function(a){this.get_events().removeHandler(this.get_id()+"_ItemChecked",a)},add_itemUnChecked:function(a){this.get_events().addHandler(this.get_id()+"_ItemUnChecked",a)},remove_itemUnChecked:function(a){this.get_events().removeHandler(this.get_id()+"_ItemUnChecked",a)},$3_27:function(b){var a=this.get_events().getHandler("showing");if(a){a(this,b)}},$3_28:function(b){var a=this.get_events().getHandler("shown");if(a){a(this,b)}},$3_29:function(b){var a=this.get_events().getHandler("hiding");if(a){a(this,b)}},$3_2A:function(b){var a=this.get_events().getHandler("hidden");if(a){a(this,b)}},$3_2B:function(b){var a=this.get_events().getHandler("ScrollBehaviorInit");if(a){a(this,b)}},initialize:function(){C1.Web.UI.Controls.C1Menu.C1Menu.callBaseMethod(this,"initialize");this.$3_7=Function.createDelegate(this,this.onMouseOver);this.$3_D=Function.createDelegate(this,this.onFocus);Sys.UI.DomEvent.addHandler(this.get_element(),"mouseover",this.$3_7);if(Sys.Browser.agent===Sys.Browser.InternetExplorer){Sys.UI.DomEvent.addHandler(this.get_element(),"focusin",this.$3_D)}else{Sys.UI.DomEvent.addHandler(this.get_element(),"focus",this.$3_D)}this.$3_3E();this.$3_3F()},dispose:function(){if(!this.$3_3){C1.Web.UI.Controls.C1Menu.C1Menu.callBaseMethod(this,"dispose");return}this.$3_3=false;if(this.$3_7){try{Sys.UI.DomEvent.removeHandler(this.get_element(),"mouseover",this.$3_7);Sys.UI.DomEvent.removeHandler(this.get_element(),"mouseout",this.$3_8);Sys.UI.DomEvent.removeHandler(this.get_element(),"mousedown",this.$3_9);Sys.UI.DomEvent.removeHandler(this.get_element(),"mouseup",this.$3_A);Sys.UI.DomEvent.removeHandler(this.get_element(),"click",this.$3_B);Sys.UI.DomEvent.removeHandler(this.get_element(),"keydown",this.$3_C);Sys.UI.DomEvent.removeHandler(this.get_element(),"focus",this.$3_D);Sys.UI.DomEvent.removeHandler(this.get_element(),"blur",this.$3_E);Sys.UI.DomEvent.removeHandler(window.document,"mousedown",this.$3_F);this.$3_7=null;this.$3_8=null;this.$3_9=null;this.$3_A=null;this.$3_B=null;this.$3_F=null}catch(a){this.$3_7=null;this.$3_8=null;this.$3_9=null;this.$3_A=null;this.$3_B=null;this.$3_F=null}}this.$3_40();C1.Web.UI.Controls.C1Menu.C1Menu.callBaseMethod(this,"dispose")},findItemByValue:function(c){this.internalInitialize();var b=this.get_items();for(var a=0;a<b.get_count();a++){var d=this.$3_3B(c,b.get_item(a));if(d){return d}}return null},findItemByText:function(c){this.internalInitialize();var b=this.get_items();for(var a=0;a<b.get_count();a++){if(C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.isInstanceOfType(b.get_item(a))){continue}var d=this.$3_3C(b.get_item(a),c);if(d){return d}}return null},showAt:function(b,a){this.$3_36();if(!this.$3_17){this.$3_17=new C1.Web.UI.PopupBehavior(this.get_element(),1,0,0,null,false);this.$3_17.set_windowCollisionDetection(this.get_windowCollisionDetection());this.$3_17.add_setupPopupDone(Function.createDelegate(this,this._popupBehavior_SetupPopupDone));this.$3_17.add_showing(Function.createDelegate(this,this.$3_43));this.$3_17.add_hiding(Function.createDelegate(this,this.$3_45));this.$3_17.add_shown(Function.createDelegate(this,this.$3_44));this.$3_17.add_hidden(Function.createDelegate(this,this.$3_46))}this.$3_17.showAt(b)},hideInactiveItems:function(e){if(this.$3_16||this.$3_6&&!e){this.hide()}this.$3_16=false;this.$3_22=e;this.$3_35();if(C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenuId!==""&&C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenuId!==this.get_id()){if(!C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenuId.indexOf(this.get_id())){return}}var b=null;if(e){if(C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(e.get_owner())){b=e.get_owner()}}if(!e||!b||!e.get_level()){for(var a=this._currentMenuPath.length-1;a>=0;a--){var f=this._currentMenuPath[a];this.$3_4C(f);f.hideSubMenu();this._currentMenuPath.splice(a,1)}return}for(var d=this._currentMenuPath.length-1;d>=0;d--){var c=this._currentMenuPath[d];if(c.get_items().contains(e)){return}else{if(b.UID===c.UID){return}this.$3_4C(c);c.hideSubMenu();this._currentMenuPath.splice(d,1)}}},hide:function(){this.$3_6=false;this.$3_16=false;if(this.$3_17){this.$3_17.hide()}},highlightMenuPath:function(c){this.$3_36();this.$3_35();this.$3_16=false;if(this._currentMenuPath.length>0&&c&&(this._currentMenuPath[this._currentMenuPath.length-1]).UID===c.UID){return}this.hideInactiveItems(c);var b=c;this._currentMenuPath=new Array(0);while(b&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(b)){this._currentMenuPath.splice(0,0,b);this.$3_4D(b);(b).displaySubMenu();if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(b.get_owner())){return}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(b.get_owner())){b=b.get_owner()}else{var a=this.$3_2F(b.get_owner());if(C1.Web.UI.Utils.Common.testIsNull(a)){return}b=a}}}},getVisualStyleCssClassName:function(){var a=this._propertiesState.VisualStyle;if(!a||a===""){a="C1Menu_Default"}else{a="C1Menu_"+a}return a},onMouseOver:function(c){this.internalInitialize();if(!this.get_enabled()){return}var b=c.target;if(b){if(this.$3_6&&(b.id===this.get_id())){this.$3_35();this.$3_16=false}b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItemBase.isInstanceOfType(a)){this.$3_35();if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var f=a;if(!C1.Web.UI.Utils.Common.testIsNull(f.menuItemElement)){if(f.get_enabled()&&f.$1_13(f)){if(!this.get_clickToOpen()){f.activateMenuItem(false)}f.onMouseOver(c)}this.raiseClientItemMouseOver(f,c.rawEvent)}}else{if(!this.get_clickToOpen()){var d=this.$3_2C(a);if(!C1.Web.UI.Utils.Common.testIsNull(d)){this.highlightMenuPath(d)}else{if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType((a).get_owner())){this.highlightMenuPath(a)}}}}}}},$3_2C:function(a){if(C1.Web.UI.Utils.Common.testIsNull(a.get_owner())){return null}if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a.get_owner())){return null}if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a.get_owner())){return a.get_owner()}return this.$3_2C(a.get_owner())},onMouseOut:function(c){if(!this.get_enabled()){return}var b=c.target;if(b){if(!this.get_clickToOpen()){this.$3_37(null)}b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var d=a;if(!C1.Web.UI.Utils.Common.testIsNull(d.menuItemElement)){this.raiseClientItemMouseOut(d,c.rawEvent);d.onMouseOut(c)}}}},onMouseDown:function(c){if(!this.get_enabled()){c.preventDefault();return}var b=c.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){if(!C1.Web.UI.Utils.Common.testIsNull(a.menuItemElement)){var d=a;this.raiseClientItemMouseDown(d,c.rawEvent);if(d.get_enabled()&&d.$1_13(d)){if(this.get_clickToOpen()){this.highlightMenuPath(a)}if(d.get_navigateUrl()===""){d.get_propertiesState()["_postbackEvent_ItemClick"]=true}d.set_checked(!d.get_checked());d.onMouseDown(c);this.saveState()}}}}},onMouseUp:function(c){if(!this.get_enabled()){c.preventDefault();return}var b=c.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var d=a;if(!C1.Web.UI.Utils.Common.testIsNull(d.menuItemElement)){this.raiseClientItemMouseUp(d,c.rawEvent);d.onMouseUp(c)}}}},onBlur:function(c){var b=c.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var d=a;if(!C1.Web.UI.Utils.Common.testIsNull(d.menuItemElement)){d.removeCssClass("C1Focus");this.raiseClientItemBlur(d,c.rawEvent)}}}},onClick:function(f){if(!this.get_enabled()){f.preventDefault();return}var b=f.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(a)){var h=a;var g=h.get_scrollBehavior();if(!C1.Web.UI.Utils.Common.testIsNull(g)&&(g.get_scrollMode()===2)){var d=false;if(g.get_scrollOrientation()===2){if(b===g.get_bottomScrollButton()||b===g.get_topScrollButton()){d=true}}else{if(g.get_scrollOrientation()===1){if(b===g.get_leftScrollButton()||b===g.get_rightScrollButton()){d=true}}else{if(b===g.get_bottomScrollButton()||b===g.get_leftScrollButton()||b===g.get_rightScrollButton()||b===g.get_topScrollButton()){d=true}}}if(d){f.preventDefault();return}}}if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var c=a;if(!C1.Web.UI.Utils.Common.testIsNull(c.menuItemElement)){this.raiseClientItemClick(c,f.rawEvent);c.onClick(f);this.saveState();if(!this.get_clickToOpen()||!c.get_items().get_count()){this.$3_37(null)}}if(c.get_navigateUrl()===""&&!c.get_$1_14()){f.preventDefault()}}else{if(!this.get_clickToOpen()){this.$3_37(null)}}}},$3_2D:function(b){if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(b.get_owner())){return this.$3_2D(b.get_owner())}var a=b.element.parentNode;if(a){return C1.Web.UI.FlowPanel.determineOrientation(a)}return 0},onKeyDown:function(f){if(!this.get_enabled()){f.preventDefault();return}var b=f.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){if(!C1.Web.UI.Utils.Common.testIsNull(a.menuItemElement)){var h=a;var g;if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(a.get_owner())){g=this.$3_2D(a.get_owner())}else{g=C1.Web.UI.Controls.C1Menu.C1Menu.$3_30(a)}var d=this.$3_31();switch(f.keyCode){case 38:if(g===0){if(!h.focusParent()){h.hideSubMenu()}}else{h.focusPrev()}break;case 39:if(g===0){h.focusNext()}else{if(!C1.Web.UI.Utils.Common.testIsNull(h.getFirstChildFocusableItem())){h.displaySubMenu()}}if(!h.focusFirstChild()){if(d===0){var c=this.$3_2E(h);c.focusNext()}}break;case 40:if(g===0){h.displaySubMenu();h.focusFirstChild()}else{h.focusNext()}break;case 37:if(g===0){h.focusPrev()}else{if(!h.focusParent()){h.hideSubMenu()}}break}}}}},onFocus:function(d){if(!this.get_enabled()){d.preventDefault();return}this.internalInitialize();var b=d.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){var g=a;if(!C1.Web.UI.Utils.Common.testIsNull(g.menuItemElement)){if(a.get_enabled()&&g.$1_13(g)){a.addCssClass("C1Focus");var f=false;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){if(this.$3_50(b,d.rawEvent.fromElement)){f=true}}if(this.get_clickToOpen()&&!f){g.activateMenuItem(true)}var c=a.get_owner();if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(c)&&(c).get_scrollBehavior()){(c).get_scrollBehavior().updateButtonsState(10)}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(c)&&(c).get_scrollBehavior()){(c).get_scrollBehavior().updateButtonsState(10)}}}else{d.preventDefault();return}this.raiseClientItemFocus(g,d.rawEvent)}}}},onDocumentMouseDown:function(d){var b=d.target;if(b){b=this.retargetToParentIfNeeded(b);var a=C1.Web.UI.UIElement.all[(b)["__c1uid"]];if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(a)){var g=a;var f=g.get_scrollBehavior();if(!C1.Web.UI.Utils.Common.testIsNull(f)&&(f.get_scrollMode()===2)){var c=false;if(f.get_scrollOrientation()===2){if(b===f.get_bottomScrollButton()||b===f.get_topScrollButton()){c=true}}else{if(f.get_scrollOrientation()===1){if(b===f.get_leftScrollButton()||b===f.get_rightScrollButton()){c=true}}else{if(b===f.get_bottomScrollButton()||b===f.get_leftScrollButton()||b===f.get_rightScrollButton()||b===f.get_topScrollButton()){c=true}}}if(c){d.preventDefault();return}}}if(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)&&a.get_menu().get_id()===this.get_id()){}else{if(this.get_contextMenu()){this.$3_16=true}this.$3_37(null)}}else{if(this.get_contextMenu()){this.$3_16=true}this.$3_37(null)}},onContextElementMouseUp:function(b){if(b.button===2){if(!this.$3_21){this.$3_21=Function.createDelegate(this,this.$3_49)}this.$3_1F=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$3_1F);var a=b.target;if(a){if((a)["__c1ctxtshown_flag"]){return}(a)["__c1ctxtshown_flag"]=true}this.$3_14=C1.Web.UI.Utils.Measurement.getMousePointerPosition(b.rawEvent);this.$3_15=a;this.$3_1F=window.setTimeout(this.$3_21,this.get_expandDelay()+5)}},onHoverElementMouseOver:function(a){if(!this.$3_21){this.$3_21=Function.createDelegate(this,this.$3_49)}if(this.$3_6){this.$3_35();this.$3_16=false;return}this.$3_48();this.$3_47(true,(a)["target"],a.rawEvent)},onHoverElementMouseOut:function(a){this.$3_48();this.$3_1F=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$3_1F);this.$3_37(null)},retargetToParentIfNeeded:function(a){if(a.parentNode&&C1.Web.UI.Utils.Common.testIsNull((a)["__c1uid"])){a=this.retargetToParentIfNeeded(a.parentNode)}return a},$3_2E:function(c){var b=c;while(b&&b.get_owner()){if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(b.get_owner())){return b}if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(b.get_owner())){b=b.get_owner()}else{var a=this.$3_2F(b.get_owner());if(C1.Web.UI.Utils.Common.testIsNull(a)){return b}b=a}}return null},$3_2F:function(a){while(a.get_owner()){if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a.get_owner())){return null}if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a.get_owner())){return a.get_owner()}else{a=a.get_owner()}}return null},$3_31:function(){if(C1.Web.UI.Utils.Common.testIsNull(this.$3_2)){this.$3_2=C1.Web.UI.Controls.C1Menu.C1Menu.$3_32(this.scrollContainer)}return this.$3_2},$3_33:function(c){this.$3_2=c;var b=this.scrollContainer.childNodes;for(var a=0;a<b.length;a++){if(b[a].tagName==="UL"){C1.Web.UI.FlowPanel.setFlowPanelOrientation(b[a],c,this.get_flowRight());break}}this.$3_34()},$3_34:function(){var b=this.getVisualStyleCssClassName();var a="";if(b!==""){if(this.get_contextMenu()){if(a!==""){a+=" "}a+=b+"-C1Context"}if(this.$3_2===0){if(a!==""){a+=" "}a+=b+"-C1Horizontal"}else{if(this.$3_2===1){if(a!==""){a+=" "}a+=b+"-C1Vertical"}}}var d=""+this.get_element().className+"";var c=new RegExp("\\s*"+b+"-*\\S*(-C1Horizontal|-C1Vertical)");this.get_element().className=d.replace(c,"");Sys.UI.DomElement.addCssClass(this.get_element(),a)},$3_35:function(){this.$3_1E=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$3_1E)},$3_36:function(){if(C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu){if(C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu.get_id()!==this.get_id()){if(!this.get_id().indexOf(C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu.get_id())){}else{if(C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu.get_contextMenu()){C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu.hide()}C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu.$3_37(null)}}}C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu=this;C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenuId=this.get_id()},$3_37:function(a){this.$3_22=a;if(!this.$3_20){this.$3_20=Function.createDelegate(this,this.$3_38)}this.$3_35();if(a){this.$3_16=false}this.$3_1E=window.setTimeout(this.$3_20,this.get_collapseDelay()+5)},$3_38:function(){this.hideInactiveItems(this.$3_22)},hideSubMenu:function(){this.hideInactiveItems(null)},invalidate:function(){C1.Web.UI.Controls.C1Menu.C1Menu.callBaseMethod(this,"invalidate");this.internalInitialize();if(!this.$3_19){this.$3_19=document.createElement("div");this.$3_19.style.width="0px";this.$3_19.style.height="0px";this.$3_19.style.overflow="hidden"}this.nestedGroupContainer.appendChild(this.$3_19);this.nestedGroupContainer.removeChild(this.$3_19);if(this.$3_1){if(Sys.Browser.agent!==Sys.Browser.Firefox&&Sys.Browser.agent!==Sys.Browser.InternetExplorer&&Sys.Browser.agent!==Sys.Browser.Opera){for(var a=0;a<4;a++){window.setTimeout(Function.createDelegate(this,this.$3_39),500)}}this.$3_39()}},$3_39:function(){this.$3_1.invalidate()},createInstanceFromElement:function(a){if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemGroup")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemGroup(a)}else{if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemHeader")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemHeader(a)}else{if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemSeparator")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator(a)}}}return new C1.Web.UI.Controls.C1Menu.C1MenuItem(a)},$3_3A:function(b){if(C1.Web.UI.Utils.Common.testIsNull(b.ClientType)){return null}var a=b.ClientType;if(a==="C1MenuItemGroup"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemGroup(null)}else{if(a==="C1MenuItemHeader"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemHeader(null)}else{if(a==="C1MenuItemSeparator"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator(null)}}}return new C1.Web.UI.Controls.C1Menu.C1MenuItem(null)},$3_3B:function(d,c){if(c.get_value()===d){return c}if(C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(c)){var b=(c).get_items();for(var a=0;a<b.get_count();a++){var e=this.$3_3B(d,b.get_item(a));if(e){return e}}}return null},$3_3C:function(d,c){if(d.get_text()===c){return d}if(C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.isInstanceOfType(d)){var b=(d).get_items();for(var a=0;a<b.get_count();a++){if(C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.isInstanceOfType(b.get_item(a))){continue}var e=this.$3_3C(b.get_item(a),c);if(e){return e}}}return null},internalInitialize:function(){if(this.$3_3){return}this.$3_3=true;if(this.nestedGroupContainer){var b=this.nestedGroupContainer.childNodes;for(var a=0;a<b.length;a++){if(b[a].tagName==="DIV"){if(b[a].className.indexOf("C1ScrollContainer")!==-1){this.scrollContainer=b[a];var d=b[a].childNodes;for(var c=0;c<d.length;c++){if(d[c].tagName==="UL"){this.$3_1D=d[c];break}}break}}}}this.$3_42(this.get_element(),false);this.$3_F=Function.createDelegate(this,this.onDocumentMouseDown);Sys.UI.DomEvent.addHandler(window.document,"mousedown",this.$3_F);this.initializeItems();this.$3_3D();this.$3_1A.add_$5(Function.createDelegate(this,this._items_OnBeforeCollectionChanged));this.$3_1A.add_onCollectionChanged(Function.createDelegate(this,this._items_OnCollectionChanged))},initializeItems:function(){if(this.$3_18){return}this.$3_18=true;var b=this._propertiesState.Items;this.$3_1A=new C1.Web.UI.Controls.C1Menu.C1MenuItemCollection(this);var a=jQuery(this.$3_1D).children("li");if(b){for(var f=0;f<b.length;f++){var e=b[f];var d;if(!C1.Web.UI.Utils.Common.testIsNull(e.Visible)&&!(e.Visible)){d=this.$3_3A(e)}else{var c=null;if(f<a.length){c=a.get(f)}if(c){d=this.createInstanceFromElement(c)}else{throw Error.create(String.format(C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$1("C1Menu.CannotCreateChild"),e.ClientID))}}d.assignPropertiesState(e);this.$3_1A.add(d);d.initialize()}}},$3_3D:function(){var a=this.get_scrollBehavior();a=null;this.$3_2B(new Sys.EventArgs())},$3_3E:function(){this.$3_40();if(!this.get_contextMenu()){return}this.$3_4=true;if(!this.$3_10){this.$3_10=Function.createDelegate(this,this.onContextElementMouseUp)}var a=this.get_contextElementID();this.$3_1B=null;if(a&&a!==""){if(a==="document"){this.$3_1B=window.document}else{this.$3_1B=jQuery("#"+a).get(0)}}if(this.$3_1B){Sys.UI.DomEvent.addHandler(this.$3_1B,"mouseup",this.$3_10);this.$3_13=Function.createDelegate(this,this.$3_4A);(this.$3_1B)["oncontextmenu"]=this.$3_13}},$3_3F:function(){this.$3_41();if(!this.get_contextMenu()){return}this.$3_5=true;if(!this.$3_11){this.$3_11=Function.createDelegate(this,this.onHoverElementMouseOver)}if(!this.$3_12){this.$3_12=Function.createDelegate(this,this.onHoverElementMouseOut)}var a=this.get_hoverElementID();if(a&&a!==""){this.$3_1C=jQuery("#"+a).get(0)}if(this.$3_1C){Sys.UI.DomEvent.addHandler(this.$3_1C,"mouseover",this.$3_11);Sys.UI.DomEvent.addHandler(this.$3_1C,"mouseout",this.$3_12)}},$3_40:function(){if(!this.$3_4){return}this.$3_4=false;if(this.$3_1B){try{if(!C1.Web.UI.Utils.Common.testIsNull(this.$3_15)&&!C1.Web.UI.Utils.Common.testIsNull((this.$3_15)["__c1ctxtshown_flag"])){(this.$3_15)["__c1ctxtshown_flag"]=null}Sys.UI.DomEvent.removeHandler(this.$3_1B,"mouseup",this.$3_10)}catch(a){}}this.$3_1B=null;this.$3_10=null},$3_41:function(){if(!this.$3_5){return}this.$3_5=false;if(this.$3_1C){try{Sys.UI.DomEvent.removeHandler(this.$3_1C,"mouseover",this.$3_11);Sys.UI.DomEvent.removeHandler(this.$3_1C,"mouseout",this.$3_12)}catch(a){}}this.$3_1C=null;this.$3_11=null;this.$3_12=null},$3_42:function(b,a){if(!this.$3_8){this.$3_8=Function.createDelegate(this,this.onMouseOut);this.$3_9=Function.createDelegate(this,this.onMouseDown);this.$3_A=Function.createDelegate(this,this.onMouseUp);this.$3_B=Function.createDelegate(this,this.onClick);this.$3_C=Function.createDelegate(this,this.onKeyDown);this.$3_E=Function.createDelegate(this,this.onBlur)}if(a){if(!this.$3_7){this.$3_7=Function.createDelegate(this,this.onMouseOver);this.$3_D=Function.createDelegate(this,this.onFocus)}Sys.UI.DomEvent.addHandler(b,"mouseover",this.$3_7);if(Sys.Browser.agent===Sys.Browser.InternetExplorer){Sys.UI.DomEvent.addHandler(b,"focusin",this.$3_D)}else{Sys.UI.DomEvent.addHandler(b,"focus",this.$3_D)}}Sys.UI.DomEvent.addHandler(b,"mouseout",this.$3_8);Sys.UI.DomEvent.addHandler(b,"mousedown",this.$3_9);Sys.UI.DomEvent.addHandler(b,"mouseup",this.$3_A);Sys.UI.DomEvent.addHandler(b,"click",this.$3_B);Sys.UI.DomEvent.addHandler(b,"keydown",this.$3_C);if(Sys.Browser.agent===Sys.Browser.InternetExplorer){Sys.UI.DomEvent.addHandler(b,"focusout",this.$3_E)}else{Sys.UI.DomEvent.addHandler(b,"blur",this.$3_E)}},_popupBehavior_SetupPopupDone:function(a,b){this.$3_23=C1.Web.UI.Behavior.AnimationEffects.createAnimationByType(this.get_expandAnimation(),this.nestedGroupContainer,this.get_expandDuration(),this.get_expandEasing(),null,null,false,false,true,true);if(this.$3_23){this.$3_17.set_showAnimation(this.$3_23)}this.get_element().style.overflow="hidden"},$3_43:function(b,a){this.$3_27(new Sys.EventArgs())},$3_44:function(b,a){if(this.get_contextElementID().length>0){this.get_element().style.zIndex=(C1.Web.UI.Utils.Common.getMaxZIndex(this.$3_15)+1)}else{if(this.get_hoverElementID().length>0){this.get_element().style.zIndex=(C1.Web.UI.Utils.Common.getMaxZIndex(this.$3_1C)+1)}}this.$3_28(new Sys.EventArgs());this.get_element().style.overflow=""},$3_45:function(b,a){this.$3_29(new Sys.EventArgs());this.$3_24=C1.Web.UI.Behavior.AnimationEffects.createAnimationByType(this.get_collapseAnimation(),this.nestedGroupContainer,this.get_collapseDuration(),this.get_collapseEasing(),null,null,false,false,true,false);if(this.$3_24){this.$3_17.set_hideAnimation(this.$3_24)}this.get_element().style.overflow="hidden"},$3_46:function(b,a){this.$3_2A(new Sys.EventArgs());this.get_element().style.overflow=""},$3_47:function(c,b,a){this.$3_6=c;if(b){if((b)["__c1ctxtshown_flag"]){return}(b)["__c1ctxtshown_flag"]=true}this.$3_14=C1.Web.UI.Utils.Measurement.getMousePointerPosition(a);this.$3_15=b;this.$3_1F=window.setTimeout(this.$3_21,this.get_expandDelay()+5)},$3_48:function(){this.$3_1F=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$3_1F);if(!this.$3_17||!this.$3_17.get_visible()){this.$3_6=false;if(!C1.Web.UI.Utils.Common.testIsNull(this.$3_15)&&!C1.Web.UI.Utils.Common.testIsNull((this.$3_15)["__c1ctxtshown_flag"])){(this.$3_15)["__c1ctxtshown_flag"]=null}}},$3_49:function(){if(this.$3_15){(this.$3_15)["__c1ctxtshown_flag"]=null}this.showAt(this.$3_14,this.$3_15)},$3_4A:function(){return false},$3_4B:function(c){var b=c.CssStyle;var a=this.getVisualStyleCssClassName();if(!C1.Web.UI.Utils.Common.testIsNull(b.TopButtonCssClass)){c.TopButtonCssClass=b.TopButtonCssClass}else{c.TopButtonCssClass=a+"_ScrollButtonTop"}if(!C1.Web.UI.Utils.Common.testIsNull(b.TopButtonActiveCssClass)){c.TopButtonActiveCssClass=b.TopButtonActiveCssClass}else{c.TopButtonActiveCssClass=a+"_ScrollButtonActiveTop"}if(!C1.Web.UI.Utils.Common.testIsNull(b.TopButtonDisabledCssClass)){c.TopButtonDisabledCssClass=b.TopButtonDisabledCssClass}else{c.TopButtonDisabledCssClass=a+"_ScrollButtonDisabledTop"}if(!C1.Web.UI.Utils.Common.testIsNull(b.RightButtonCssClass)){c.RightButtonCssClass=b.RightButtonCssClass}else{c.RightButtonCssClass=a+"_ScrollButtonRight"}if(!C1.Web.UI.Utils.Common.testIsNull(b.RightButtonActiveCssClass)){c.RightButtonActiveCssClass=b.RightButtonActiveCssClass}else{c.RightButtonActiveCssClass=a+"_ScrollButtonActiveRight"}if(!C1.Web.UI.Utils.Common.testIsNull(b.RightButtonDisabledCssClass)){c.RightButtonDisabledCssClass=b.RightButtonDisabledCssClass}else{c.RightButtonDisabledCssClass=a+"_ScrollButtonDisabledRight"}if(!C1.Web.UI.Utils.Common.testIsNull(b.BottomButtonCssClass)){c.BottomButtonCssClass=b.BottomButtonCssClass}else{c.BottomButtonCssClass=a+"_ScrollButtonBottom"}if(!C1.Web.UI.Utils.Common.testIsNull(b.BottomButtonActiveCssClass)){c.BottomButtonActiveCssClass=b.BottomButtonActiveCssClass}else{c.BottomButtonActiveCssClass=a+"_ScrollButtonActiveBottom"}if(!C1.Web.UI.Utils.Common.testIsNull(b.BottomButtonDisabledCssClass)){c.BottomButtonDisabledCssClass=b.BottomButtonDisabledCssClass}else{c.BottomButtonDisabledCssClass=a+"_ScrollButtonDisabledBottom"}if(!C1.Web.UI.Utils.Common.testIsNull(b.LeftButtonCssClass)){c.LeftButtonCssClass=b.LeftButtonCssClass}else{c.LeftButtonCssClass=a+"_ScrollButtonLeft"}if(!C1.Web.UI.Utils.Common.testIsNull(b.LeftButtonActiveCssClass)){c.LeftButtonActiveCssClass=b.LeftButtonActiveCssClass}else{c.LeftButtonActiveCssClass=a+"_ScrollButtonActiveLeft"}if(!C1.Web.UI.Utils.Common.testIsNull(b.LeftButtonDisabledCssClass)){c.LeftButtonDisabledCssClass=b.LeftButtonDisabledCssClass}else{c.LeftButtonDisabledCssClass=a+"_ScrollButtonDisabledLeft"}},$3_4C:function(a){if(!a.get_enabled()||a.get_header()||a.get_separator()||a.get_group()){return}a.removeCssClass("C1Opened");if(a.hasMenuItems()){a.addCssClass("C1Closed")}},$3_4D:function(a){if(!a.get_enabled()||a.get_header()||a.get_separator()||a.get_group()){return}a.removeCssClass("C1Closed");if(a.hasMenuItems()){a.addCssClass("C1Opened")}},raiseClientItemFocus:function(d,c){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemFocus)){var a=this._propertiesState.OnClientItemFocus;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemFocus");if(b){b(d,c)}},raiseClientItemBlur:function(d,c){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemBlur)){var a=this._propertiesState.OnClientItemBlur;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemBlur");if(b){b(d,c)}},raiseClientItemMouseOver:function(d,c){if(d.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemMouseOver)){var a=this._propertiesState.OnClientItemMouseOver;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemMouseOver");if(b){b(d,c)}}},raiseClientItemMouseOut:function(d,c){if(d.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemMouseOut)){var a=this._propertiesState.OnClientItemMouseOut;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemMouseOut");if(b){b(d,c)}}},raiseClientItemMouseDown:function(d,c){if(d.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemMouseDown)){var a=this._propertiesState.OnClientItemMouseDown;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemMouseDown");if(b){b(d,c)}}},raiseClientItemMouseUp:function(d,c){if(d.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemMouseUp)){var a=this._propertiesState.OnClientItemMouseUp;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemMouseUp");if(b){b(d,c)}}},raiseClientItemClick:function(d,c){if(d.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemClick)){var a=this._propertiesState.OnClientItemClick;var e=(((window)[a]));if(e){e(d,c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemClick");if(b){b(d,c)}}},$3_4E:function(c){if(c.isSelectableItem()){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemChecked)){var a=this._propertiesState.OnClientItemChecked;var d=(((window)[a]));if(d){d(c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemChecked");if(b){b(c)}}},$3_4F:function(c){if(!C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OnClientItemUnChecked)){var a=this._propertiesState.OnClientItemUnChecked;var d=(((window)[a]));if(d){d(c)}}var b=this.get_events().getHandler(this.get_id()+"_ItemUnChecked");if(b){b(c)}},$3_50:function(b,a){if(C1.Web.UI.Utils.Common.testIsNull(b)||C1.Web.UI.Utils.Common.testIsNull(a)){return false}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){return b.contains(a)}else{return this.$3_51(b,a)}},$3_51:function(d,c){var b=false;for(var a=0;a<d.childNodes.length;a++){if(d.childNodes[a]===c){b=true;break}if(d.childNodes[a].childNodes.length>0){b=this.$3_51(d.childNodes[a],c);if(b){break}}}return b},get_items:function(){this.internalInitialize();if(!this.$3_1A){this.$3_1A=new C1.Web.UI.Controls.C1Menu.C1MenuItemCollection(this);this.$3_1A.add_$5(Function.createDelegate(this,this._items_OnBeforeCollectionChanged));this.$3_1A.add_onCollectionChanged(Function.createDelegate(this,this._items_OnCollectionChanged))}return this.$3_1A},_items_OnCollectionChanged:function(b,c){var a=c;if(!a.get_status()){this.addItemElement(a.get_item())}else{if(a.get_status()===1){this.removeItemElement(a.get_item())}}},_items_OnBeforeCollectionChanged:function(b,c){var a=c;if(!a.get_status()){}else{if(a.get_status()===1){}}},addItemElement:function(c){if(!c.element||!c.element.parentNode||c.element.parentNode!==this.get_element()){if(c.get_index()<this.get_items().get_count()-1&&c.get_index()>=0){var a=this.get_items().get_item(c.get_index()+1).element;if(a){this.$3_1D.insertBefore(c.element,a)}else{this.$3_1D.appendChild(c.element)}}else{this.$3_1D.appendChild(c.element)}var b=C1.Web.UI.Controls.C1Menu.C1Menu.$3_30(c);if(b===0){Sys.UI.DomElement.removeCssClass(c.element,"c1-v-child");Sys.UI.DomElement.addCssClass(c.element,"c1-h-child")}else{Sys.UI.DomElement.removeCssClass(c.element,"c1-h-child");Sys.UI.DomElement.addCssClass(c.element,"c1-v-child")}}},removeItemElement:function(b){var a=b.element;if(a){if(this.$3_50(this.$3_1D,a)){this.$3_1D.removeChild(a)}}},get_owner:function(){return null},$3_53:function(){var b=this.get_orientation();var a=this.get_contextMenu();switch(b){case 0:if(!a){return 2}else{return 1}default:return b}}};C1.Web.UI.Controls.C1Menu.C1MenuBase=function(a){C1.Web.UI.Controls.C1Menu.C1MenuBase.initializeBase(this,[a])};C1.Web.UI.Controls.C1Menu.C1MenuBase.$3_0=function(c){var b=c.childNodes;for(var a=0;a<b.length;a++){if(b[a].className&&(Sys.UI.DomElement.containsCssClass(b[a],"C1SubMenu")||Sys.UI.DomElement.containsCssClass(b[a],"C1SubGroup"))){return b[a]}}return null};C1.Web.UI.Controls.C1Menu.C1MenuItem=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItem.initializeBase(this,[a]);this.get_propertiesState()["ClientType"]="C1MenuItem"};C1.Web.UI.Controls.C1Menu.C1MenuItem.prototype={$1_F:false,$1_10:0,$1_11:0,_PopupBehavior:null,_internalInitialized:false,get_clientType:function(){return"C1MenuItem"},get_subMenuExpandDirection:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.SubMenuExpandDirection))?0:this._propertiesState.SubMenuExpandDirection)},set_subMenuExpandDirection:function(a){this._propertiesState.SubMenuExpandDirection=a;this.$1_1("SubMenuExpandDirection",a);return a},get_navigateUrl:function(){return(!this._propertiesState.NavigateUrl)?"":this._propertiesState.NavigateUrl},set_navigateUrl:function(a){this._propertiesState.NavigateUrl=a;this.$1_12();this.$1_1("NavigateUrl",a);return a},get_enabled:function(){return C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"get_enabled")},set_enabled:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"set_enabled",[a]);this.$1_12();return a},$1_12:function(){if(!C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.get_navigateUrl())&&this.get_enabled()&&this.$1_13(this)){(this.menuItemElement).href=this.get_navigateUrl()}else{(this.menuItemElement).href="#"}},$1_13:function(b){if(!b.get_owner()){return false}if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(b.get_owner())){return(b.get_owner()).get_enabled()}else{var a=b.get_owner();if(!a.get_enabled()){return false}else{return this.$1_13(b.get_owner())}}},get_target:function(){return this._propertiesState.Target},set_target:function(a){this._propertiesState.Target=a;this.$1_1("Target",a);return a},get_$1_14:function(){return this.get_enabled()&&this.get_menu().get_$3_25()},get_toolTip:function(){return this._propertiesState.ToolTip},set_toolTip:function(a){this._propertiesState.ToolTip=a;this.element.title=a;this.$1_1("ToolTip",a);return a},get_mouseOverImageUrl:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.MouseOverImageUrl))?"":this._propertiesState.MouseOverImageUrl)},set_mouseOverImageUrl:function(a){this._propertiesState.MouseOverImageUrl=a;this.$1_1("MouseOverImageUrl",a);return a},get_group:function(){return false},set_group:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"set_group",[a]);return a},get_separator:function(){return false},set_separator:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"set_separator",[a]);return a},get_header:function(){return false},set_header:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"set_header",[a]);return a},get_expandAnimation:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ExpandAnimation)){return this.get_menu().get_expandAnimation()}else{return this._propertiesState.ExpandAnimation}},set_expandAnimation:function(a){this._propertiesState.ExpandAnimation=a;return a},get_expandDuration:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ExpandDuration)){return this.get_menu().get_expandDuration()}else{return this._propertiesState.ExpandDuration}},set_expandDuration:function(a){if(a<1){return}this._propertiesState.ExpandDuration=a;return a},get_expandDelay:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ExpandDelay)){return this.get_menu().get_expandDelay()}else{return this._propertiesState.ExpandDelay}},set_expandDelay:function(a){if(a<0){return}this._propertiesState.ExpandDelay=a;return a},get_collapseAnimation:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.CollapseAnimation)){return this.get_menu().get_collapseAnimation()}else{return this._propertiesState.CollapseAnimation}},set_collapseAnimation:function(a){this._propertiesState.CollapseAnimation=a;return a},get_collapseDuration:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.CollapseDuration)){return this.get_menu().get_collapseDuration()}else{return this._propertiesState.CollapseDuration}},set_collapseDuration:function(a){if(a<1){return}this._propertiesState.CollapseDuration=a;return a},get_collapseDelay:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.CollapseDelay)){return this.get_menu().get_collapseDelay()}else{return this._propertiesState.CollapseDelay}},set_collapseDelay:function(a){if(a<0){return}this._propertiesState.CollapseDelay=a;return a},get_expandEasing:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ExpandEasing)){return this.get_menu().get_expandEasing()}else{return this._propertiesState.ExpandEasing}},set_expandEasing:function(a){this._propertiesState.ExpandEasing=a;return a},get_collapseEasing:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.CollapseEasing)){return this.get_menu().get_collapseEasing()}else{return this._propertiesState.CollapseEasing}},set_collapseEasing:function(a){this._propertiesState.CollapseEasing=a;return a},createInstance:function(a){return new C1.Web.UI.Controls.C1Menu.C1MenuItem(a)},$1_15:false,displaySubMenu:function(){this.$1_23=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$1_23);this.internalInitialize();if(this.$1_F||this.get_group()){return}this.$1_F=true;if(this.nestedGroupContainer){this.$1_16();var a=this.get_expandDelay();if(a>0){this.$1_22=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$1_22);this.$1_22=window.setTimeout(Function.createDelegate(this,this.$1_24),a)}else{this.$1_24()}}},$1_16:function(){if(!this.$1_15){var b=false;var a=this.get_owner();while(a&&C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)&&(a).get_group()){if(!b){b=this.$1_18((a))}a=a.get_owner()}if(a){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){if(!b){b=this.$1_18((a))}if(b){this.nestedGroupContainer.parentNode.removeChild(this.nestedGroupContainer);(a).nestedGroupContainer.appendChild(this.nestedGroupContainer)}}else{if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a)){if(!b){b=this.$1_17((a))}if(b){this.nestedGroupContainer.parentNode.removeChild(this.nestedGroupContainer);(a).nestedGroupContainer.appendChild(this.nestedGroupContainer)}}}}this.$1_15=true}},$1_17:function(b){var a=(b.scrollContainer)?b.scrollContainer.style.overflow:"";if(a==="auto"||a==="hidden"){return true}return false},$1_18:function(b){var a=(b.scrollContainer)?b.scrollContainer.style.overflow:"";if(a==="auto"||a==="hidden"){return true}return false},hideSubMenu:function(){this.$1_19();this.$1_22=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$1_22);if(!this.$1_F){return}this.$1_F=false;if(this._PopupBehavior){var a=this.get_collapseDelay();if(a>0){this.$1_23=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$1_23);this.$1_23=window.setTimeout(Function.createDelegate(this,this.$1_25),a)}else{this.$1_25()}}},$1_19:function(){if(!C1.Web.UI.Utils.Common.testIsNull(this._expandAnimation)&&this._expandAnimation.get_isAnimating()){this._expandAnimation.stop()}if(!C1.Web.UI.Utils.Common.testIsNull(this._collapseAnimation)&&this._collapseAnimation.get_isAnimating()){this._collapseAnimation.stop()}},$1_1A:0,get_popupBehavior:function(){var b=C1.Web.UI.Controls.C1Menu.C1Menu.$3_30(this);var a=9;if(!this.get_subMenuExpandDirection()){if(!b){a=9}else{a=6}}else{a=this.get_subMenuExpandDirection()}if(this._PopupBehavior){if(this._PopupBehavior.get_positionMode()!==a){this._PopupBehavior.set_positionMode(a)}}this.$1_1A=b;if(!this._PopupBehavior){var c=this.get_menu();this._PopupBehavior=new C1.Web.UI.PopupBehavior(this.nestedGroupContainer,a,0,0,this.element,false);this._PopupBehavior.set_windowCollisionDetection(c.get_windowCollisionDetection());this._PopupBehavior.add_setupPopupDone(Function.createDelegate(this,this._PopupBehavior_SetupPopupDone));this._PopupBehavior.add_showing(Function.createDelegate(this,this._PopupBehavior_Showing));this._PopupBehavior.add_hiding(Function.createDelegate(this,this._PopupBehavior_Hiding));this._PopupBehavior.add_shown(Function.createDelegate(this,this.$1_26));this._PopupBehavior.add_hidden(Function.createDelegate(this,this.popupBehavior_Hidden))}return this._PopupBehavior},_expandAnimation:null,_collapseAnimation:null,toggleDisplaySubMenu:function(){if(this.$1_F){this.hideSubMenu()}else{this.displaySubMenu()}},get_checked:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Checked))?false:this._propertiesState.Checked},set_checked:function(a){if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(this.get_owner())){if(!(this.get_owner()).get_nestedGroupCheckable()){return}}else{if(!(this.get_owner()).get_nestedGroupCheckable()){return}}if(this.get_checked()!==a){this._propertiesState.Checked=a;if(a){if(this.get_enabled()&&!this.get_separator()&&!this.get_header()&&!this.get_group()){this.addCssClass("C1Checked");this.get_menu().$3_4E(this)}}else{if(this.get_enabled()&&!this.get_separator()&&!this.get_header()&&!this.get_group()){this.removeCssClass("C1Checked");this.get_menu().$3_4F(this)}}this.$1_1("Checked",a)}return a},get_accessKey:function(){return this._propertiesState.AccessKey},set_accessKey:function(a){this._propertiesState.AccessKey=a;this.$1_1("AccessKey",a);return a},add_hidden:function(a){this.events.addHandler("hidden",a)},remove_hidden:function(a){this.events.removeHandler("hidden",a)},add_hiding:function(a){this.events.addHandler("hiding",a)},remove_hiding:function(a){this.events.removeHandler("hiding",a)},add_showing:function(a){this.events.addHandler("showing",a)},remove_showing:function(a){this.events.removeHandler("showing",a)},add_shown:function(a){this.events.addHandler("shown",a)},remove_shown:function(a){this.events.removeHandler("shown",a)},$1_1B:function(b){var a=this.events.getHandler("hidden");if(a){a(this,b)}},$1_1C:function(b){var a=this.events.getHandler("showing");if(a){a(this,b)}},$1_1D:function(b){var a=this.events.getHandler("shown");if(a){a(this,b)}},$1_1E:function(b){var a=this.events.getHandler("hiding");if(a){a(this,b)}},$1_1F:function(c){if(C1.Web.UI.Utils.Common.testIsNull(c)){return null}if(c.get_items().get_count()>0){for(var b=c.get_items().get_count()-1;b>=0;b--){var a=c.get_items().get_item(b);if(a.get_displayVisible()){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){if(a.get_enabled()){return a}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(a)){return this.$1_1F(a)}}}}}return null},$1_20:function(c){if(C1.Web.UI.Utils.Common.testIsNull(c)){return null}if(c.get_items().get_count()>0){for(var b=0;b<c.get_items().get_count();b++){var a=c.get_items().get_item(b);if(a.get_displayVisible()){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){if(a.get_enabled()){return a}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(a)){return this.$1_20(a)}}}}}return null},getPrevFocusableItem:function(b){var j=b.get_owner().get_items();var i=b.get_index()-1;var h=j.get_count();while(i>=0){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(j.get_item(i))){var g=j.get_item(i);if(g.get_enabled()&&g.get_displayVisible()){return g}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(j.get_item(i))&&j.get_item(i).get_displayVisible()){var f=this.$1_1F(j.get_item(i));if(!C1.Web.UI.Utils.Common.testIsNull(f)){return f}}}i--}if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(b.get_owner())){var e=this.getPrevFocusableItem(b.get_owner());if(!C1.Web.UI.Utils.Common.testIsNull(e)){return e}}i=h-1;while(i>=0){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(j.get_item(i))){var d=j.get_item(i);if(d.get_enabled()&&d.get_displayVisible()){return d}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(j.get_item(i))){var c=this.$1_1F(j.get_item(i));if(c){return c}}}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(j.get_item(i))&&j.get_item(i).get_displayVisible()){var a=this.$1_1F(j.get_item(i));if(!C1.Web.UI.Utils.Common.testIsNull(j)){return a}}}i--}return this},$1_21:function(i){var h=i.get_owner().get_items();var g=i.get_index()+1;var f=h.get_count();while(g<f){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(h.get_item(g))){var e=h.get_item(g);if(e.get_enabled()&&e.get_displayVisible()){return e}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(h.get_item(g))&&h.get_item(g).get_displayVisible()){var d=this.$1_20(h.get_item(g));if(d){return d}}}g++}if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(i.get_owner())){var c=this.$1_21(i.get_owner());if(!C1.Web.UI.Utils.Common.testIsNull(c)){return c}}g=0;while(g<f){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(h.get_item(g))){var b=h.get_item(g);if(b.get_enabled()&&b.get_displayVisible()){return b}}else{if(C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.isInstanceOfType(h.get_item(g))&&h.get_item(g).get_displayVisible()){var a=this.$1_20(h.get_item(g));if(a){return a}}}g++}return this},getFirstChildFocusableItem:function(){var b=this.get_items();var a=0;var d=b.get_count();while(a<d){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(b.get_item(a))){var c=b.get_item(a);if(c.get_enabled()&&c.get_displayVisible()){return c}}a++}return null},activateMenuItem:function(b){this.internalInitialize();if(this.get_enabled()){this.get_menu().highlightMenuPath(this);if(b){try{this.menuItemElement.focus()}catch(a){}}}},focusParent:function(){var a=this.get_owner();if(a){if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){(a).activateMenuItem(true);return true}}return false},focusPrev:function(){var a=this.getPrevFocusableItem(this);a.activateMenuItem(true)},focusNext:function(){var a=this.$1_21(this);a.activateMenuItem(true)},focusFirstChild:function(){var a=this.getFirstChildFocusableItem();if(a){a.activateMenuItem(true);return true}return false},onMouseOver:function(a){if(this.isSelectableItem()){this.addCssClass("C1Hover");if(this.imgElement&&this.get_imageUrl()!==""){if(this.get_mouseOverImageUrl()!==""){this.imgElement.src=this.get_mouseOverImageUrl()}}}},onMouseOut:function(a){if(this.isSelectableItem()){this.removeCssClass("C1Hover");this.removeCssClass("C1Active");if(this.imgElement&&this.get_imageUrl()!==""){this.imgElement.src=this.get_imageUrl()}}},onMouseDown:function(a){if(this.isSelectableItem()){this.addCssClass("C1Active")}},onMouseUp:function(a){if(this.isSelectableItem()){this.removeCssClass("C1Active")}},onClick:function(a){},$1_22:null,$1_23:null,$1_24:function(){this.get_popupBehavior().show()},$1_25:function(){this.get_popupBehavior().hide()},_PopupBehavior_SetupPopupDone:function(a,b){this.$1_11=this.get_expandAnimation();this._expandAnimation=C1.Web.UI.Behavior.AnimationEffects.createAnimationByType(this.$1_11,this.nestedGroupContainer,this.get_expandDuration(),this.get_expandEasing(),null,null,false,false,true,true);if(this._expandAnimation){this._PopupBehavior.set_showAnimation(this._expandAnimation)}},_PopupBehavior_Showing:function(a,b){this.nestedGroupContainer.style.overflow="hidden";this.$1_1C(new Sys.EventArgs())},$1_26:function(d,c){this.nestedGroupContainer.style.overflow="";if(this.get_items().get_count()>0){this.removeCssClass("C1Closed");this.addCssClass("C1Opened")}this.initializeScrollBehavior();this.$1_1D(new Sys.EventArgs());if(this.get_level()>1&&this.get_nestedGroupOrientation()===2){if(this.get_items().get_count()>0){var b=0;for(var a=0;a<this.get_items().get_count();a++){b+=C1.Web.UI.Utils.Common.getOuterWidth(this.get_items().get_item(a).element)}C1.Web.UI.Utils.Common.setWidth(this.get_itemList(),parseInt(b)+C1.Web.UI.Utils.Common.getMarginBox(this.get_itemList())["horizontal"]+C1.Web.UI.Utils.Common.getPaddingBox(this.get_itemList())["horizontal"])}}if(!C1.Web.UI.Utils.Common.testIsNull(this.scrollContainer)){if(C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.nestedGroupContainer.style.width)){if(C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.$1_A.style.width)){this.$1_A.style.width=this.scrollContainer.offsetWidth.toString()+"px"}}else{this.$1_A.style.width=this.nestedGroupContainer.style.width}if(C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.nestedGroupContainer.style.height)){if(C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.$1_A.style.height)){this.$1_A.style.height=this.get_itemList().offsetHeight.toString()+"px"}}else{this.$1_A.style.height=this.nestedGroupContainer.style.height}}},_PopupBehavior_Hiding:function(a,b){this.nestedGroupContainer.style.overflow="hidden";this.$1_1E(new Sys.EventArgs());this.$1_10=this.get_collapseAnimation();this._collapseAnimation=C1.Web.UI.Behavior.AnimationEffects.createAnimationByType(this.$1_10,this.nestedGroupContainer,this.get_collapseDuration(),this.get_collapseEasing(),null,null,false,false,true,false);if(this._collapseAnimation){this._PopupBehavior.set_hideAnimation(this._collapseAnimation)}},popupBehavior_Hidden:function(a,b){this.nestedGroupContainer.style.overflow="";if(this.get_items().get_count()>0){this.removeCssClass("C1Opened");this.addCssClass("C1Closed")}this.$1_1B(new Sys.EventArgs())},removeCssClass:function(a){if(!C1.Web.UI.Utils.Common.testIsNull(this.menuItemElement)){Sys.UI.DomElement.removeCssClass(this.menuItemElement,a)}},addCssClass:function(a){if(!C1.Web.UI.Utils.Common.testIsNull(this.menuItemElement)){Sys.UI.DomElement.addCssClass(this.menuItemElement,a)}},getNestedGroupOrientation:function(){if(C1.Web.UI.Utils.Common.testIsNull(this.scrollContainer)){return 1}return C1.Web.UI.Controls.C1Menu.C1Menu.$3_32(this.scrollContainer)},addCssClassBeforeInsert:function(){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"addCssClassBeforeInsert");Sys.UI.DomElement.addCssClass(this.nestedGroupContainer,"C1SubMenu");Sys.UI.DomElement.addCssClass(this.nestedGroupContainer,"C1Level"+this.calculateCurrentLevel().toString());this.nestedGroupContainer.style.display="none";this.addCssClass("C1Closed")},createChildControls:function(){C1.Web.UI.Controls.C1Menu.C1MenuItem.callBaseMethod(this,"createChildControls");Sys.UI.DomElement.addCssClass(this.element,"C1MenuItem");this.menuItemElement=document.createElement("a");this.addCssClass("C1Link");this.$1_12();this.textElement=document.createElement("span");Sys.UI.DomElement.addCssClass(this.textElement,"C1TextNode");if(this.getConditionalImageUrl().length>0){this.imgElement=document.createElement("img");this.imgElement.src=this.getConditionalImageUrl();if(!this.get_imagePosition()){Sys.UI.DomElement.addCssClass(this.imgElement,"C1LeftImage");this.textElement.appendChild(this.imgElement);this.textElement.innerHTML+=this.get_text()}else{Sys.UI.DomElement.addCssClass(this.imgElement,"C1RightImage");this.textElement.innerHTML=this.get_text();this.textElement.appendChild(this.imgElement)}}else{this.textElement.innerHTML=this.get_text()}this.menuItemElement.appendChild(this.textElement);this.element.appendChild(this.menuItemElement)},hasMenuItems:function(){return(this.get_items().get_count()>0)},isSelectableItem:function(){if(this.get_enabled()){return true}return false}};C1.Web.UI.Controls.C1Menu.C1MenuItemBase=function(a){this.$1_2=-1;C1.Web.UI.Controls.C1Menu.C1MenuItemBase.initializeBase(this,[a]);this.events=new Sys.EventHandlerList();this.get_propertiesState()["ClientType"]="C1MenuItemBase"};C1.Web.UI.Controls.C1Menu.C1MenuItemBase.prototype={menuItemElement:null,textElement:null,imgElement:null,$1_0:false,events:null,_owner:null,get_firstSibling:function(){if(this.get_owner()){return this.get_owner().get_items().get_item(0)}return null},get_lastSibling:function(){if(this.get_owner()&&this.get_owner().get_items().get_count()-2>=this.get_index()){return this.get_owner().get_items().get_item(this.get_index()+1)}return null},get_nextSibling:function(){if(this.get_owner()&&this.get_owner().get_items().get_count()-2>=this.get_index()){return this.get_owner().get_items().get_item(this.get_index()+1)}return null},get_prevSibling:function(){if(this.get_owner()&&this.get_index()>0){return this.get_owner().get_items().get_item(this.get_index()-1)}return null},get_text:function(){if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Text)){var b=this.textElement.innerHTML;try{var a=new RegExp("<([A-Z][A-Z0-9]*)[^>]*>(.*?)</\\1>|</*([A-Z][A-Z0-9]*)[^>]*>","gi");b=b.replace(a,"")}catch(c){}this._propertiesState.Text=b}return(this._propertiesState.Text)},set_text:function(b){this._propertiesState.Text=b;if(this.textElement){var a="";if(this.get_imageUrl()!==""&&!this.get_imagePosition()){a+="<IMG src="+this.get_imageUrl()+' class="C1LeftImage" align="middle">'}a+=b;if(this.get_imageUrl()!==""&&this.get_imagePosition()===1){a+="<IMG src="+this.get_imageUrl()+' class="C1RightImage" align="middle">'}this.textElement.innerHTML=a}this.$1_1("Text",b);return b},get_separator:function(){return(!this._propertiesState.Separator)?false:this._propertiesState.Separator},set_separator:function(a){this._propertiesState.Separator=a;return a},get_value:function(){return(this._propertiesState.Value)},set_value:function(a){this._propertiesState.Value=a;this.$1_1("Value",a);return a},get_displayVisible:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.DisplayVisible))?true:this._propertiesState.DisplayVisible)},set_displayVisible:function(a){if(a===this.get_displayVisible()){return}this._propertiesState.DisplayVisible=a;C1.Web.UI.Utils.Common.setVisible(this.element,a);this.$1_1("DisplayVisible",a);return a},get_header:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Header))?false:this._propertiesState.Header},set_header:function(a){this._propertiesState.Header=a;return a},get_group:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Group))?false:this._propertiesState.Group},set_group:function(a){this._propertiesState.Group=a;return a},get_clientType:function(){return"C1MenuItemBase"},$1_1:function(b,a){this.get_propertiesState()["_postbackEvent_PropertyChanged_"+b]=a},get_imagePosition:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ImagePosition))?0:this._propertiesState.ImagePosition},set_imagePosition:function(a){this._propertiesState.ImagePosition=a;this.$1_1("ImagePosition",a);return a},get_imageUrl:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ImageUrl))?"":(this._propertiesState.ImageUrl)},set_imageUrl:function(a){this._propertiesState.ImageUrl=a;this.$1_1("ImageUrl",a);return a},get_disabledImageUrl:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.DisabledImageUrl))?"":this._propertiesState.DisabledImageUrl},set_disabledImageUrl:function(a){this._propertiesState.DisabledImageUrl=a;this.$1_1("DisabledImageUrl",a);return a},get_owner:function(){return this._owner},set_owner:function(a){this._owner=a;return a},get_index:function(){return this.$1_2},set_index:function(a){this.$1_2=a;return a},get_level:function(){return this.calculateCurrentLevel()},calculateCurrentLevel:function(){if(this._owner&&C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(this._owner)){return 1}else{if(this._owner&&C1.Web.UI.Controls.C1Menu.C1MenuItemBase.isInstanceOfType(this._owner)){return(this._owner).calculateCurrentLevel()+1}else{return 0}}},$1_3:function(a){this._owner=a},get_menu:function(){var a=this.get_owner();if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a)){return a}else{return(a).get_menu()}},createChildControls:function(){this.element=document.createElement("li");(this.element)["__c1uid"]=this.UID;C1.Web.UI.UIElement.all[this.UID]=this;Sys.UI.DomElement.addCssClass(this.element,"C1ListItem");if(C1.Web.UI.Utils.Common.testIsNull(this._jObj)){this._jObj=jQuery(this.element)}if(!this.get_displayVisible()){this.element.style.display="none"}},initialize:function(){if(this.$1_0){return}this.$1_0=true;C1.Web.UI.Controls.C1Menu.C1MenuItemBase.callBaseMethod(this,"initialize");if(!this.element){this.createChildControls()}else{if(this.element.tagName!=="LI"){var e=this.element.cloneNode(true);this.element=document.createElement("li");(this.element)["__c1uid"]=this.UID;C1.Web.UI.UIElement.all[this.UID]=this;this.element.appendChild(e);if(this.get_menu()){this.get_menu().saveState()}}}var b=this.get_enabled();var a=this.element.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName){var c=a[d];if(c.className.indexOf("C1Link")===-1){continue}if(!this.menuItemElement){this.menuItemElement=a[d]}if(!b){a[d].disabled=true}this.recurInitMenuItemElement(a[d],b)}}},recurInitMenuItemElement:function(e,b){if(e.tagName){if(!b){e.disabled=true}if(!this.get_group()){(e)["__c1uid"]=this.UID}var c=""+e.className+"";if(c.indexOf("C1TextNode")!==-1){this.textElement=e}if(e.tagName==="IMG"){if(c.indexOf("C1LeftImage")!==-1||c.indexOf("C1RightImage")!==-1){this.imgElement=e}}if(c.indexOf("C1SubMenu")!==-1||c.indexOf("C1SubGroup")!==-1){return}var a=e.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName){this.recurInitMenuItemElement(a[d],b)}}}},getConditionalImageUrl:function(){if(!this.get_enabled()&&!C1.Web.UI.Utils.Common.stringIsNullOrEmpty(this.get_disabledImageUrl())){return this.get_disabledImageUrl()}return this.get_imageUrl()},isSelectableItem:function(){return false}};C1.Web.UI.Controls.C1Menu.C1MenuItemCollection=function(a){this.$1=a;this.$0=[];this.$4=new Sys.EventHandlerList()};C1.Web.UI.Controls.C1Menu.C1MenuItemCollection.prototype={$0:null,$1:null,$2:"CollectionCahangedEvent",$3:"BeforeCollectionChangedEvent",$4:null,get_events:function(){return this.$4},get_last:function(){return(this.get_count()>0)?this.get_item(this.get_count()-1):null},get_count:function(){return this.$0.length},add_onCollectionChanged:function(a){this.$4.addHandler(this.$2,a)},remove_onCollectionChanged:function(a){this.$4.removeHandler(this.$2,a)},add_$5:function(a){this.$4.addHandler(this.$3,a)},remove_$5:function(a){this.$4.removeHandler(this.$3,a)},$6:function(d,c){var b=this.$4.getHandler(this.$2);if(b){var a=new C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs(d);a.set_status(c);b(this,a)}},$7:function(d,c){var b=this.$4.getHandler(this.$3);if(b){var a=new C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs(d);a.set_status(c);b(this,a)}},add:function(b){var a=this.get_count();this.insert(a,b);return a},insert:function(b,c){if(!c){return}c.set_owner(this.$1);c.set_index(b);this.$7(c,0);this.$0.splice(b,0,c);if(b<this.$0.length&&b>=0){for(var a=b+1;a<this.$0.length;a++){this.get_item(a).set_index(a)}}c.initialize();if(!Array.contains((this.$1).get_propertiesState()["Items"],(c).get_propertiesState())){(this.$1).get_propertiesState()["Items"].splice(b,0,(c).get_propertiesState());c.get_menu().saveState()}this.$6(c,0);this.$A()},$8:function(b){for(var a=b+1;a<this.get_count();a++){if(this.get_item(a).get_displayVisible()){return this.get_item(a).element}}return null},removeAt:function(c){var b=this.get_item(c);if(!b){return}this.$7(b,1);this.$0.splice(c,1);if(c<this.$0.length&&c>=0){for(var a=c;a<this.$0.length;a++){this.get_item(a).set_index(a)}}(this.$1).get_propertiesState()["Items"].splice(c,1);b.get_menu().saveState();this.$6(b,1);this.$A()},removeRange:function(b,c){for(var a=0;a<c;a++){this.removeAt(b)}},reverse:function(){this.$0.reverse()},clear:function(){for(var a=this.$0.length-1;a>=0;a--){this.removeAt(a)}},contains:function(a){return Array.contains(((this.$0)),a)},indexOf:function(a){if(this.contains(a)){return a.get_index()}return -1},$9:function(a){if(this.contains(a)){this.removeAt(a.get_index())}},$A:function(){var b=0;var a="C1FirstItem";var d="C1LastItem";for(var c=0;c<this.$0.length;c++){if(!(this.$0[c]).get_displayVisible()){continue}(this.$0[c]).removeCssClass(a);(this.$0[c]).removeCssClass(d);if(!b){(this.$0[c]).addCssClass(d)}if(b===(this.$0[c]).element.parentNode.childNodes.length-1){(this.$0[c]).addCssClass(d)}b++}},get_item:function(a){return this.$0[a]},set_item:function(b,c){if(b>=0&&b<this.get_count()){var a=this.$0[b];if(c!==a){this.$9(a);this.insert(b,c)}}return c}};C1.Web.UI.Controls.C1Menu.C1MenuItemGroup=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.initializeBase(this,[a]);this.set_group(true);this.get_propertiesState()["ClientType"]="C1MenuItemGroup"};C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.prototype={get_clientType:function(){return"C1MenuItemGroup"},get_group:function(){return true},set_group:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.callBaseMethod(this,"set_group",[a]);return a},get_separator:function(){return false},set_separator:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.callBaseMethod(this,"set_separator",[a]);return a},get_header:function(){return false},set_header:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.callBaseMethod(this,"set_header",[a]);return a},getNestedGroupOrientation:function(){return C1.Web.UI.Controls.C1Menu.C1Menu.$3_30(this)},createChildControls:function(){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.callBaseMethod(this,"createChildControls");Sys.UI.DomElement.addCssClass(this.element,"C1MenuItemGroup")},addCssClassBeforeInsert:function(){C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.callBaseMethod(this,"addCssClassBeforeInsert");Sys.UI.DomElement.addCssClass(this.nestedGroupContainer,"C1SubGroup")},createInstance:function(a){return new C1.Web.UI.Controls.C1Menu.C1MenuItemGroup(a)},hasMenuItems:function(){return(this.get_items().get_count()>0)},isSelectableItem:function(){return false}};C1.Web.UI.Controls.C1Menu.C1MenuItemHeader=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.initializeBase(this,[a]);this.set_header(true);this.get_propertiesState()["ClientType"]="C1MenuItemHeader"};C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.$1_4=function(a){switch(a){case 1:return"H1";case 2:return"H2";case 3:return"H3";case 4:return"H4";case 5:return"H5";case 6:return"H6";default:return"H3"}};C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.prototype={get_clientType:function(){return"C1MenuItemHeader"},get_group:function(){return false},set_group:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.callBaseMethod(this,"set_group",[a]);return a},get_separator:function(){return false},set_separator:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.callBaseMethod(this,"set_separator",[a]);return a},get_header:function(){return true},set_header:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.callBaseMethod(this,"set_header",[a]);return a},get_headerType:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.HeaderType))?3:this._propertiesState.HeaderType},set_headerType:function(a){this._propertiesState.HeaderType=a;this.$1_1("HeaderType",a);return a},createChildControls:function(){C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.callBaseMethod(this,"createChildControls");Sys.UI.DomElement.addCssClass(this.element,"C1MenuItemHeader");this.menuItemElement=document.createElement(C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.$1_4(this.get_headerType()));(this.menuItemElement)["__c1uid"]=this.UID;Sys.UI.DomElement.addCssClass(this.menuItemElement,"C1Heading");this.textElement=document.createElement("span");(this.textElement)["__c1uid"]=this.UID;Sys.UI.DomElement.addCssClass(this.textElement,"C1TextNode");if(this.getConditionalImageUrl().length>0){this.imgElement=document.createElement("img");(this.imgElement)["__c1uid"]=this.UID;this.imgElement.src=this.getConditionalImageUrl();if(!this.get_imagePosition()){Sys.UI.DomElement.addCssClass(this.imgElement,"C1LeftImage");this.textElement.appendChild(this.imgElement);this.textElement.innerHTML+=this.get_text()}else{Sys.UI.DomElement.addCssClass(this.imgElement,"C1RightImage");this.textElement.innerHTML=this.get_text();this.textElement.appendChild(this.imgElement)}}else{this.textElement.innerHTML=this.get_text()}this.menuItemElement.appendChild(this.textElement);this.element.appendChild(this.menuItemElement)},createInstance:function(a){return new C1.Web.UI.Controls.C1Menu.C1MenuItemHeader(a)},isSelectableItem:function(){return false}};C1.Web.UI.Controls.C1Menu.C1MenuItemOwner=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.initializeBase(this,[a]);if(!this.element){this._propertiesState.Items=[]}};C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.prototype={$1_4:false,$1_5:null,$1_6:false,$1_7:false,get_nestedGroupWidth:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.NestedGroupWidth))?"":this._propertiesState.NestedGroupWidth)},set_nestedGroupWidth:function(a){this._propertiesState.NestedGroupWidth=a;this.$1_8();this.$1_1("NestedGroupWidth",a);return a},get_nestedGroupCheckable:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.NestedGroupCheckable))?true:this._propertiesState.NestedGroupCheckable)},set_nestedGroupCheckable:function(a){this._propertiesState.NestedGroupCheckable=a;if(!C1.Web.UI.Utils.Common.testIsNull(this.scrollContainer)){if(a){Sys.UI.DomElement.addCssClass(this.scrollContainer,"C1CheckableSupport")}else{Sys.UI.DomElement.removeCssClass(this.scrollContainer,"C1CheckableSupport")}}this.$1_1("NestedGroupCheckable",a);return a},get_nestedGroupHeight:function(){return((C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.NestedGroupHeight))?"":this._propertiesState.NestedGroupHeight)},set_nestedGroupHeight:function(a){this._propertiesState.NestedGroupHeight=a;this.$1_8();this.$1_1("NestedGroupHeight",a);return a},$1_8:function(){var b=this.get_nestedGroupWidth();var a=this.get_nestedGroupHeight();if(this.nestedGroupContainer){this.nestedGroupContainer.style.width=b}if(this.scrollContainer){this.scrollContainer.style.width=b}if(this.$1_A){this.$1_A.style.width=b}if(this.nestedGroupContainer){this.nestedGroupContainer.style.height=a}if(this.scrollContainer){this.scrollContainer.style.height=a}if(this.$1_A){this.$1_A.style.height=a}if(b!==""||a!==""){}},get_enabled:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.Enabled))?true:this._propertiesState.Enabled},set_enabled:function(c){if(this._propertiesState.Enabled!==c){this._propertiesState.Enabled=c;var b=c;this.element.disabled=!b;var a=this.element.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName){a[d].disabled=!b;this.recurCheckEnabledState(a[d],b)}}this.$1_1("Enabled",c);this.get_menu().saveState()}return c},$1_9:null,get_itemList:function(){return this.$1_9},scrollContainer:null,nestedGroupContainer:null,$1_A:null,get_flowRight:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.FlowRight))?false:this._propertiesState.FlowRight},set_flowRight:function(a){this._propertiesState.FlowRight=a;return a},getNestedGroupOrientation:function(){return C1.Web.UI.Controls.C1Menu.C1Menu.$3_30(this)},get_nestedGroupOrientation:function(){this.internalInitialize();if(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.NestedGroupOrientation)){if(C1.Web.UI.Utils.Common.testIsNull(this.scrollContainer)){return 0}var a=this.getNestedGroupOrientation();if(a===1){return 1}else{return 2}}return this._propertiesState.NestedGroupOrientation},set_nestedGroupOrientation:function(a){this.internalInitialize();this.setNestedGroupOrientation(a);this._propertiesState.NestedGroupOrientation=a;this.$1_1("NestedGroupOrientation",a);return a},$1_B:function(b){if(C1.Web.UI.Utils.Common.testIsNull(this.get_menu())){return 1}else{var a=C1.Web.UI.Controls.C1Menu.C1Menu.$3_52(b,this);if(a===2){return 0}else{return 1}}},setNestedGroupOrientation:function(c){if(!this.nestedGroupContainer){return}var b;if(c===2){b=0}else{if(c===1){b=1}else{b=this.$1_B(c)}}if(!C1.Web.UI.Utils.Common.testIsNull(this.scrollContainer)){var a=this.scrollContainer.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName==="UL"){C1.Web.UI.FlowPanel.setFlowPanelOrientation(a[d],b,this.get_flowRight());break}}}this.updateNestedGroupContainerCompoundCssClass(b)},updateNestedGroupContainerCompoundCssClass:function(c){var b=((this.get_group())?"C1SubGroup":"C1SubMenu");var a=b;if(!c){a+="-C1Horizontal";if(!C1.Web.UI.Utils.Common.testIsNull(this.$1_9)){Sys.UI.DomElement.removeCssClass(this.$1_9,"c1-v-flow");Sys.UI.DomElement.addCssClass(this.$1_9,"c1-h-flow")}}else{if(c===1){a+="-C1Vertical";if(!C1.Web.UI.Utils.Common.testIsNull(this.$1_9)){Sys.UI.DomElement.removeCssClass(this.$1_9,"c1-h-flow");Sys.UI.DomElement.addCssClass(this.$1_9,"c1-v-flow")}}}var e=""+this.nestedGroupContainer.className+"";var d=new RegExp("\\s*(C1SubGroup|C1SubMenu)-*\\S*(-C1Horizontal|-C1Vertical)");this.nestedGroupContainer.className=e.replace(d,"");Sys.UI.DomElement.addCssClass(this.nestedGroupContainer,a)},internalInitialize:function(){this.initialize();if(this.$1_7){return}this.$1_7=true;this.initializeItems();this.$1_5.add_$5(Function.createDelegate(this,this._items_OnBeforeCollectionChanged));this.$1_5.add_onCollectionChanged(Function.createDelegate(this,this._items_OnCollectionChanged))},$1_C:function(){var b=this.nestedGroupContainer.childNodes;for(var a=0;a<b.length;a++){if(b[a].tagName==="DIV"&&b[a].className.indexOf("C1SubMenuContainer")!==-1){this.$1_A=b[a];(this.$1_A)["__c1uid"]=this.UID;for(var f=0;f<this.$1_A.childNodes.length;f++){var e=this.$1_A.childNodes[f];if(e.className.indexOf("C1ScrollContainer")!==-1){this.scrollContainer=e;(this.scrollContainer)["__c1uid"]=this.UID;(this.scrollContainer.getElementsByTagName("ul")[0])["__c1uid"]=this.UID;var d=e.childNodes;for(var c=0;c<d.length;c++){if(d[c].tagName==="UL"){this.$1_9=d[c];break}}break}}break}}},initialize:function(){if(this.$1_6){return}this.$1_6=true;C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.callBaseMethod(this,"initialize");if(!this.element){this.createChildControls()}this.nestedGroupContainer=C1.Web.UI.Controls.C1Menu.C1MenuBase.$3_0(this.element);if(this.nestedGroupContainer){this.$1_C()}else{}if(this.get_group()){this.initializeItems();var a=this.get_owner();if(C1.Web.UI.Controls.C1Menu.C1MenuItem.isInstanceOfType(a)){(a).add_shown(Function.createDelegate(this,this.parentScrollBehaviorInitialized))}if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a)){(a).add_scrollBehaviorInit(Function.createDelegate(this,this.parentScrollBehaviorInitialized))}}},initializeItems:function(){if(this.$1_4){return}this.$1_4=true;var b=this._propertiesState.Items;this.$1_5=new C1.Web.UI.Controls.C1Menu.C1MenuItemCollection(this);var a=jQuery(this.$1_9).children("li");if(b){for(var f=0;f<b.length;f++){var e=b[f];var d;var c=null;if(f<a.length){c=a.get(f)}if(c){d=this.createInitInstanceFromElement(c)}else{throw Error.create(String.format(C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$1("C1Menu.CannotCreateChild"),e.ClientID))}d.assignPropertiesState(e);this.$1_5.add(d);d.initialize()}if(!this.$1_5.get_count()){if(!C1.Web.UI.Utils.Common.testIsNull(this.nestedGroupContainer)){this.element.removeChild(this.nestedGroupContainer)}}}},$1_D:function(a){if(!a.get_displayVisible()){return true}if(C1.Web.UI.Controls.C1Menu.C1Menu.isInstanceOfType(a.get_owner())){if((a.get_owner()).get_displayVisible()){return false}return true}return this.$1_D(a.get_owner())},createInitInstanceFromElement:function(a){if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemGroup")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemGroup(a)}else{if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemHeader")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemHeader(a)}else{if(Sys.UI.DomElement.containsCssClass(a,"C1MenuItemSeparator")){return new C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator(a)}}}return new C1.Web.UI.Controls.C1Menu.C1MenuItem(a)},$1_E:function(b){if(C1.Web.UI.Utils.Common.testIsNull(b.ClientType)){return null}var a=b.ClientType;if(a==="C1MenuItemGroup"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemGroup(null)}else{if(a==="C1MenuItemHeader"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemHeader(null)}else{if(a==="C1MenuItemSeparator"){return new C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator(null)}}}return new C1.Web.UI.Controls.C1Menu.C1MenuItem(null)},recurCheckEnabledState:function(e,b){if(e.tagName){e.disabled=!b;var c=""+e.className+"";if(c.indexOf("C1SubMenu")!==-1||c.indexOf("C1SubGroup")!==-1){return}var a=e.childNodes;for(var d=0;d<a.length;d++){if(a[d].tagName){this.recurCheckEnabledState(a[d],b)}}}},parentScrollBehaviorInitialized:function(a,b){this.initializeScrollBehavior()},initializeScrollBehavior:function(){var a=this.get_scrollBehavior();if(a){a.invalidate()}a=null},get_scrollBehavior:function(){if(!this._scrollBehavior&&this.nestedGroupContainer&&this.scrollContainer){var a=this._propertiesState.ScrollSettings;if(C1.Web.UI.Utils.Common.testIsNull(a)||C1.Web.UI.Utils.Common.testIsNull(a.ScrollMode)||a.ScrollMode===1){return null}this._scrollBehavior=new C1.Web.UI.DOMScrollBehavior(this.scrollContainer);this._scrollBehavior.buttonsMarkerHash={__c1uid:this.UID};this.get_menu().$3_4B(a);this._scrollBehavior.assignPropertiesUsingHash(a);this._scrollBehavior.initialize()}return this._scrollBehavior},_scrollBehavior:null,_items_OnCollectionChanged:function(b,c){var a=c;if(!a.get_status()){this.addItemElement(a.get_item())}else{if(a.get_status()===1){this.removeItemElement(a.get_item())}}},addCssClassBeforeInsert:function(){},_items_OnBeforeCollectionChanged:function(c,d){var b=d;if(!b.get_status()){if(!this.get_items().get_count()){if(C1.Web.UI.Utils.Common.testIsNull(this.nestedGroupContainer)){this.nestedGroupContainer=document.createElement("div");var a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,"C1ScrollContainer");if(this.get_nestedGroupCheckable()){Sys.UI.DomElement.addCssClass(a,"C1CheckableSupport")}var g=document.createElement("ul");Sys.UI.DomElement.addCssClass(g,"C1List flow-panel");this.element.appendChild(this.nestedGroupContainer);a.appendChild(g);var f=document.createElement("div");Sys.UI.DomElement.addCssClass(f,"C1SubMenuContainer");f.appendChild(a);this.nestedGroupContainer.appendChild(f);this.$1_C();this.updateNestedGroupContainerCompoundCssClass(this.$1_B(this.get_nestedGroupOrientation()));this.setNestedGroupOrientation(this.get_nestedGroupOrientation());this.addCssClassBeforeInsert()}}}else{if(b.get_status()===1){if(this.get_items().get_count()===1){}}}},get_items:function(){this.internalInitialize();return this.$1_5},addItemElement:function(c){if(!c.element||!c.element.parentNode||c.element.parentNode!==this.element){this.$1_A.style.width="";this.$1_A.style.height="";if(c.get_index()<this.get_items().get_count()-1&&c.get_index()>=0){var a=this.get_items().get_item(c.get_index()+1).element;if(a){this.$1_9.insertBefore(c.element,a)}else{this.$1_9.appendChild(c.element)}}else{this.$1_9.appendChild(c.element)}var b=C1.Web.UI.Controls.C1Menu.C1Menu.$3_52(this.get_nestedGroupOrientation(),this);if(b===2){Sys.UI.DomElement.removeCssClass(c.element,"c1-v-child");Sys.UI.DomElement.addCssClass(c.element,"c1-h-child")}else{Sys.UI.DomElement.removeCssClass(c.element,"c1-h-child");Sys.UI.DomElement.addCssClass(c.element,"c1-v-child")}}},removeItemElement:function(b){this.$1_A.style.width="";this.$1_A.style.height="";var a=b.element;if(a){if(this.get_menu().$3_50(this.$1_9,a)){this.$1_9.removeChild(a)}}}};C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.initializeBase(this,[a]);this.set_separator(true);this.get_propertiesState()["ClientType"]="C1MenuItemSeparator"};C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.prototype={get_clientType:function(){return"C1MenuItemSeparator"},get_group:function(){return false},set_group:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.callBaseMethod(this,"set_group",[a]);return a},get_separator:function(){return true},set_separator:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.callBaseMethod(this,"set_separator",[a]);return a},get_header:function(){return false},set_header:function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.callBaseMethod(this,"set_header",[a]);return a},createChildControls:function(){C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.callBaseMethod(this,"createChildControls");Sys.UI.DomElement.addCssClass(this.element,"C1MenuItemSeparator");this.menuItemElement=document.createElement("span");(this.menuItemElement)["__c1uid"]=this.UID;this.menuItemElement.innerHTML="&nbsp;";Sys.UI.DomElement.addCssClass(this.menuItemElement,"C1Separator");this.element.appendChild(this.menuItemElement)},createInstance:function(a){return new C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator(a)},isSelectableItem:function(){return false}};C1.Web.UI.Controls.C1Menu._C1MenuLocalize=function(){};C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$1=function(a){if(C1.Web.UI.Utils.Common.testIsNull(C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$0)){C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$0=new C1.Web.UI.C1ClientResLoader("C1MenuClientRes")}return C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$0.getString(a)};C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs=function(a){C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs.initializeBase(this);this.$1_0=a};C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs.prototype={$1_0:null,$1_1:0,get_item:function(){return this.$1_0},get_status:function(){return this.$1_1},set_status:function(a){this.$1_1=a;return a}};C1.Web.UI.Controls.C1Menu.C1MenuBase.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuBase",C1.Web.UI.C1ThemeableControlBase);C1.Web.UI.Controls.C1Menu.C1Menu.registerClass("C1.Web.UI.Controls.C1Menu.C1Menu",C1.Web.UI.Controls.C1Menu.C1MenuBase,C1.Web.UI.Controls.C1Menu.IC1MenuItemOwner);C1.Web.UI.Controls.C1Menu.C1MenuItemBase.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemBase",C1.Web.UI.UIElement);C1.Web.UI.Controls.C1Menu.C1MenuItemOwner.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemOwner",C1.Web.UI.Controls.C1Menu.C1MenuItemBase,C1.Web.UI.Controls.C1Menu.IC1MenuItemOwner);C1.Web.UI.Controls.C1Menu.C1MenuItem.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItem",C1.Web.UI.Controls.C1Menu.C1MenuItemOwner);C1.Web.UI.Controls.C1Menu.C1MenuItemCollection.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemCollection");C1.Web.UI.Controls.C1Menu.C1MenuItemGroup.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemGroup",C1.Web.UI.Controls.C1Menu.C1MenuItemOwner);C1.Web.UI.Controls.C1Menu.C1MenuItemHeader.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemHeader",C1.Web.UI.Controls.C1Menu.C1MenuItemBase);C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemSeparator",C1.Web.UI.Controls.C1Menu.C1MenuItemBase);C1.Web.UI.Controls.C1Menu._C1MenuLocalize.registerClass("C1.Web.UI.Controls.C1Menu._C1MenuLocalize");C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs.registerClass("C1.Web.UI.Controls.C1Menu.C1MenuItemCollectionChangedEventArgs",Sys.EventArgs);C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenu=null;C1.Web.UI.Controls.C1Menu.C1Menu.__CurrentActiveMenuId="";C1.Web.UI.Controls.C1Menu._C1MenuLocalize.$0=null;
C1MenuClientRes={"C1Menu.CannotCreateChild":"(CE101003)Child UIElement with Client ID {0} can not be initialized. DOMElement not found."};
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();