
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2009 9:57:50 AM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
function WebMenuControlBase(vd566){ this.ClassName ="WebMenuControlBase"; this.Version ="1.5.2006"; this.BuildNumber ="0"; this.MajorVersion ="1.5"; this.RequiredFrameworkVersion ="2.0.5000.18"; ISControl.call(this,vd566); this.ScriptDirectory ="/CommonLibrary/WebDesktop/V3_0_7200/"; this.ImageSize =new UnitSize(); this.IntegratedTo ="None"; this.MenuStyleSettings =new WebMenuStyles(); this.Initialized =false; this.Id =this.ClientId =vd566; this.ShowDelay =500; this.TopAdjustment =0; this.LeftAdjustment =0; this.AutoPostBack ="No";  this.ImageSize.Width =16; this.ImageSize.Height =16; this.OnRootMenuClosed =null;  this.MenuWindowType ="Popup"; this.MenuDropShadow =false; this.MenuAnimation =false; this.MenuAnimationMode ="Fading"; this.AnimatedObj =null; this.SkipAnimation =false; this.SkipAlpha =false; this.AnimationSpeed ="Fast"; this.AnimationInterval =10; this.DrawImageBackground =false; this.UseW3CPositioning =false; this.IsRightToLeft =false;  this.GetStyleString =function() { return wd2fc9.m7ed42(this); };  this.CreateDefaultStyles =function() { wd2fc9.me5c40(this); };  this.Destroy =function() { if (this.MenuWindowType =="Normal") { for (var vd1d70=0; vd1d70<this.RootMenu.Items.length; vd1d70++) { var vc2f53 =this.RootMenu.Items[vd1d70];  if (vc2f53.HasSubMenu()&&vc2f53.SubMenu.Popup !=null) vc2f53.SubMenu.Destroy(); }  this.RootMenu.Destroy(); } };  this.ApplyStyles =function() {  };  this.GetAllMenus =function() {  };  this.GetAllOpenMenus =function() {  };  this.SetIntegratedToDesktopManager =function() { wd2fc9.mb0457(this); };  this.SetIntegratedToPlaceHolderManager =function() { wd2fc9.m47619(this); };  this.CopyMenuSetting =function(vb9f42) { this.MenuAnimation =vb9f42.MenuAnimation; this.MenuAnimationMode =vb9f42.MenuAnimationMode; this.MenuDropShadow =vb9f42.MenuDropShadow; this.MenuWindowType =vb9f42.MenuWindowType; this.AnimationSpeed =vb9f42.AnimationSpeed; }; this.GetLocation =function(v64242,v4aa92,v04027) { return wd2fc9.md2234(new OffsetLocation(v64242,v4aa92),v04027); }; this.GetEventLocation =function() { return wd2fc9.md2234(new OffsetLocation(event.clientX,event.clientY)); };}function WebContextMenu(v69d81){ WebMenuControlBase.call(this,v69d81); this.ClassName ="WebContextMenu"; this.RootMenu =new WebMenu(); this.RootMenu.MenuControl =this; this.RootMenu.Direction ="Vertical"; this.RootMenu.OffsetAlignment ="LeftBottom"; this.Items =this.RootMenu.Items; this.ControlId =""; this.ClientSideEvents =new WebContextMenuClientSideEvents(); this.UseCustomContent =false; this.CustomContentElement =null; this.DisableFullHeightScrolling =false; this.OnUnload =function() { this.ClearAll(); };  this.OnPropertiesInitialized =function() { if (this.Events !=null) { var v63161; for(v63161 in this.Events) { if (typeof(this.Events[v63161])=="string") this.ClientSideEvents[v63161] =this.Events[v63161]; } }  var v1872 =ISXml.GetAttribute(this.XmlNode,"ImageSize");  if (v1872 !="" &&v1872 !=null) { this.ImageSize =new UnitSize(); this.ImageSize.Parse(v1872); } }; this.ClearAll =function() { wd2fc9.m5da74(this.RootMenu); this.RootMenu.MenuControl =this; this.Items =this.RootMenu.Items; };  this.IsAllItemsInvisible =function(va7d81) { for (var vae193=0; vae193<va7d81.length; vae193++) { if (va7d81[vae193].Visible) return false; }  return true; };  this.Show =function(v72981,v0ee11,v6c860) { if ((this.Items.length ==0 ||this.IsAllItemsInvisible(this.Items))&&!this.UseCustomContent) return;  if (typeof(v72981)=="object" &&v72981 !=null) { v0ee11 =v72981.Y; v72981 =v72981.X; } this.RootMenu.Show(v72981,v0ee11,v6c860); };  this.SetOffsetElement =function(vcd372) { this.RootMenu.OffsetElement =vcd372; };  this.HideAll =function() { if (this.RootMenu.IsOpen()) this.RootMenu.Hide(); };  this.RefreshStructure =function() { if (this.MenuStyleSettings !=null) { this.MenuAnimation =this.MenuStyleSettings.MenuAnimation; this.MenuDropShadow =this.MenuStyleSettings.MenuDropShadow; this.MenuWindowType =this.MenuStyleSettings.MenuWindowType; this.MenuAnimationMode =this.MenuStyleSettings.MenuAnimationMode; }  wd2fc9.ma632(this.Items,this); };}function WebContextMenuClientSideEvents(){ this._Type ="WebContextMenuClientSideEvents"; ISObject.call(this); this.OnInitialize =""; this.OnShowMenu =""; this.OnMenuItemClick ="";}function WebMenuStyles(){ this._Type ="WebMenuStyles"; ISObject.call(this); this.ItemStyle =null; this.FrameStyle =""; this.DisabledItemStyle =null; this.CheckedItemStyle =null; this.SeparatorStyle =""; this.BackgroundStripWidth =23; this.HasBackgroundStrip =true; this.BackgroundStripColor ="FFFFFF"; this.BackgroundStripColor2 ="C4C3AC"; this.ItemPadding =3; this.ContentPadding =7; this.MenuWindowType ="Popup"; this.MenuDropShadow =false; this.MenuAnimation =false; this.MenuAnimationMode ="Fading";  this.IconCellWidth =20; this.BackgroundStripImage =""; this.HighlightMode ="UseWebStyle"; this.UseSmartWebResources =true; this.HighlightDisabledItem =false; this.ImagesSettings =new WebMenuImagesSettings(); this.CustomStyle ="";  this.OnPropertiesInitialized =function() { this.Parent.MenuWindowType =this.MenuWindowType; this.Parent.MenuDropShadow =this.MenuDropShadow; this.Parent.MenuAnimation =this.MenuAnimation; this.Parent.MenuAnimationMode =this.MenuAnimationMode; };}function WebMenuImagesSettings(){ this._Type ="WebMenuImagesSettings"; ISObject.call(this); this.OverLeft =""; this.OverCenter =""; this.OverRight =""; this.ActiveIconCell =""; this.DisabledLeft =""; this.DisabledCenter =""; this.DisabledRight ="";}function WebMenu(vaae27){ this._Type ="WebMenu"; ISObject.call(this); this.Name =""; this.Items =new ISArray(); this.ParentMenu =null; this.ParentMenuItem =null; this.MenuControl =null;  this.DisplayMode ="ImageAndText"; this.IconViewMode =false; this.ActiveItemIndex =-1; this.ActiveItem =null; this.Direction ="Horizontal"; this.OffsetAlignment ="RightTop";  this.Width =null; this.Initialized =false; this.Element =null; this.Popup =null; this.OffsetElement =null;  this.Items.Parent =this; this.ScrollInterval =-1; this.ScrollEnabled =false; this.RuntimeHeight =0;  this._TempDiv =null; this._NeedSizeRecalc =false; this._CloseIntervalId =-1;  if (vaae27) { this.ParentMenuItem =vaae27; }  this.IsOpen =function() { if (this.Popup) return this.Popup.isOpen; else return false; };  this.IsRootMenu =function() { return (this.ParentMenuItem ==null); };  this.GetGroupItems =function() { var v14756 =new Array(); var v6e60 =null; for (var v07b12=0; v07b12<this.Items.length; v07b12++) { var v4ac10 =this.Items[v07b12]; if ((v4ac10.Text ==null ||v4ac10.Text =="" ||(v4ac10.Text !="" &&v4ac10.IconViewDisplayMode =="Image"))&&v4ac10.Type !="Separator" &&v4ac10.Type !="Custom") { if (v6e60 ==null ||(v6e60 !=null &&v6e60.constructor !=Array)) v6e60 =new ISArray();  v6e60.Add(v4ac10); } else { v6e60 =v4ac10; }  var v86375 =this.Items[v07b12+1]; if (v86375 &&(v86375.Type =="Separator" ||v86375.ImageURL =="" ||v86375.ImageURL ==null ||(v86375.ImageURL !="" &&v86375.IconViewDisplayMode =="Text"))) { v14756.push(v6e60); v6e60 =null; } else if (!v86375) { v14756.push(v6e60); } }  return v14756; };  this.GetOpenSubMenu =function() { for (var v07b12=0; v07b12<this.Items.length; v07b12++) { var v4ac10 =this.Items[v07b12]; if (v4ac10.HasSubMenu()&&v4ac10.Enabled &&v4ac10.IsSubMenuOpen()) { return v4ac10; } }  return null; };  this.GetId =function() { var v3db59 =this.MenuControl.Id +"_"; var v6ce66 =""; var ve3572 =""; var v94864 =this.ParentMenuItem; var v4c14 =new Array();  while (v94864 !=null) { v4c14.push(v94864.Name); v94864 =v94864.OwnerMenu.ParentMenuItem; } v4c14.reverse();  for(var v07b12=0; v07b12<v4c14.length; v07b12++) ve3572 =v4c14[v07b12] +"_";  v6ce66 =v3db59 +ve3572;  return v6ce66; };  this.GetDocument =function() { if (this.Popup) { try { return this.Popup.document; } catch(e) { return null; } } else return null; };  this.GetElement =function() { return this.Element; };  this.GetMenuBodyElement =function() { var v3c140 =this.GetDocument(); if (v3c140) return v3c140.getElementById(this.GetId()+"_body"); else return null; };  this.GetMenuContainerElement =function() { var v3c140 =this.GetDocument(); if (v3c140) return v3c140.getElementById(this.GetId()+"_container"); else return null; };  this.GetScrollElement =function(v54063) { var v3c140 =this.GetDocument(); return v3c140.getElementById(this.GetId()+"_scroll_" +v54063); };  this.GetSelectedItemByGroup =function(v10d47) { for (var v07b12=0; v07b12<this.Items.length; v07b12++) { var v4ac10 =this.Items[v07b12];  if (v4ac10.Type =="Radio" &&v4ac10.GroupName ==v10d47 &&v4ac10.Checked) return v4ac10; }  return null; };  this.Destroy =function() { var vf7640 =this.Element;  if (vf7640) Listener.Unload(vf7640);  if (this.Popup) { if (this.MenuControl.MenuWindowType =="Popup") { var v3dc47 =this.GetDocument(); v3dc47.open("text/plain","replace"); v3dc47.write(""); v3dc47.close(); this.Popup =null; } else { document.body.removeChild(this.Popup._e); ISDeleteObject(this.Popup); } } };  this.Show =function(v78d83,ve8d73,ve1a43) { if (!this.Initialized) { wd2fc9.m88b35(this); }  wd2fc9.m8fa43(this,v78d83,ve8d73,ve1a43); };  this.Initialize =function() { if (!this.Initialized) { wd2fc9.m88b35(this); } };  this.InstantiateIn =function(vf7640) { this.Initialize();  if (this.MenuControl.MenuWindowType !="Normal") { alert("InstantiateIn method can only be used with Normal MenuWindowType"); return; } vf7640.appendChild(this.Popup._e); };  this.SetStaticVisibility =function() { this.Popup._e.style.cssText =""; this.Popup._e.keepVisible =true; this.GetElement().style.position =""; this.GetMenuBodyElement().parentElement.style.position =""; this.GetMenuContainerElement().style.position =""; };  this.Hide =function() { if (!this.IsOpen()) return;  if (this.Popup &&this.Popup.hide) this.Popup.hide();  if (!IS.ie ||this.MenuControl.MenuWindowType =="Normal") { var v7fe50 =this.GetOpenSubMenu(); if (v7fe50) v7fe50.SubMenu.Hide(); }  if (IS.ie &&this.MenuControl.MenuWindowType =="Normal") { if (this.ParentMenu !=null) this.ParentMenu.SetActive(); }  if (this.MenuControl.MenuAnimation) { if (this.MenuControl.AnimatedObj !=null) { var v52724 =this.MenuControl.AnimatedObj.IntervalId;  if (v52724 >0) { clearTimeout(v52724); this.MenuControl.AnimatedObj.IntervalId =-1; }  wd2fc9.me3e72(this); } } };  this.GetDocumentEvent =function() { return this.GetDocument().parentWindow.event; };  this.GetContentWindow =function() { return this.GetDocument().parentWindow; };  this.Invalidate =function() { };  this.GetStripElement =function() { var v8a485 =this.MenuControl; var v0875 =v8a485.MenuStyleSettings; if (v0875.HasBackgroundStrip &&!this.IconViewMode) { var v3c140 =this.GetDocument(); if (v3c140) return v3c140.getElementById(this.GetId()+"_strip"); }  return null; };   this.SetActive =function() { if (IS.ie) { try { this.Element.setActive(); } catch(e) { } } };  this.GetRootMenu =function() { var v01660 =this.ParentMenu;  if (v01660 ==null) return this;  while (true) { if (v01660.ParentMenu ==null) return v01660; else v01660 =v01660.ParentMenu; }  return null; };  this.SetDirty =function() { this._NeedSizeRecalc =true; };  this.GetItem =function(ve4e38) { return this.Items.GetNamedItem(ve4e38); };  this.Clear =function() { wd2fc9.m5da74(this); };  this.SetHeight =function(v17b38) { var vf7640 =this.GetElement(); vf7640.style.height =v17b38; };  this.RemoveAllItems =function() { var v6a324 =this.Items.length;  for (var v07b12=0; v07b12<v6a324; v07b12++) this.Items.Remove(this.Items[0]); };   this.PerformKeyboardNavigation =function(vd3c22) { wd2fc9.m9bd39(this,vd3c22); };  this.InvalidateUI =function() { wd2fc9.mfbb15(this); };}function WebMenuSeparatorItem(v7c057){ WebMenuItem.call(this);  if (v7c057) this.Name =v7c057;  this.Type ="Separator";}function WebMenuRadioItem(v2d357,v1bb61,v40b95,v94f20,v5d350,v21360,v78f3){ WebMenuItem.call(this,v2d357,v40b95,v94f20,v5d350,v21360);  this.Type ="Radio";  if (v1bb61) this.GroupName =v1bb61;  if (v78f3) this.Checked =v78f3;}function WebMenuCheckBoxItem(v71613,vcda40,v6f980,v32223,v2e572,v76f68){ WebMenuItem.call(this,v71613,vcda40,v6f980,v32223,v2e572);  this.Type ="CheckBox";  if (v76f68) this.Checked =v76f68;}function WebMenuItem(vcf675,vc9937,v20d37,vb2170,vcc234){ this._Type ="WebMenuItem"; ISObject.call(this); this.Name =""; this.Index =-1; this.Collection =null; this.ParentMenu =null; this.SubMenu =new WebMenu(this); this.OwnerMenu =null; this.Element =null; this.Items =this.SubMenu.Items;  this.Type ="Normal"; this.Text =""; this.ImageURL =""; this.OnClick =null; this.KeepMenuVisible =false; this.Enabled =true; this.AccessKey =""; this.Shortcut =new ShortcutKey(); this.Tooltip =""; this.Visible =true; this.TargetURL =""; this.TargetFrame ="blank"; this.GroupName =""; this.IconViewDisplayMode ="Image"; this.IconViewMode =false; this.UseFontImage =false; this.AutoPostBack ="Default"; this.Tag ="";  this.Selected =false; this.Checked =false; this.PredefinedId =""; this.IsPredefinedItem =false; this.CustomElement =null; this.QueueId =-1; this.CloseQueueId =-1;  if (vcf675) this.Name =vcf675;  if (vc9937) this.Text =vc9937;  if (v20d37) this.ImageURL =v20d37;  if (vb2170) this.OnClick =vb2170;  if (vcc234) this.Shortcut =vcc234;  this.OnPropertiesInitialized =function() { if (this.Parent.GetType()=="WebContextMenu") this.OwnerMenu =this.Parent.RootMenu; else if (this.Parent.GetType()=="WebNotification") this.OwnerMenu =this.Parent.ActionMenu; else if (this.Parent.GetType()=="WebMenuItem") this.OwnerMenu =this.Parent.SubMenu; else if (this.Parent.GetType()=="WebMenu") this.OwnerMenu =this.Parent;  this.Collection =this.OwnerMenu.Items; this.Index =this.Collection.length; };  this.OnAdd =function() { if (!this.OwnerMenu) this.OwnerMenu =this.Parent;  this.Collection =this.OwnerMenu.Items;  if (this.OwnerMenu.Element !=null) wd2fc9.mab978(this);  this.Collection.ReindexPosition(); };  this.OnInsert =function(v43050) { this.OwnerMenu =this.Parent; this.Collection =this.OwnerMenu.Items; if (this.OwnerMenu.Element !=null) wd2fc9.m0cc21(this,v43050);  this.Collection.ReindexPosition(); };  this.OnRemove =function() { if (this.OwnerMenu.Element !=null) wd2fc9.m94198(this);  this.Collection.ReindexPosition(); };  this.IsUsingImageIconViewMode =function() { if (this.OwnerMenu.IconViewMode) { if (this.Text ==null ||this.Text =="" ||(this.Text !="" &&this.IconViewDisplayMode =="Image")) return true; }  return false; };  this.ScrollIntoView =function() { var v95b68 =this.OwnerMenu.GetMenuBodyElement().parentElement; var v4c819 =this.GetElement(); var v95765 =v95b68.scrollTop; var vb7226 =v95b68.clientHeight; var v03394 =v4c819.offsetTop; var v60175 =v4c819.offsetHeight;  if (v03394 <v95765 ) v95b68.scrollTop =v03394; else if (v03394 +v60175 >v95765 +vb7226 ) v95b68.scrollTop =v03394 +v60175 -vb7226; };  this.GetElement =function() { if (!this.Element) { var v68615 =this.OwnerMenu.GetMenuBodyElement(); var vc3f4 =this.OwnerMenu;  if (v68615) { if (vc3f4.IconViewMode) { for (var vc4b31=0; vc4b31<v68615.rows.length; vc4b31++) { var v81533 =v68615.rows[vc4b31];  if (this.IsUsingImageIconViewMode()) { if (IS.GetAttr(v81533,"type")=="GroupItem") { var v48c42 =v81533.cells[1]; for(var vf8a58=0; vf8a58<v48c42.children.length; vf8a58++) { var ve532 =v48c42.children[vf8a58]; if (IS.GetAttr(ve532,"name")==this.Name) { this.Element =ve532; break; } } } } else { if (IS.GetAttr(v81533,"name")==this.Name) { this.Element =v81533; break; } } } } else { for (var vc4b31=0; vc4b31<v68615.rows.length; vc4b31++) { var v81533 =v68615.rows[vc4b31]; if (IS.GetAttr(v81533,"name")==this.Name) { this.Element =v81533; break; } } } } } return this.Element; };  this.HasSubMenu =function() { return (this.Items.length >0); };  this.Click =function() { wd2fc9.m71415(this); };  this.GetPreviousSelectableItem =function() { var v2f286 =this.Index-1;  if (v2f286 <0) v2f286 =this.Collection.length-1;  var vf4313 =this.Collection[v2f286];  if (vf4313) { if (vf4313.Visible &&vf4313.Type !="Separator" &&vf4313.Type !="Custom") return vf4313; else { if (this.Index ==0 &&this.Collection.length ==1) return null; else return vf4313.GetPreviousSelectableItem(); } }  return null; };  this.GetNextSelectableItem =function() { var v89168 =this.Index+1; if (v89168 >(this.Collection.length-1)) v89168 =0; var vf4313 =this.Collection[v89168];  if (vf4313) { if (vf4313.Visible &&vf4313.Type !="Separator" &&vf4313.Type !="Custom") return vf4313; else { if (this.Index ==0 &&this.Collection.length ==1) return null; else  return vf4313.GetNextSelectableItem(); } }  return null; };  this.SetChecked =function(v61a34,v44766) { var v4c819 =this.GetElement(); var v48c42; var ve532; var v5390;  if (typeof(v61a34)=="undefined")v61a34 =true; if (this.Type =="Radio" &&v61a34) { var v7ad73 =this.OwnerMenu.GetSelectedItemByGroup(this.GroupName);  if (v7ad73 &&v7ad73 ==this) return false;  if (v7ad73) v7ad73.SetChecked(false); } this.Checked =v61a34;  if (!v4c819)return;  if (v4c819.tagName =="TR") { v48c42 =v4c819.cells[0]; ve532 =v48c42.children[0];  if (IS.ie ||IS.moz) v5390 =ve532.children[0].children[0]; else v5390 =ve532.children[0]; } else if (v4c819.tagName =="SPAN"){ ve532 =v4c819;  if (IS.ie ||IS.moz) v5390 =ve532.children[0].children[0]; else v5390 =ve532.children[0]; }  var vc6193 =this.OwnerMenu.MenuControl.MenuStyleSettings; if (this.Checked) { if (this.UseFontImage) { v5390.innerHTML =wd2fc9.m5a452(vc6193,this.Type =="CheckBox" ? "a" :  this.Type =="Radio" ? "=" : ""); if (IsGecko30()&&v5390.tagName =="IMG") v5390.style.display =""; }  if (vc6193.HighlightMode =="UseWebStyle") { if (!v44766) DynamicStyleEngine.SetToOverStyle(null,vc6193.CheckedItemStyle,ve532); else DynamicStyleEngine.SetToStyle(null,vc6193.CheckedItemStyle,ve532); } else { with (ve532.style) { backgroundImage ="url(" +wd2fc9.m8e663(vc6193,"ActiveIconCell",true)+")"; backgroundRepeat ="no-repeat"; backgroundPosition ="top left"; marginTop ="-1px"; height ="22px";  if (IS.ie) { paddingTop ="3px"; paddingRight ="3px"; } } } } else { if (this.UseFontImage) { v5390.innerHTML =""; if (IsGecko30()&&v5390.tagName =="IMG") v5390.style.display ="none"; }  ve532.className =""; ve532.style.backgroundImage ="none"; } };  this.Enable =function() { if (this.Enabled) return;  var v50071 =this.GetElement(); var v49d11 =this.OwnerMenu.MenuControl.MenuStyleSettings.ItemStyle;  if (v50071) { if (this.OwnerMenu.IconViewMode) { } else { for (var vc4b31=0; vc4b31<v50071.cells.length; vc4b31++) { var v48c42 =v50071.cells[vc4b31]; v48c42.disabled =false; DynamicStyleEngine.SetToStyle(null,v49d11,v48c42); } }  if (this.ImageURL !="") { var v97540 =this.GetImageElement();  v97540.style.filter =""; v97540.style.backgroundColor =""; } }  this.Enabled =true; };  this.Disable =function() { if (!this.Enabled) return; var v50071 =this.GetElement(); var v25d16 =this.OwnerMenu.MenuControl; var v49d11 =this.OwnerMenu.MenuControl.MenuStyleSettings.DisabledItemStyle; if (v50071) { if (this.OwnerMenu.IconViewMode) { } else { for (var vc4b31=0; vc4b31<v50071.cells.length; vc4b31++) { var v48c42 =v50071.cells[vc4b31]; v48c42.disabled =true; DynamicStyleEngine.SetToStyle(null,v49d11,v48c42); } }  if (this.ImageURL !="") { var v97540 =this.GetImageElement();  v97540.style.filter =(this.OwnerMenu.MenuControl.SkipAlpha ? "" : "Alpha(Opacity=50),")+"Gray()"; if (v25d16.DrawImageBackground) v97540.style.backgroundColor =v25d16.MenuStyleSettings.BackgroundStripColor; } }  this.Enabled =false; };  this.Show =function() { if (this.Visible) return; var v50071 =this.GetElement(); if (v50071) v50071.style.display ="";  this.Visible =true; };  this.Hide =function() { if (!this.Visible) return; var v50071 =this.GetElement(); if (v50071) v50071.style.display ="none";  this.Visible =false; };  this.GetContentElement =function() { var v50071 =this.GetElement(); if (v50071.tagName =="TR") return v50071.cells[1];  return null; };  this.SetText =function(vc9937) { var v50071 =this.GetElement(); if (v50071) { if (v50071.tagName =="TR") { var v4b355 =v50071.cells[1]; v4b355.innerHTML =vc9937; } }  this.Text =vc9937; };  this.GetImageElement =function() { var v50071 =this.GetElement(); if (v50071) { if (v50071.tagName =="TR") { var v4b355 =v50071.cells[0]; return v4b355.children[0].children[0]; } else if (v50071.tagName =="SPAN") { return v50071.children[0]; } } };  this.SetImage =function(v89f6) { var v50071 =this.GetElement(); if (v50071) { if (v50071.tagName =="TR") { var v4b355 =v50071.cells[0]; v4b355.children[0].src =v89f6; } else if (v50071.tagName =="SPAN") { v50071.children[0].src =v89f6; } }  this.ImageURL =v89f6; };  this.Destroy =function() { var v50071 =this.GetElement(); if (v50071) Listener.Unload(v50071); };   this.Delete =function() { this.Collection.Remove(this); };  this.Unselect =function() { if (this.Type =="Separator") return;  wd2fc9.me2381(this); };  this.IsSelected =function() { return (this.OwnerMenu.ActiveItem ==this); };  this.Select =function(v35e89) { if (this.Type =="Separator") return;  if (this.IsSelected()) return; if (typeof(v35e89)=="undefined") v35e89 =true;  if (v35e89) { if (this.ActiveItem) wd2fc9.me2381(this.ActiveItem); }  wd2fc9.md4034(this); };  this.IsSubMenuOpen =function() { return this.SubMenu.IsOpen(); };  this.HideSubMenuQueue =function() { if (this.HasSubMenu()&&this.IsSubMenuOpen()) { var vc3f4 =this.SubMenu; this.CloseQueueId =setTimeout(function(){if (vc3f4.ParentMenuItem.InHideQueue())vc3f4.Hide();},this.OwnerMenu.MenuControl.ShowDelay); } };  this.ShowSubMenu =function(v87225) { if (this.HasSubMenu()) { var vc3f4 =this.SubMenu; vc3f4.MenuControl =this.OwnerMenu.MenuControl; vc3f4.ParentMenu =this.OwnerMenu; vc3f4.OffsetElement =this.GetElement(); vc3f4.Show();   if (v87225) { var v33647 =vc3f4.Items[0];   if (v33647 &&(v33647.Type =="Custom" ||v33647.Type =="Separator")) v33647 =v33647.GetNextSelectableItem();  if (v33647) v33647.Select();  } } };  this.ShowSubMenuQueue =function(v08161,v87225) { if (this.HasSubMenu()) { var vc3f4 =this.SubMenu; var ved354 =this.OwnerMenu.MenuControl.ShowDelay; vc3f4.MenuControl =this.OwnerMenu.MenuControl; vc3f4.ParentMenu =this.OwnerMenu; vc3f4.OffsetElement =this.GetElement();  if (v08161)ved354 =1;  this.QueueId =setTimeout(function() { vc3f4.Show();   if (v87225) { var v33647 =vc3f4.Items[0];   if (v33647 &&(v33647.Type =="Custom" ||v33647.Type =="Separator")) v33647 =v33647.GetNextSelectableItem();  if (v33647) v33647.Select();  } },ved354); } };  this.CancelShow =function() { if (this.QueueId >0) { clearTimeout(this.QueueId); this.QueueId =-1; } };  this.CancelHide =function() { if (this.CloseQueueId >0) { clearTimeout(this.CloseQueueId); this.CloseQueueId =-1; } };  this.InShowQueue =function() { return this.QueueId >0; };  this.InHideQueue =function() { return this.CloseQueueId >0; };  }function InitWebContextMenu(v79c0){ var ved480 =new WebContextMenu(v79c0);  var vf3294 =null; try {vf3294 =ISXml.GetNode(ved480.XmlDt,"//WebContextMenu"); }catch(e){} if (vf3294 ==null)vf3294 =ved480.XmlDt.documentElement;  if (vf3294!=null) { IS.SetPropertiesRecursive(ved480,vf3294); var ve7e27 =["ItemStyle","DisabledItemStyle","CheckedItemStyle"]; DynamicStyleEngine.AssignFromArray(ved480.MenuStyleSettings,ved480.MenuStyleSettings.XmlNode,ve7e27); }  ISEvent.Raise(ved480.ClientSideEvents.OnInitialize,v79c0);  window.attachEvent("onload",function(){OnContextMenuLoad(ved480);}); window.attachEvent("onunload",function(){OnContextMenuUnload(ved480);});}function OnContextMenuUnload(va5f36){ window.detachEvent("onload",function(){OnContextMenuLoad(va5f36);}); window.detachEvent("onunload",function(){OnContextMenuUnload(va5f36);});}function OnContextMenuLoad(v8f855){ if (v8f855.ControlId !="") { var v7f736 =null;  if (v8f855.ControlId =="Page") v7f736 =document.body; else v7f736 =ISGetObject(v8f855.ControlId);  if (!v7f736)v7f736 =document.getElementById(v8f855.ControlId);  if (!v7f736) { v7f736 =document.getElementsByName(v8f855.ControlId); if (v7f736 &&v7f736.length >0) v7f736 =v7f736[0]; } if (v7f736 &&v7f736.tagName) { if (v8f855.ControlId !="Page") v8f855.SetOffsetElement(v7f736); Listener.Add(v7f736,"oncontextmenu",function(){OnGenericControlContextMenu(v8f855); return false;}); } else if (v7f736 &&v7f736.ClassName &&v7f736.FrameObj) { var v6ba73 =v7f736.FrameObj; Listener.Add(v6ba73,"oncontextmenu",function(){OnISControlContextMenu(v8f855); return false;}); } }  if (v8f855.IntegratedTo =="None") v8f855.CreateDefaultStyles(); else if (v8f855.IntegratedTo =="DesktopManager") v8f855.SetIntegratedToDesktopManager(); else v8f855.SetIntegratedToPlaceHolderManager();}function OnISControlContextMenu(v5fa91){ event.cancelBubble =true; event.returnValue =false;  var v98b91 =(IS.ie)? event.screenX : event.clientX +window.screenLeft; var vb2f52 =(IS.ie)? event.screenY : event.clientY +window.screenTop; if (IS.ie &&v5fa91.MenuWindowType =="Normal") { v98b91 -=window.screenLeft; vb2f52 -=window.screenTop; } v5fa91.Show(v98b91,vb2f52);}function OnGenericControlContextMenu(v10f11){ event.cancelBubble =true; event.returnValue =false; var v85011 =(IS.ie)? event.screenX : event.clientX +window.screenLeft; var v90561 =(IS.ie)? event.screenY : event.clientY +window.screenTop;  if (IS.ie &&v10f11.MenuWindowType =="Normal") { v85011 -=window.screenLeft; v90561 -=window.screenTop; }  if (v10f11.ControlId =="Page") v10f11.Show(v85011,v90561); else v10f11.Show();}var wd2fc9 ={ mc0435:function(vf866) { return vf866.X +(IS.moz ||IS.opera ||IS.safari ? window.screenLeft : 0); }, m74086:function(v1dd42,v19258) { return ((IS.moz ||IS.opera ||IS.safari)? window.screenTop : 0)+v1dd42.Y +(IS.safari &&!v19258 ? document.body.scrollTop : 0); }, md2234:function(vbf042,v2b758) { return new OffsetLocation(wd2fc9.mc0435(vbf042,v2b758),wd2fc9.m74086(vbf042,v2b758)); },  m88b35:function(v20e42) { var v81942 =wd2fc9.m40832(v20e42); wd2fc9.m7ba0(v20e42,v81942); wd2fc9.mf7183(v20e42); v20e42.Initialized =true; },  mf7183:function(v98b98) { var v03b42 =v98b98.Element; var v4ab58 =v98b98.GetDocument(); var v2755 =window; if (v03b42) { if (!v98b98.MenuControl.UseCustomContent) { Listener.Add(v03b42,"onmouseover",wd2fc9.m8ef43,v98b98); Listener.Add(v03b42,"onmouseout",wd2fc9.m8ef43,v98b98); Listener.Add(v03b42,"onmousedown",wd2fc9.m8ef43,v98b98); Listener.Add(v03b42,"onmouseup",wd2fc9.m8ef43,v98b98); Listener.Add(v03b42,"onmousewheel",wd2fc9.md2f2,v98b98); }  Listener.Add(v03b42,"onselectstart",wd2fc9.me161,v98b98); Listener.Add(v2755,"onunload",wd2fc9.m01f24,v98b98); Listener.Add(v03b42,"oncontextmenu",wd2fc9.mfea71,v98b98); if (v98b98.MenuControl.MenuWindowType =="Popup") Listener.Append(0,v4ab58,"onkeydown",wd2fc9.m9bd39,v98b98); else Listener.Add(v03b42,"onkeydown",wd2fc9.m9bd39,v98b98); } },  mab088:function(ve811,v3ce87) { if (!IS.GetCssObject(null,v3ce87)) { var ve2e98 =ve811.GetCssObject(v3ce87);  var v82137 =IS.GetRuntimeStyleSheetExact(); if (ve2e98) { if (IS.ie) v82137.addRule(ve2e98.selectorText,ve2e98.style.cssText); else v82137.innerHTML +=ve2e98.selectorText +" { " +ve2e98.style.cssText +" }\n";  return true; } }  return false; },  DefaultFrameStyle : "border: #8A867A 1px solid; background-color: white", DefaultItemNormalStyle : "font-family: Tahoma; font-size: 8pt", DefaultItemOverStyle: "font-family: Tahoma; font-size: 8pt; border: #316AC5 1px solid; background-color: #C1D2EE;", DefaultCheckedNormalStyle : "border: #316AC5 1px solid; background-color: #E1E6E8", DefaultCheckedOverStyle : "border: #4B4B6F 1px solid; background-color: #316AC5", DefaultDisabledNormalStyle : "font-family: Tahoma; font-size: 8pt; color: Silver", DefaultDisabledOverStyle : "font-family: Tahoma; font-size: 8pt; border: Gray 1px solid; background-color:WhiteSmoke; color: Gray", DefaultSeparatorStyle : "border-top: #C4C3AC 1px solid", DefaultCustomStyle: "background-color: #dde7ee; border-bottom: #c5c5c5 solid 1px; color: #00156E; font-family: Segoe UI, Tahoma; font-size: 9pt; padding: 4px; font-weight: bold",  me5c40:function(v3d61) { var v0b91 =v3d61.MenuStyleSettings; IS.AddRuntimeCssStyle(v0b91.FrameStyle,wd2fc9.DefaultFrameStyle); IS.AddRuntimeCssStyle(v0b91.ItemStyle.Normal,wd2fc9.DefaultItemNormalStyle); IS.AddRuntimeCssStyle(v0b91.ItemStyle.Over,wd2fc9.DefaultItemOverStyle); IS.AddRuntimeCssStyle(v0b91.CheckedItemStyle.Normal,wd2fc9.DefaultCheckedNormalStyle); IS.AddRuntimeCssStyle(v0b91.CheckedItemStyle.Over,wd2fc9.DefaultCheckedOverStyle); IS.AddRuntimeCssStyle(v0b91.DisabledItemStyle.Normal,wd2fc9.DefaultDisabledNormalStyle); IS.AddRuntimeCssStyle(v0b91.DisabledItemStyle.Over,wd2fc9.DefaultDisabledOverStyle); IS.AddRuntimeCssStyle(v0b91.SeparatorStyle,wd2fc9.DefaultSeparatorStyle);  if (v0b91.CustomStyle !="") IS.AddRuntimeCssStyle(v0b91.CustomStyle,wd2fc9.DefaultCustomStyle); },  mb0457:function(v5ea56) { var v1b373 =ISGetDesktopManager(); if (!v1b373) { alert("Can't integrate to DesktopManager because no DesktopManager instance were found!"); v5ea56.CreateDefaultStyles(); return; }  if (!v1b373.MenuStyles.Application) { alert("Integration failed because ContextMenu is currently disabled in DesktopManager. Please set EnableContextMenu to true."); v5ea56.CreateDefaultStyles(); return; }  v5ea56.MenuStyleSettings.CopyFrom(v1b373.MenuStyles.Application); v5ea56.MenuStyleSettings.Parent =v5ea56; v5ea56.MenuStyleSettings.OnPropertiesInitialized();  wd2fc9.m14876(v1b373,v5ea56.MenuStyleSettings); },  m47619:function(vc2d92) { var v24556 =ISGetPlaceHolderManager(); if (v24556) { v24556.IntegrateMenuControl(vc2d92); wd2fc9.m14876(v24556,vc2d92.MenuStyleSettings); } },  m14876:function(ve1f92,vfd836) { if (!wd2fc9.mab088(ve1f92,vfd836.FrameStyle)) IS.AddRuntimeCssStyle(vfd836.FrameStyle,wd2fc9.DefaultFrameStyle); if (!wd2fc9.mab088(ve1f92,vfd836.ItemStyle.Normal)) IS.AddRuntimeCssStyle(vfd836.ItemStyle.Normal,wd2fc9.DefaultItemNormalStyle); if (!wd2fc9.mab088(ve1f92,vfd836.ItemStyle.Over)) IS.AddRuntimeCssStyle(vfd836.ItemStyle.Over,wd2fc9.DefaultItemOverStyle); if (!wd2fc9.mab088(ve1f92,vfd836.CheckedItemStyle.Normal)) IS.AddRuntimeCssStyle(vfd836.CheckedItemStyle.Normal,wd2fc9.DefaultCheckedNormalStyle); if (!wd2fc9.mab088(ve1f92,vfd836.CheckedItemStyle.Over)) IS.AddRuntimeCssStyle(vfd836.CheckedItemStyle.Over,wd2fc9.DefaultCheckedOverStyle); if (!wd2fc9.mab088(ve1f92,vfd836.DisabledItemStyle.Normal)) IS.AddRuntimeCssStyle(vfd836.DisabledItemStyle.Normal,wd2fc9.DefaultDisabledNormalStyle); if (!wd2fc9.mab088(ve1f92,vfd836.DisabledItemStyle.Over)) IS.AddRuntimeCssStyle(vfd836.DisabledItemStyle.Over,wd2fc9.DefaultDisabledOverStyle); if (!wd2fc9.mab088(ve1f92,vfd836.SeparatorStyle)) IS.AddRuntimeCssStyle(vfd836.SeparatorStyle,wd2fc9.DefaultSeparatorStyle); if (!wd2fc9.mab088(ve1f92,vfd836.CustomStyle)) IS.AddRuntimeCssStyle(vfd836.CustomStyle,wd2fc9.DefaultCustomStyle); },  me161:function() { var v30828 =this.GetDocumentEvent(); var vf905 =v30828.srcElement; var v61627 =vf905.tagName; var v8032 =true;  switch (v61627) { case "INPUT": case "SELECT": case "TEXTAREA": { v8032 =false; } } if (v8032) { v30828.cancelBubble =true; v30828.returnValue =false; } },  mfea71:function() { this.GetDocumentEvent().returnValue =false; },  m9bd39:function(v9dc33,v65162) { var v92f47 =this;  if (v9dc33 !=window &&typeof(v9dc33)=="object" &&v9dc33.GetType) v92f47 =v9dc33; var vd6b15 =v92f47.GetDocumentEvent(); if (v65162)vd6b15 =v65162;  var vc2894 =vd6b15.srcElement; var v20863 =wd2fc9.mc3329(vc2894); var v1a228 =vd6b15.keyCode; var vab420 =false;  if (v92f47.IconViewMode) { if (v1a228 ==ISKeyboardKey.LEFT) v1a228 =ISKeyboardKey.UP;  if (v1a228 ==ISKeyboardKey.RIGHT) v1a228 =ISKeyboardKey.DOWN; }  switch (v1a228) { case ISKeyboardKey.ESC: { if (v92f47.ActiveItem) v92f47.ActiveItem.OwnerMenu.Hide();  break; } case ISKeyboardKey.UP: { var v3d679 =v92f47.ActiveItem;  if (!v3d679 &&v92f47.Items.length >0) v3d679 =v92f47.Items[0];  if (v3d679) { var v73f61 =v3d679.GetPreviousSelectableItem(); if (v73f61) v73f61.Select();  if (v92f47.ScrollEnabled) { v73f61.ScrollIntoView(); wd2fc9.m3a672(v92f47); }  vab420 =true; } break; } case ISKeyboardKey.DOWN: { var v3d679 =v92f47.ActiveItem; if (!v3d679 &&v92f47.Items.length >0) v3d679 =v92f47.Items[v92f47.Items.length-1];  if (v3d679) { var vedf30 =v3d679.GetNextSelectableItem(); if (vedf30) vedf30.Select();  if (v92f47.ScrollEnabled) { vedf30.ScrollIntoView(); wd2fc9.m3a672(v92f47); } vab420 =true; } break; } case ISKeyboardKey.LEFT: { var v3d679 =v92f47.ActiveItem; if (v3d679) { if (v3d679.OwnerMenu.ParentMenu !=null) { v92f47.Hide(); vab420 =true; } else wd2fc9.mc3117(v1a228,v3d679); } break; } case ISKeyboardKey.RIGHT: { var v3d679 =v92f47.ActiveItem; if (v3d679) { if (v3d679.Enabled &&v3d679.Visible &&v3d679.HasSubMenu()) { v3d679.OwnerMenu.MenuControl.SkipAnimation =true; v3d679.ShowSubMenuQueue(true,true); } else wd2fc9.mc3117(v1a228,v3d679); }  vab420 =true; break; } case ISKeyboardKey.ENTER: { var v3d679 =v92f47.ActiveItem; if (v3d679) { if (v3d679.HasSubMenu()) { v3d679.ShowSubMenuQueue(true,true); } else { if (v3d679.Enabled) v3d679.Click(); } vab420 =true; } break; } default: { var v7f618 =String.fromCharCode(v1a228).toLowerCase(); var ve8353 =v92f47.Items; var v01836 =ve8353.length;  for (var v87151 =0; v87151 <v01836; v87151++) { if (ve8353[v87151].AccessKey ==v7f618 &&ve8353[v87151].Enabled &&ve8353[v87151].Type !="Separator" &&ve8353[v87151].Type !="Custom") { ve8353[v87151].Select(); ve8353[v87151].Click(); vab420 =true; break; } } } }  if (vab420) { vd6b15.cancelBubble =true; vd6b15.returnValue =false; } },  mc3117:function(v8cb8,vd5950) { if (vd5950.Parent!=null) { var v9b589 =vd5950.Parent.MenuControl; if (v9b589 &&v9b589.ClassName=="WebMenuBar") { var v5b941 =v9b589.OnMenuKeyDown; if (typeof(v5b941)=="string") ISEvent.Raise(v5b941,v8cb8,vd5950); else if (typeof(v5b941)=="function") v5b941(v8cb8,vd5950); } }  },  md2f2:function(vf4747) { var vc0f92 =this;  if (vc0f92.ScrollEnabled) { var v8a590 =vc0f92.GetMenuBodyElement().parentElement; var v9d917 =vc0f92.GetDocumentEvent(); if (vf4747) v9d917 =vf4747;  v8a590.scrollTop -=3 *v9d917.wheelDelta /120 *20; wd2fc9.m3a672(vc0f92);  v9d917.cancelBubble =true; v9d917.returnValue =false; } },  m8ef43:function(v28388,vc2995) { var vc0e83 =this;  if (v28388 !=window &&typeof(v28388)=="object" &&v28388.GetType) vc0e83 =v28388;  var vea839 =vc0e83.GetDocumentEvent(); if (vc2995)vea839 =vc2995;  var v6bd21 =vea839.srcElement; var v0ba64 =wd2fc9.mc3329(v6bd21); if (v0ba64 =="") { if (vc0e83.IconViewMode) { var vd9337 =wd2fc9.m1bc87(v6bd21); if (vd9337 ==null)v6bd21 =wd2fc9.m2a29(v6bd21); else v6bd21 =vd9337;  v0ba64 =wd2fc9.mc3329(v6bd21); } else { v6bd21 =wd2fc9.m2a29(v6bd21); v0ba64 =wd2fc9.mc3329(v6bd21); } }  if (v0ba64 =="") { if (v6bd21 !=null &&vc0e83.GetElement().contains(v6bd21)) { v6bd21.cancelBubble =true; vea839.cancelBubble =true; vea839.returnValue =false; } return; }  switch (vea839.type) { case "mouseover": if (v0ba64 =="MenuItem") { var ve1884 =wd2fc9.m5421(v6bd21); var v87275 =vc0e83.Items.GetNamedItem(ve1884); if ((!v87275.Enabled &&!vc0e83.MenuControl.MenuStyleSettings.HighlightDisabledItem)||v87275.Type =="Custom") { wd2fc9.maa413(vc0e83,v87275); return; }  v87275.Select(false);  if (v87275.HasSubMenu()&&!v87275.IsSubMenuOpen()&&!v87275.InShowQueue()&&v87275.Enabled) { if (vc0e83.MenuControl.MenuWindowType =="Normal") { wd2fc9.maa413(vc0e83,v87275); } v87275.OwnerMenu.MenuControl.SkipAnimation =false; v87275.ShowSubMenuQueue(); } else if (v87275.HasSubMenu()&&v87275.IsSubMenuOpen()) { if (v87275.InHideQueue()) { v87275.CancelHide(); } } else { wd2fc9.maa413(vc0e83,v87275); }  if (vc0e83.ParentMenuItem !=null) { if (vc0e83.ParentMenuItem.InHideQueue()) vc0e83.ParentMenuItem.CancelHide(); } } else if (v0ba64 =="ScrollUp") { vc0e83.ScrollInterval =setInterval(function(){wd2fc9.m0f987(vc0e83,"up");},100); } else if (v0ba64 =="ScrollDown") { vc0e83.ScrollInterval =setInterval(function(){wd2fc9.m0f987(vc0e83,"down");},100); } break; case "mouseout": if (v0ba64 =="MenuItem") { var ve1884 =wd2fc9.m5421(v6bd21); var v87275 =vc0e83.Items.GetNamedItem(ve1884); var va8625 =vea839.toElement; var v74754 =vc0e83.GetElement();  if ((!v87275.Enabled &&!vc0e83.MenuControl.MenuStyleSettings.HighlightDisabledItem)||v87275.Type =="Custom") return; if (vc0e83.ActiveItem !=null &&vc0e83.ActiveItem !=v87275 &&va8625 !=null) vc0e83.ActiveItem.Unselect();  if (vc0e83.ActiveItem !=null &&vc0e83.ActiveItem.GetElement().contains(va8625)) return;  if (v74754.contains(va8625)) v87275.Unselect();  if (v87275.HasSubMenu()&&v87275.InShowQueue()) v87275.CancelShow(); } else if (v0ba64 =="ScrollUp") { if (vc0e83.ScrollInterval >0) clearInterval(vc0e83.ScrollInterval); } else if (v0ba64 =="ScrollDown") { if (vc0e83.ScrollInterval >0) clearInterval(vc0e83.ScrollInterval); } break;  case "mousedown": if (!IS.ie ||vc0e83.MenuControl.MenuWindowType =="Normal") { vea839.srcElement.cancelBubble =true; vea839.cancelBubble =true; vea839.returnValue =false; } vc0e83.IsMouseDown =true; break; case "mouseup":  if (!vc0e83.IsMouseDown) return;  vc0e83.IsMouseDown =false;  if (v0ba64 =="MenuItem") { var ve1884 =wd2fc9.m5421(v6bd21); var v87275 =vc0e83.Items.GetNamedItem(ve1884); var va8625 =vea839.toElement; var v74754 =vc0e83.GetElement(); var v63a20 =vc0e83.MenuControl;  if (!v87275.Enabled) return;  if (v63a20.MenuAnimation &&v63a20.AnimatedObj !=null &&v63a20.AnimatedObj.IntervalId >0) return; if (IS.moz) { vea839.cancelBubble =true; vea839.returnValue =false; }  if (v87275.HasSubMenu()&&!v87275.IsSubMenuOpen()&&v87275.Enabled) { if (v87275.InShowQueue()) v87275.CancelShow();  if (!v87275.IsSubMenuOpen()) v87275.ShowSubMenuQueue(true);  if (vc0e83.MenuControl.MenuWindowType =="Normal") wd2fc9.maa413(vc0e83,v87275,true); } else if (!v87275.HasSubMenu()) { if (v87275.Type !="Custom" &&v87275.Type !="Separator") { v87275.Click(); } } } break; } },  maa413:function(v30b44,va5974,v00496) { var v75f8 =v30b44.GetOpenSubMenu(); if (v75f8 &&v75f8 !=va5974) { if (v00496) v75f8.SubMenu.Hide(); else v75f8.HideSubMenuQueue(); } },  mc3329:function(ve8499) { if (!ve8499)return "";  if (ve8499.tagName =="TD") { var v34463 =ve8499.parentElement; if (IS.GetAttr(v34463,"type")=="MenuItem") return "MenuItem"; } else if (ve8499.tagName =="DIV" ||((ve8499.tagName =="FONT" ||ve8499.tagName =="IMG")&&ve8499.parentElement.tagName =="DIV")) { if (ve8499.tagName =="FONT" ||ve8499.tagName =="IMG") ve8499 =ve8499.parentElement;  if (ve8499.id.indexOf("scroll_up")>-1) return "ScrollUp"; else if (ve8499.id.indexOf("scroll_down")>-1) return "ScrollDown"; } else if (ve8499.tagName =="SPAN") { if (IS.GetAttr(ve8499,"name")!="") return "MenuItem"; else { var v34463 =ve8499.parentElement; if (v34463 &&v34463.tagName =="SPAN" &&IS.GetAttr(v34463,"name")!="") return "MenuItem"; } } else if (ve8499.tagName =="IMG") { var v34463 =ve8499.parentElement; if (v34463 &&v34463.tagName =="SPAN" &&IS.GetAttr(v34463,"name")!="") return "MenuItem"; }  return ""; },  m5421:function(v60c83) { if (v60c83.tagName =="TD") return IS.GetAttr(v60c83.parentElement,"name"); else if (v60c83.tagName =="TR") return IS.GetAttr(v60c83,"name"); else if (v60c83.tagName =="SPAN") { if (IS.GetAttr(v60c83,"type")=="MenuItem") return IS.GetAttr(v60c83,"name"); else return IS.GetAttr(v60c83.parentElement,"name"); } else if (v60c83.tagName =="IMG" &&v60c83.parentElement.tagName =="SPAN" &&IS.GetAttr(v60c83.parentElement,"name")!="") return IS.GetAttr(v60c83.parentElement,"name"); },  m2a29:function(vd4783) { if (!vd4783)return;  while (vd4783 &&vd4783.tagName !="TD") { vd4783 =vd4783.parentElement; }  if (vd4783 &&vd4783.tagName =="TD") return vd4783; else return null; },  m1bc87:function(v9e383) { if (!v9e383)return;  while (v9e383 &&v9e383.tagName !="SPAN") { v9e383 =v9e383.parentElement; }  if (v9e383 &&v9e383.tagName =="SPAN") return v9e383; else return null; },  me2381:function(vd6594) {  var v17c83 =vd6594.GetElement(); var v6ed93 =vd6594.OwnerMenu; var v87529 =v6ed93.MenuControl; var vc4a24 =v87529.MenuStyleSettings; var v45323 =vc4a24.ItemStyle;  if (!vd6594.Enabled) v45323 =vc4a24.DisabledItemStyle; if (v6ed93.IconViewMode &&v17c83.tagName =="SPAN") { wd2fc9.meb570(vd6594); return; }  for (var vf7750=0; vf7750<v17c83.cells.length; vf7750++) { var v2b254 =v17c83.cells[vf7750];  if (vc4a24.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToStyle(null,v45323,v2b254); else v2b254.style.backgroundImage ="none";  if (vf7750 ==0) { v2b254.style.padding ="1px"; if ((vd6594.Type =="Radio" ||vd6594.Type =="CheckBox")&&vd6594.Checked) { if (vc4a24.HighlightMode =="UseWebStyle") { var v79869 =v2b254.children[0]; DynamicStyleEngine.SetToStyle(null,vc4a24.CheckedItemStyle,v79869); } } } else if (vf7750 ==3) { v2b254.style.padding =vc4a24.ItemPadding; } else { v2b254.style.paddingTop =v2b254.style.paddingBottom =vc4a24.ItemPadding; } }  vd6594.Selected =false; vd6594.OwnerMenu.ActiveItemIndex =-1; vd6594.OwnerMenu.ActiveItem =null; },  meb570:function(ve4868) { var vd1913 =ve4868.GetElement(); var v5a161 =ve4868.OwnerMenu.MenuControl; var v39067 =ve4868.OwnerMenu; var vda592 =v5a161.MenuStyleSettings; var v3db67 =vda592.ItemStyle;  if (ve4868.Type =="Normal") {  } else if (ve4868.Type =="Radio" ||ve4868.Type =="CheckBox") { if (ve4868.Checked) v3db67 =vda592.CheckedItemStyle; }  DynamicStyleEngine.SetToStyle(null,v3db67,vd1913); ve4868.Selected =false; v39067.ActiveItemIndex =-1; v39067.ActiveItem =null; },  m7a277:function(vaef43) { var v9a34 =vaef43.GetElement(); var vd7710 =vaef43.OwnerMenu.MenuControl; var v09070 =vaef43.OwnerMenu; var ve3d36 =vd7710.MenuStyleSettings; var v5fa11 =ve3d36.ItemStyle;  if (vaef43.Type =="Normal") {  } else if (vaef43.Type =="Radio" ||vaef43.Type =="CheckBox") { if (vaef43.Checked) v5fa11 =ve3d36.CheckedItemStyle; }  DynamicStyleEngine.SetToOverStyle(null,v5fa11,v9a34); v09070.ActiveItemIndex =vaef43.Index; v09070.ActiveItem =vaef43; vaef43.Selected =true;  if (v09070.ParentMenuItem !=null &&!v09070.ParentMenuItem.IsSelected()) { v09070.ParentMenuItem.Select(false); } },  md4034:function(ve9e29) { var v5e979 =ve9e29.GetElement(); var v00698 =ve9e29.OwnerMenu.MenuControl; var v39423 =ve9e29.OwnerMenu; var vaf91 =v00698.MenuStyleSettings; var vf6a33 =vaf91.ItemStyle;  if (v39423.ActiveItemIndex >-1) v39423.ActiveItem.Unselect();  if (v39423.IconViewMode &&v5e979.tagName =="SPAN") { wd2fc9.m7a277(ve9e29); return; }  if (!ve9e29.Enabled) vf6a33 =vaf91.DisabledItemStyle;  for (var v67795=0; v67795<v5e979.cells.length; v67795++) { var v8a173 =v5e979.cells[v67795];  if (vaf91.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToOverStyle(null,vf6a33,v8a173); else { var v70014 =new Array("OverLeft","OverCenter","OverCenter","OverRight"); v8a173.style.backgroundImage ="url(" +wd2fc9.m8e663(vaf91,v70014[v67795],true)+")"; v8a173.style.backgroundRepeat ="repeat-x";  if (v67795 ==3) v8a173.style.backgroundPosition ="top right"; }  var v27019 =parseFloat(v8a173.currentStyle.borderWidth);  if (!IS.ie) v27019 =parseFloat(v8a173.currentStyle.borderTopWidth);  if (isNaN(v27019)) v27019 =0; if (v27019 >0) { var v10739 =vaf91.ItemPadding -v27019;  if (v67795 ==0) { var v74037 =1-v27019;  with (v8a173.style) paddingLeft =paddingTop =paddingBottom =(v74037 +"px");  if ((ve9e29.Type =="Radio" ||ve9e29.Type =="CheckBox")&&ve9e29.Checked) { var vf4f76 =v8a173.children[0];  if (vaf91.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToOverStyle(null,vaf91.CheckedItemStyle,vf4f76); } } else if (v67795 ==3) { with (v8a173.style) paddingRight =paddingTop =paddingBottom =(v10739 +"px"); } else { with (v8a173.style) paddingTop =paddingBottom =(v10739 +"px"); } } }  v39423.ActiveItemIndex =ve9e29.Index; v39423.ActiveItem =ve9e29; ve9e29.Selected =true;  if (v39423.ParentMenuItem !=null &&!v39423.ParentMenuItem.IsSelected()) { v39423.ParentMenuItem.Select(false); }  },  mfbb15:function(v29220) { if (v29220 !=null &&v29220.MenuControl.MenuWindowType =="Normal" &&v29220.Popup) { if (v29220.ScrollEnabled) { var vf0a1 =v29220.GetMenuBodyElement().parentElement; var v4e715 =v29220.GetScrollElement("up"); var v78664 =v29220.GetScrollElement("down");  v4e715.style.display ="none"; v78664.style.display ="none"; vf0a1.style.height ="auto"; }  v29220.Popup._e.style.width ="auto"; v29220.Popup._e.style.height ="auto"; v29220.RuntimeWidth =v29220.Popup._e.scrollWidth; v29220.RuntimeHeight =v29220.Popup._e.scrollHeight; } },  m7ba0:function(v8016,vce771) { var v4de40 =v8016.MenuControl;  if (v8016.Popup ==null) { if (!IS.ie ||v4de40.MenuWindowType =="Popup") { if (v8016.ParentMenu ==null) v8016.Popup =window.createPopup(); else v8016.Popup =v8016.ParentMenu.GetDocument().parentWindow.createPopup();  } else { var ve6434 =new WindowInfo(); ve6434.DisplayPosition ="Bottom"; ve6434.DisplayType ="Normal"; ve6434.OffsetControlID =v4de40.Id; var v76197 =new WindowPopup(ve6434); ve6434.Popup =v76197; v76197.Init(); v8016.Popup =v76197; v76197.document.parentWindow =window; vc7e20 =v76197.document; } }  if (IS.ie &&v4de40.MenuWindowType =="Popup") { var vb5137 =IS.GetTempIFrame(); var vc7e20 =vb5137.contentWindow.document; vc7e20.open("text/html","replace"); vc7e20.write(vce771); vc7e20.close();  v8016.RuntimeWidth =vc7e20.body.scrollWidth; v8016.RuntimeHeight =vc7e20.body.scrollHeight; }  var v28543 =v8016.GetDocument(); v28543.open("text/html","replace");  v28543.write(vce771); v28543.close();  if (IS.ie &&v4de40.MenuWindowType =="Popup") v8016.Element =v28543.body.firstChild;  else { v8016.Element =v28543._e.firstChild; v8016.RuntimeHeight =v8016.Popup._e.scrollHeight; v8016.RuntimeWidth =v8016.Popup._e.scrollWidth; }   for (var v9c274=0; v9c274<v8016.Items.length; v9c274++) { var v76456 =v8016.Items[v9c274];  if (v76456.Type =="Template") { var vc5012 =document.getElementById("mi_View" +v76456.Name);  if (vc5012) { var ve5c58 =v76456.GetContentElement(); ve5c58.innerHTML =""; ve5c58.appendChild(vc5012); vc5012.style.display =""; } } }  if (v4de40.UseCustomContent &&v4de40.CustomContentElement !=null) { var v72855 =v8016.GetMenuContainerElement(); v72855.appendChild(v4de40.CustomContentElement); } },  OnMenuClosed: function(v20061) { var v98626 =v20061.Owner; var v6b881 =v98626.ActiveItem;  if (v6b881 !=null &&IS.moz &&v6b881.KeepMenuVisible) return false;  return true; },  m2fb78:function() { if (window.screenLeft >window.screen.width) return true;  return false; },  m8fa43:function(vc5550,v12347,v28d76,vf4f3) { var v7c845 =""; var v4a890 =true; var v62587 =vc5550.MenuControl; var v4cb70 =0; var vd4585 =0; if (vc5550) v7c845 =vc5550.OffsetAlignment;  if (vc5550.IsOpen()&&!vf4f3) return;  if (IS.ie &&vc5550 &&vc5550.OffsetElement) { var v43e83 =ISPosLib.getScreenLeft(vc5550.OffsetElement)+ISPosLib.getWidth(vc5550.OffsetElement);  if (!wd2fc9.m2fb78()&&v43e83 >window.screen.availWidth -10 &&v7c845.indexOf("Right")>-1) v7c845 =v7c845.replace(/Right/ig,"Left"); }  if (vc5550.OffsetElement) { if (!IS.ie ||v62587.MenuWindowType =="Popup") { v4cb70 =ISPosLib.getScreenLeft(vc5550.OffsetElement); vd4585 =ISPosLib.getScreenTop(vc5550.OffsetElement); } else { v4cb70 =ISPosLib.getLeft(vc5550.OffsetElement); vd4585 =ISPosLib.getTop(vc5550.OffsetElement); } }  if (v62587.MenuWindowType =="Normal") wd2fc9.mfbb15(vc5550);  if (!v12347) { if (vc5550.OffsetElement) { if (vc5550.Direction =="Horizontal") { if (v7c845.indexOf("Right")>-1) v12347 =v4cb70 +ISPosLib.getWidth(vc5550.OffsetElement); else if (v7c845.indexOf("Left")>-1) v12347 =v4cb70 -vc5550.RuntimeWidth; } else { if (v7c845.indexOf("Left")>-1) v12347 =v4cb70; else if (v7c845.indexOf("Right")>-1) v12347 =v4cb70 +ISPosLib.getWidth(vc5550.OffsetElement); } }  if (v62587.IsRightToLeft &&IS.ie) v12347 =ISPosLib.getCalcRtlLeft(vc5550.OffsetElement,v12347); }  if (!v28d76) { if (vc5550.OffsetElement) { if (vc5550.Direction =="Horizontal") { if (v7c845.indexOf("Top")>-1) v28d76 =vd4585; else v28d76 =vd4585 +ISPosLib.getHeight(vc5550.OffsetElement); } else { if (v7c845.indexOf("Bottom")>-1) v28d76 =vd4585 +ISPosLib.getHeight(vc5550.OffsetElement); else { v28d76 =vd4585 -vc5550.RuntimeHeight; if (v28d76 <0)v28d76 =0; } } } }  if (vc5550.ActiveItem !=null) vc5550.ActiveItem.Unselect();  if (vc5550.ParentMenuItem !=null) { if (vc5550.ParentMenuItem.QueueId >0) vc5550.ParentMenuItem.QueueId =-1; }  if (vc5550._NeedSizeRecalc) { wd2fc9.me7a31(vc5550); vc5550._NeedSizeRecalc =false; }  if (!IS.ie ||v62587.MenuWindowType =="Normal") { if (!IS.ie) { if (vc5550.ParentMenu !=null) { var v64869 =vc5550.ParentMenu.GetOpenSubMenu(); if (v64869) { v64869.SubMenu.Hide(); } } }  if ((!IS.ie ||!vc5550.OffsetElement)&&!v62587.UseW3CPositioning) { if (IS.IsXHTMLDocType()) { if (!IS.moz &&!IS.opera) { v12347 +=ISPosLib.getScrollLeft(document); v28d76 +=ISPosLib.getScrollTop(document); } } else { v12347 +=document.body.scrollLeft; v28d76 +=document.body.scrollTop; } } var v01f40 =wd2fc9.m34488(new OffsetLocation(v12347,v28d76), vc5550.Popup._e.firstChild,vc5550.ParentMenu,IS.ie &&v62587.MenuWindowType =="Normal",v62587); v12347 =v01f40.X; if (!v62587.DisableFullHeightScrolling) v28d76 =v01f40.Y; } var v56e24 =wd2fc9.m5c483(vc5550,v12347,v28d76); if (v56e24) { v12347 =v56e24.X; v28d76 =v56e24.Y; vc5550.RuntimeHeight =v56e24.Height; }  if (IS.ie &&IS.GetIEVersion()<7) { var v8ea43 =vc5550.GetStripElement(); if (v8ea43 &&vc5550.RuntimeHeight >4) v8ea43.style.height =vc5550.RuntimeHeight -4; } if (vc5550.IsRootMenu()) { if (vc5550._CloseIntervalId ==-1)vc5550._CloseIntervalId =setInterval(function(){wd2fc9.md9029(vc5550);},100); }  if (v62587 &&v62587.GetType()=="WebContextMenu") v4a890 =ISEvent.Raise(v62587.ClientSideEvents.OnShowMenu,v62587.Id,vc5550,v12347,v28d76,vc5550.RuntimeWidth,vc5550.RuntimeHeight);  if (v4a890) { if (typeof(v4a890)=="object") { v12347 =v4a890.X; v28d76 =v4a890.Y; }  var veb111 =vc5550.IsOpen(); vc5550.Popup.show(v12347,v28d76,vc5550.RuntimeWidth,vc5550.RuntimeHeight);  if (IS.ie &&v62587.MenuWindowType =="Normal") vc5550.SetActive();  if (v62587.MenuAnimation &&!v62587.SkipAnimation &&!veb111) { if (v62587.AnimatedObj ==null) { var vd2843 =new ISAnimatedObject(); vd2843.OnCompleted =wd2fc9.m2b924; vd2843.Speed =v62587.AnimationSpeed; vd2843.Type =(v62587.MenuAnimationMode =="Fading" ? "FadeIn" : "MenuSlideDown"); vd2843.StepInterval =v62587.AnimationInterval;  v62587.AnimatedObj =vd2843; }  var v62d44 =vc5550.Element; wd2fc9.me3e72(vc5550);  if (v62587.MenuAnimationMode =="Sliding") { if (!vc5550.IsRootMenu()) v62587.AnimatedObj.Type ="MenuSlideRight"; else v62587.AnimatedObj.Type ="MenuSlideDown";  v62d44 =v62d44.parentElement; v62d44.removeAttribute("OriginalLeft"); v62d44.removeAttribute("OriginalWidth"); v62d44.removeAttribute("OriginalTop"); v62d44.removeAttribute("OriginalHeight");  if (!IS.ie) { v62d44.OriginalTop =0; v62d44.OriginalWidth =0; v62d44.OriginalLeft =0; v62d44.OriginalHeight =0; } }  v62587.AnimatedObj.Owner =vc5550; v62587.AnimatedObj.Element =v62d44; v62587.AnimatedObj.Play(); } else { if (v62587.MenuDropShadow) vc5550.Element.style.filter ="progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)"; } } },  m2b924:function() { var v49461 =this.Owner;  wd2fc9.me3e72(v49461);  if (v49461.MenuControl.MenuDropShadow) v49461.Element.style.filter ="progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)";  this.IntervalId =-1; },  me3e72:function(vbbf97) { vbbf97.Element.style.filter =""; },  md9029:function(vdc297) { if (!vdc297.IsOpen()) { clearInterval(vdc297._CloseIntervalId); vdc297._CloseIntervalId =-1;  var v60c97 =vdc297.MenuControl; if (v60c97.OnRootMenuClosed !=null) { if (typeof(v60c97.OnRootMenuClosed)=="string") ISEvent.Raise(v60c97.OnRootMenuClosed,vdc297); else if (typeof(v60c97.OnRootMenuClosed)=="function") v60c97.OnRootMenuClosed(vdc297); } } },  m5c483:function(v7c911,v86982,v9d951) { var vf9217 =window.screen.availHeight; var v3e184 =v7c911.RuntimeHeight; var v8ce32 =0; var v68913 =v7c911.MenuControl;  if (!IS.ie ||v68913.MenuWindowType =="Normal") { if (IS.IsXHTMLDocType()) vf9217 =document.documentElement.clientHeight -4; else vf9217 =document.body.clientHeight;  }  if (v68913.DisableFullHeightScrolling) v3e184 +=(v9d951 -(!IS.ie ? window.screenTop : 0));  if (v3e184 >vf9217 &&!v68913.UseCustomContent) { var v77b16 =v7c911.GetMenuBodyElement().parentElement; var vbb945 =v7c911.GetScrollElement("up"); var v79283 =v7c911.GetScrollElement("down");  vbb945.style.display =""; v79283.style.display =""; if (IS.safari) vf9217 -=8;  var v2c498 =vf9217 -vbb945.style.posHeight -v79283.style.posHeight -8; if (v68913.DisableFullHeightScrolling) v2c498 -=(v9d951 -(!IS.ie ? window.screenTop : 0));  if (v2c498 <0) v2c498 =5; v77b16.style.height =v2c498 +"px"; v8ce32 =vf9217 -4;  if (v68913.DisableFullHeightScrolling) { v3e184 =v9d951; v8ce32 -=(v9d951 -(!IS.ie ? window.screenTop : 0)-(IS.safari ? 8 : 0)); } else v3e184 =2;  v7c911.ScrollEnabled =true;  if (v68913.MenuWindowType =="Normal") v3e184 +=document.body.scrollTop;  return new Rectangle(v86982,v3e184,null,v8ce32); } else { if (v7c911.ScrollEnabled &&v68913.MenuWindowType =="Normal") { var v77b16 =v7c911.GetMenuBodyElement().parentElement; var vbb945 =v7c911.GetScrollElement("up"); var v79283 =v7c911.GetScrollElement("down");  vbb945.style.display ="none"; v79283.style.display ="none"; v77b16.style.height ="auto"; v8ce32 =v77b16.offsetHeight;  if (IS.IsXHTMLDocType()) v8ce32 =v7c911.Popup._e.offsetHeight +8;  v7c911.ScrollEnabled =false;  return new Rectangle(v86982,v9d951,null,v8ce32); } } },  m34488:function(v8a641,vf8950,v9b288,vba17,v12b81) { var v6c766 =v8a641.Y; var v62161 =v8a641.X; if (!IS.ie ||vba17) { if (!vba17) { v6c766 -=window.screenTop; v62161 -=window.screenLeft; } var v1b136 =document.body.clientHeight +ISPosLib.getScrollTop(document); var va8242 =document.body.clientWidth;  if (IS.IsXHTMLDocType()) { v1b136 =document.documentElement.clientHeight +ISPosLib.getScrollTop(document); va8242 =document.documentElement.clientWidth; }  if (v6c766 +ISPosLib.getHeight(vf8950)>v1b136) { v6c766 =((v1b136)-ISPosLib.getHeight(vf8950));  if (vba17) v6c766 -=4; } if (v62161 +(ISPosLib.getWidth(vf8950))>va8242) { if (!v9b288) v62161 =va8242-ISPosLib.getWidth(vf8950); else v62161 =ISPosLib.getLeft(v9b288.Popup._e.firstChild)-ISPosLib.getWidth(vf8950);  if (vba17) v62161 -=4; } if (!vba17) { v6c766 +=window.screenTop; v62161 +=window.screenLeft; } else { if (v6c766 <0) v6c766 =2; } }  return new OffsetLocation(v62161,v6c766); },  m69e17:function(v70713) { var vc2241 ="<html><head>" + "<style type=\"text/css\">" +v70713.MenuControl.GetStyleString()+"</style>" + "</head><body style='margin:0px;padding:0px;overflow:hidden;border:0px'>";  if (IS.ie &&v70713.MenuControl.MenuWindowType =="Popup") return vc2241; else return ""; },  m65b79:function(vb6c16) { var vfcc13 ="</body></html>";  if (IS.ie &&vb6c16.MenuControl.MenuWindowType =="Popup") return vfcc13; else return ""; },  m7ed42:function(v98843,ve0857) { if ((v98843.GetType()=="WebContextMenu" &&v98843.IntegratedToBar)&&!ve0857) { var v9d116;  if (v98843.GetType()=="WebContextMenu") v9d116 =v98843._MenuCommand !=null ? v98843._MenuCommand._Bar :  (v98843._ToolCommand !=null? v98843._ToolCommand._Bar : null);  if (v9d116 !=null) return v9d116.GetCachedMenuStyleString(v98843); else if (v98843 !=null) return v98843.GetCachedMenuStyleString(v98843); } var v2f139 =v98843.MenuStyleSettings; var v6c740 =new Array("ItemStyle","FrameStyle","DisabledItemStyle","SeparatorStyle","CheckedItemStyle","CustomStyle"); var v5f272 ="";  for (var vb283=0; vb283<v6c740.length; vb283++) { var v21e11 =v6c740[vb283]; if (typeof(v2f139[v21e11])=="string") { if (v2f139[v21e11] !="") { v5f272 +=wd2fc9.m1db62(v2f139[v21e11]); } } else if(typeof(v2f139[v21e11])=="object") { var ve8762 =v2f139[v21e11]; if (ve8762.Normal !="") v5f272 +=wd2fc9.m1db62(ve8762.Normal);  if (ve8762.Over !="") v5f272 +=wd2fc9.m1db62(ve8762.Over);  if (ve8762.Active !="") v5f272 +=wd2fc9.m1db62(ve8762.Active); } }  return v5f272; },  m1db62:function(v4e827) { return IS.GetStyleText(null,v4e827); },  m8e663:function(v69682,ve9a76,vca996) { var ve8047 =v69682;  if (vca996) ve8047 =v69682.ImagesSettings;  if (v69682.UseSmartWebResources) return "ISRes.axd?D/" +ve8047[ve9a76]; else return ve8047[ve9a76]; },  m5a452:function(va712,v05385,ve9363) { if (IS.ie ||(IS.moz &&!IsGecko30())) { if (ve9363) return v05385; else return "<font face='Webdings' style='font-size: 8pt'>" +v05385 +"</font>"; } else { var vede2 ="";  if (v05385 =="6") vede2 ="arrow_down.gif"; else if (v05385 =="=") vede2 ="radio.gif"; else if (v05385 =="a") vede2 ="checkbox.gif"; else if (v05385 =="4") vede2 ="arrow_right.gif"; else if (v05385 =="5") vede2 ="arrow_up.gif";  if (va712.UseSmartWebResources) vede2 ="ISRes.axd?D/" +vede2; else vede2 =va712.Parent.ImagesDirectory +vede2;  return "<img valign='absmiddle' height='16' src='" +vede2 +" ' />"; } },  m40832:function(vea032) { var v56974 =vea032.MenuControl; var v04c24 =v56974.MenuStyleSettings;  var v0c80 ="<table class='" +v04c24.FrameStyle +"' border='0' cellpadding='1' cellspacing='0' style='position: relative;'>";  v0c80 +="<tr>"; v0c80 +="<td valign='top'>"; v0c80 +="<div id='" +vea032.GetId()+"_container' style='position: relative;";  if (vea032.IconViewMode) v0c80 +="width:" +vea032.Width +";";  v0c80 +="'>";  if (v56974.GetType()=="WebContextMenu" &&v56974.UseCustomContent) { v0c80 +="</div></td></tr></table>"; return v0c80; }  if (v04c24.HasBackgroundStrip &&!vea032.IconViewMode) { v0c80 +="<div id='" +vea032.GetId()+"_strip' style='position: absolute; left: 0px; top: 0px;"; v0c80 +="width: " +v04c24.BackgroundStripWidth +"px"; if (IS.ie) { if (IS.IsXHTMLDocType()) { v0c80 +="; height: 100%"; } else { if (IS.GetIEVersion()<7) v0c80 +=";height:auto"; else v0c80 +=";height:expression(this.parentElement.offsetHeight)"; } } else v0c80 +=";height:100%"; if (v04c24.BackgroundStripColor2 =="" ||v04c24.BackgroundStripColor2 =="000000") { v0c80 +=";background-color:#" +v04c24.BackgroundStripColor; } else { if (IS.ie) v0c80 +=";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF" +v04c24.BackgroundStripColor +", endColorstr=#FF" +v04c24.BackgroundStripColor2 +", GradientType=1)"; else v0c80 +=";background-color:#" +v04c24.BackgroundStripColor2; }  if (v04c24.BackgroundStripImage !="") v0c80 +=";background-image: url(" +wd2fc9.m8e663(v04c24,"BackgroundStripImage")+"); background-repeat: repeat-y"; v0c80 +="'>"; v0c80 +="</div>"; }  v0c80 +="<div id='" +vea032.GetId()+"_scroll_up' align='center' disabled style='height:18px;position:relative;display:none;cursor:default'>"; v0c80 +=wd2fc9.m5a452(v04c24,"5"); v0c80 +="</div>"; v0c80 +="<div style='position: relative; overflow: hidden;'>"; v0c80 +="<table id='" +vea032.GetId()+"_body' border='0' cellpadding='0' cellspacing='0' style='cursor:default; width:100%'>"; if (vea032.IconViewMode) { var v33526 =vea032.GetGroupItems(); for (var v3ba13=0; v3ba13<v33526.length; v3ba13++) { var vffa38 =v33526[v3ba13]; if (vffa38.constructor ==Array) v0c80 +=wd2fc9.m8b425(vffa38); else v0c80 +=wd2fc9.m19245(vffa38); } } else { for (var v3ba13=0; v3ba13<vea032.Items.length; v3ba13++) { v0c80 +=wd2fc9.m19245(vea032.Items[v3ba13]); } }  v0c80 +="</table>"; v0c80 +="</div>";  v0c80 +="<div id='" +vea032.GetId()+"_scroll_down' align=center style='height:18px;position:relative;display:none;cursor:default'>"; v0c80 +=wd2fc9.m5a452(v04c24,"6"); v0c80 +="</div>"; v0c80 +="</div>"; v0c80 +="</td></tr></table>"; return wd2fc9.m69e17(vea032)+v0c80 +wd2fc9.m65b79(vea032); },  m8b425:function(ve494) { var v5964 =ve494[0].OwnerMenu; var v8e592 =v5964.MenuControl; var v5a137 =v8e592.MenuStyleSettings; var vc6994 ="<tr type='GroupItem'>"; vc6994 +="<td>"; vc6994 +="</td>";  vc6994 +="<td colspan=3 width='" +v5964.Width +"'>";  for (var vd2056=0; vd2056<ve494.length; vd2056++) { var v60a62 =ve494[vd2056];  vc6994 +=wd2fc9.m3e728(v60a62); }  vc6994 +="</td>"; vc6994 +="</tr>";  return vc6994; },  m3e728:function(vfe298) { var v5ad23 ="<span type='MenuItem' name='" +vfe298.Name +"' "; var vfb52 =vfe298.OwnerMenu; var va974 =vfb52.MenuControl; var v12c56 =va974.MenuStyleSettings;  if ((vfe298.Type =="Radio" ||vfe298.Type =="CheckBox")&&vfe298.Checked)v5ad23 +="class='" +v12c56.CheckedItemStyle.Normal +"'"; if (vfe298.Tooltip !="")v5ad23 +=" title='" +vfe298.Tooltip +"'";  v5ad23 +=" style='width:" +(va974.ImageSize.Width+4)+"px; height:" +(va974.ImageSize.Width+4) +"px;text-align:center;padding-top:1px;margin-top:2px;margin-right:2px;";  if (IS.moz) v5ad23 +="display:-moz-inline-box;"; else if (!IS.ie) v5ad23 +="display:block;";  v5ad23 +="'>";  if ((vfe298.Type =="Radio" ||vfe298.Type =="CheckBox")&&vfe298.ImageURL =="") vfe298.UseFontImage =true;  if (vfe298.UseFontImage) { v5ad23 +="<span>";  var v96e56 ="";  if (vfe298.Type =="Radio" &&vfe298.Checked) v96e56 ="="; else if (vfe298.Type =="CheckBox" &&vfe298.Checked) v96e56 ="a"; else v5ad23 +="<font face=Webdings style='font-size: 8pt'>" +vfe298.ImageURL +"</font>";  if (v96e56 !="") v5ad23 +=wd2fc9.m5a452(v12c56,v96e56);  v5ad23 +="</span>"; } else { v5ad23 +="<img align='absmiddle' width=" +va974.ImageSize.Width +" height=" +va974.ImageSize.Height +" ";  if (vfe298.ImageURL !="") { v5ad23 +="src='" +vfe298.ImageURL +"' ";  if (!vfe298.Enabled) v5ad23 +="style='filter:Alpha(Opacity=50), Gray()'"; } else v5ad23 +="style='visibility: hidden'";  v5ad23 +="/>"; } if (vfe298.HasSubMenu()) v5ad23 +="<span>" +wd2fc9.m5a452(v12c56,"6")+"</span>";  v5ad23 +="</span>";   return v5ad23; },  m19245:function(v0df48) { var v11a54 =v0df48.OwnerMenu; var v8e569 =v11a54.MenuControl; var v6e741 =v8e569.MenuStyleSettings; var v8dd24 =""; var v5910 =v6e741.ItemStyle.Normal;  v8dd24 +="<tr type='MenuItem' name='" +v0df48.Name +"'";  if (v0df48.Tooltip !="") v8dd24 +=" title='" +v0df48.Tooltip +"'";  if (!v0df48.Visible) v8dd24 +=" style='display: none'";  v8dd24 +=">";  if (!v0df48.Enabled) v5910 =v6e741.DisabledItemStyle.Normal;  if (v0df48.Type =="Separator") { v8dd24 +="<td></td>"; } else if (v0df48.OwnerMenu.IconViewMode) { v8dd24 +="<td class='" +v5910 +"' width=1 style='border-right-style: none; padding: 1px'><img style='visibility:hidden; width:1px; height:" +(v8e569.ImageSize.Height+4)+"' /></td>"; } else if (v0df48.Type =="Custom") { v8dd24 +="<td class='" +v6e741.CustomStyle +"' colSpan=4>";  if (v0df48.ImageURL !="") { v8dd24 +="<img align='absmiddle' "; v8dd24 +="src='" +v0df48.ImageURL +"' "; v8dd24 +="/> &nbsp;"; }  v8dd24 +=v0df48.Text +"</td>";  return v8dd24 +"</tr>"; } else { v8dd24 +="<td valign=absmiddle class='" +v5910 +"' style='border-right-style: none; padding: 1px' "; if (!v0df48.Enabled)v8dd24 +="disabled "; v8dd24 +=">";  v8dd24 +="<span ";  if ((v0df48.Type =="Radio" ||v0df48.Type =="CheckBox")&&v0df48.Checked) { v8dd24 +="class='" + (v6e741.HighlightMode =="UseWebStyle" ? v6e741.CheckedItemStyle.Normal : "")+"'"; }  v8dd24 +=" style='width:" +(v6e741.IconCellWidth)+"px; height:" + (parseFloat(v8e569.ImageSize.Width)+4)+"px; text-align:center; padding-top:1px; display:block;";  if ((v0df48.Type =="Radio" ||v0df48.Type =="CheckBox")&&v0df48.Checked &&v6e741.HighlightMode =="UseComplexImages") { v8dd24 +="background-image: url(" +wd2fc9.m8e663(v6e741,"ActiveIconCell",true)+");" + "background-repeat: no-repeat; background-position: top left; margin-top: -1px; height: 22px;";  if (IS.ie) v8dd24 +="padding-top: 3px; padding-right: 3px"; }  if (IS.moz) { if (IsGecko30()) v8dd24 +="display: inline-block;"; else v8dd24 +="display:-moz-inline-block;"; } else if (IS.safari ||IS.opera) v8dd24 +="display:block;";  v8dd24 +="'>";  if ((v0df48.Type =="Radio" ||v0df48.Type =="CheckBox")&&v0df48.ImageURL =="") v0df48.UseFontImage =true;  if (v0df48.UseFontImage) { v8dd24 +="<span>";  var vd6095 ="";  if (v0df48.Type =="Radio" &&v0df48.Checked) vd6095 ="="; else if (v0df48.Type =="CheckBox" &&v0df48.Checked) vd6095 ="a"; else v8dd24 +="<font face=Webdings style='font-size: 8pt'>" +v0df48.ImageURL +"</font>";  if (vd6095 !="") v8dd24 +=wd2fc9.m5a452(v6e741,vd6095);  v8dd24 +="</span>"; } else { var v96c93 ="";  if (v8e569.DrawImageBackground) v96c93 ="; background-color: " +v6e741.BackgroundStripColor;  v8dd24 +="<img align='absmiddle' width=" +v8e569.ImageSize.Width +" height=" +v8e569.ImageSize.Height +" ";  if (v0df48.ImageURL !="") { v8dd24 +="src='" +v0df48.ImageURL +"' ";  if (!v0df48.Enabled) v8dd24 +="style='filter:" +(v8e569.SkipAlpha ? "" : "Alpha(Opacity=50),")+" Gray()" +v96c93 +"'"; } else v8dd24 +="style='visibility: hidden'";  v8dd24 +="/>"; }  v8dd24 +="</span>";  v8dd24 +="</td>"; }  if (v0df48.Type =="Separator") { v8dd24 +="<td colSpan=3 noWrap style='padding-left:2px; padding-bottom:0px;padding-right:0px;padding-top:2px'><div ";  if (v6e741.SeparatorStyle !="") v8dd24 +="class='" +v6e741.SeparatorStyle +"' style='width:100%; font-size:0.01em;' "; else v8dd24 +="style='height:1px; width:100%; font-size:0.01em; border-top: gray 1px solid' ";  v8dd24 +="></div></td>";  } else { v8dd24 +="<td" +(v0df48.Type =="Template" ? "" : " nowrap")+" class='" +v5910 +"' style='border-left-style: none; padding-top: " +v6e741.ItemPadding +"px; padding-bottom: " +v6e741.ItemPadding +"px;"; v8dd24 +="border-right-style: none; padding-left: " +v6e741.ContentPadding +"px; padding-right: " +v6e741.ContentPadding +"px' "; if (!v0df48.Enabled)v8dd24 +="disabled "; if (v0df48.Tooltip !="")v8dd24 +="title='" +v0df48.Tooltip +"' ";  v8dd24 +=">";  v8dd24 +=wd2fc9.m37230(v0df48);  v8dd24 +="</td>"; v8dd24 +="<td align=right class='" +v5910 +"' style='border-left-style: none; border-right-style: none; padding:" +v6e741.ItemPadding +"px; padding-left:" +(v6e741.ContentPadding+2)+"px' ";  if (!v0df48.Enabled)v8dd24 +="disabled ";  v8dd24 +=">"; v8dd24 +=v0df48.Shortcut.IsEmpty()? "&nbsp;" : v0df48.Shortcut.GetString(); v8dd24 +="</td>"; v8dd24 +="<td class='" +v5910 +"' style='border-left-style: none; padding:" +v6e741.ItemPadding +"px'>";  if (v0df48.SubMenu.Items.length >0) v8dd24 +=wd2fc9.m5a452(v6e741,v11a54.IconViewMode ? "6" : "4"); else v8dd24 +="&nbsp;";  v8dd24 +="</td>"; }  v8dd24 +="</tr>";  return v8dd24; },  m37230:function(v99748) { var v36f48 =v99748.Text;  if (v36f48 =="") v36f48 ="&nbsp;"; else { if (v99748.AccessKey !="") { var v15c68 =v36f48.toLowerCase(); var v84360 =v99748.AccessKey.toLowerCase();  if (v15c68.indexOf(v84360)>-1) { var v2dd51 =v15c68.indexOf(v84360); v36f48 =v36f48.substring(0,v2dd51)+"<u>" +v36f48.substring(v2dd51,v2dd51+1)+"</u>" +v36f48.substring(v2dd51+1); } } }  return v36f48; },  m71415:function(vc7998) { var v2b568 =true; var ved477 =vc7998.OwnerMenu.MenuControl; if (!vc7998.Enabled ||ved477.ClassName ==null)return false;  if (vc7998.Type =="CheckBox") { vc7998.SetChecked(!vc7998.Checked); } else if (vc7998.Type =="Radio") { vc7998.SetChecked(true); }  if (vc7998.OnClick !=null) { if (typeof(vc7998.OnClick)=="string") v2b568 =ISEvent.Raise(vc7998.OnClick,vc7998); else if (typeof(vc7998.OnClick)=="function") v2b568 =vc7998.OnClick(vc7998);  if (!vc7998.KeepMenuVisible) { if (ved477.HideAll) ved477.HideAll(); else return; } }  if (v2b568 &&ved477.GetType()=="WebContextMenu") { v2b568 =ISEvent.Raise(ved477.ClientSideEvents.OnMenuItemClick,ved477.Id,vc7998); if (ved477.ClientSideEvents.OnMenuItemClick !="" &&v2b568) { if (!vc7998.KeepMenuVisible) { if (ved477.HideAll) ved477.HideAll(); else return; } } }  if (v2b568 &&vc7998.TargetURL !="") { if (vc7998.TargetFrame =="") document.location.href =vc7998.TargetURL; else { var v29927 =vc7998.TargetFrame;  if (v29927 =="Blank" ||v29927 =="Parent" ||v29927 =="Search" || v29927 =="Self" ||v29927 =="Top" ||v29927 =="UseBase") v29927 ="_" +v29927.toLowerCase();  window.open(vc7998.TargetURL,v29927); }  if (!vc7998.KeepMenuVisible) vc7998.OwnerMenu.MenuControl.HideAll(); }  if ((v2b568 ||typeof(v2b568)=="undefined")&&ved477.GetType()=="WebContextMenu" &&!ved477.IntegratedToBar) { var vad412 =vc7998.AutoPostBack; if (vad412 =="Default")vad412 =ved477.AutoPostBack; if (vad412 =="Yes") { ved477.HideAll(); __doPostBack(ved477.ServerUniqueID,"ItemClick:" +wd2fc9.m70114(vc7998)); } } }, m70114:function(vfed53) { var ved934 =""; var v3b114 =vfed53;  while(v3b114.Parent !=null &&v3b114._Type =="WebMenuItem") { ved934 =v3b114.Name +";" +ved934; v3b114 =v3b114.Parent; }  return ved934; },  m01f24:function(v22f25) { if (v22f25 ==null ||v22f25 ==window) v22f25 =this;  var v6cb89 =v22f25.Element; if (!v6cb89)return;  var v84693 =v22f25.GetDocument(); if (!v84693 ||v22f25.Popup ==null)return;  var vc3568 =v22f25.GetContentWindow(); Listener.Unload(v6cb89); Listener.Unload(v84693); Listener.Unload(vc3568); Listener.Unload(window); if (v22f25.Popup) { v84693.open("text/plain","replace"); v84693.write(""); v84693.close(); }  v22f25.Popup =null; },  m0f987:function(v05c45,v4eb73) { var v31b9 =v05c45.GetMenuBodyElement().parentElement;  if (v4eb73 =="down") v31b9.scrollTop +=20; else v31b9.scrollTop -=20;  wd2fc9.m3a672(v05c45); },  m3a672:function(vc3845) { var v2e045 =vc3845.GetMenuBodyElement().parentElement;  if (v2e045.scrollTop ==0) vc3845.GetScrollElement("up").disabled =true; else vc3845.GetScrollElement("up").disabled =false;  if (v2e045.scrollHeight -v2e045.clientHeight <=v2e045.scrollTop) vc3845.GetScrollElement("down").disabled =true; else vc3845.GetScrollElement("down").disabled =false; },  m5da74:function(vad328) { for (var v2a345=0; v2a345<vad328.Items.length; v2a345++) { var vd7f73 =vad328.Items[v2a345]; if (vd7f73.HasSubMenu()) { wd2fc9.m5da74(vd7f73.SubMenu); ISDeleteObject(vd7f73.SubMenu); } }  wd2fc9.m01f24(vad328); vad328.Items =null; vad328.Items =new ISArray(); vad328.Items.Parent =vad328; vad328.ActiveItem =vad328.Element =null; vad328.ActiveItemIndex =-1; vad328.Initialized =false; },  me7a31:function(vab164) { if (IS.ie &&vab164.MenuControl.MenuWindowType =="Popup") { var v0d564 =IS.GetTempIFrame(); var ve8682 =v0d564.contentWindow.document; var v64520 =vab164.GetDocument().body.parentElement.outerHTML;  ve8682.open("text/html","replace"); ve8682.write(v64520); ve8682.close();  vab164.RuntimeWidth =ve8682.body.scrollWidth; vab164.RuntimeHeight =ve8682.body.scrollHeight; } },  mab978:function(v6cb95) { var v5f520 =v6cb95.OwnerMenu; var v1db61 =null; var vee15 =""; var v4b793 =v5f520.GetMenuBodyElement(); var v41652 =v5f520.GetDocument();  if (!v5f520._TempDiv) v5f520._TempDiv =v41652.createElement("DIV");  v1db61 =v5f520._TempDiv;  if (v5f520.IconViewMode &&v6cb95.IsUsingImageIconViewMode()) vee15 =wd2fc9.m3e728(v6cb95); else vee15 =wd2fc9.m19245(v6cb95);  v1db61.innerHTML ="<table>" +vee15 +"</table>"; el =v1db61.children[0].rows[0]; v4b793.tBodies[0].appendChild(el);  v5f520._NeedSizeRecalc =true;  return el; },  m0cc21:function(v64286,v47098) { var v3c130 =wd2fc9.mab978(v64286); var vb1119 =v64286.OwnerMenu.Items[v47098];  v64286.Element =v3c130;  if (vb1119 !=null) { var v92476 =vb1119.GetElement();  if (v92476 !=null &&v3c130 !=null) { var va5b99 =v3c130.parentElement.parentElement; va5b99.moveRow(v3c130.rowIndex,v92476.rowIndex); } } },  m94198:function(vd1889) { var v1fc5 =vd1889.OwnerMenu; var ve248 =vd1889.GetElement(); if (ve248) ve248.removeNode(true);  if (vd1889.HasSubMenu()&&vd1889.SubMenu.Popup !=null) vd1889.SubMenu.Destroy();  v1fc5._NeedSizeRecalc =true; },  ma632:function(v9ec61,vb0d87) { var v7e525 =null;  if (vb0d87.GetType()=="WebContextMenu") v7e525 =vb0d87.RootMenu; else if (vb0d87.GetType()=="WebMenuItem") v7e525 =vb0d87.SubMenu; else if (vb0d87.GetType()=="WebMenu") v7e525 =vb0d87; for (var vdc718=0; vdc718<v9ec61.length; vdc718++) { var v5b295 =v9ec61[vdc718];  v5b295.OwnerMenu =v7e525;  v5b295.Collection =v7e525.Items; v5b295.Index =vdc718;  if (v5b295.Items.length >0) wd2fc9.ma632(v5b295.Items,v5b295); } }};if (typeof(RegisterKeyboardHandler)=="function") RegisterKeyboardHandler(); if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();