
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 7/7/2008 5:22:21 PM
// 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(v83d51){ this.ClassName ="WebMenuControlBase"; this.Version ="1.5.2006"; this.BuildNumber ="0"; this.MajorVersion ="1.5"; this.RequiredFrameworkVersion ="2.0.5000.18"; ISControl.call(this,v83d51); this.ScriptDirectory ="/CommonLibrary/WebDesktop/V2_0_2007/"; this.ImageSize =new UnitSize(); this.IntegratedTo ="None"; this.MenuStyleSettings =new WebMenuStyles(); this.Initialized =false; this.Id =this.ClientId =v83d51; 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.GetStyleString =function() { return wd6da60.m8e830(this); };  this.CreateDefaultStyles =function() { wd6da60.m8b616(this); };  this.Destroy =function() { if (this.MenuWindowType =="Normal") { for (var vdb996=0; vdb996<this.RootMenu.Items.length; vdb996++) { var v1d882 =this.RootMenu.Items[vdb996];  if (v1d882.HasSubMenu()&&v1d882.SubMenu.Popup !=null) v1d882.SubMenu.Destroy(); }  this.RootMenu.Destroy(); } };  this.ApplyStyles =function() {  };  this.GetAllMenus =function() {  };  this.GetAllOpenMenus =function() {  };  this.SetIntegratedToDesktopManager =function() { wd6da60.mc6760(this); };  this.SetIntegratedToPlaceHolderManager =function() { wd6da60.m71599(this); };  this.CopyMenuSetting =function(v4d335) { this.MenuAnimation =v4d335.MenuAnimation; this.MenuAnimationMode =v4d335.MenuAnimationMode; this.MenuDropShadow =v4d335.MenuDropShadow; this.MenuWindowType =v4d335.MenuWindowType; this.AnimationSpeed =v4d335.AnimationSpeed; }; }function WebContextMenu(v79846){ WebMenuControlBase.call(this,v79846); 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.OnUnload =function() { this.ClearAll(); };  this.OnPropertiesInitialized =function() { if (this.Events !=null) { var va107; for(va107 in this.Events) { if (typeof(this.Events[va107])=="string") this.ClientSideEvents[va107] =this.Events[va107]; } }  var vb5740 =ISXml.GetAttribute(this.XmlNode,"ImageSize");  if (vb5740 !="" &&vb5740 !=null) { this.ImageSize =new UnitSize(); this.ImageSize.Parse(vb5740); } }; this.ClearAll =function() { wd6da60.m51616(this.RootMenu); this.RootMenu.MenuControl =this; this.Items =this.RootMenu.Items; };  this.IsAllItemsInvisible =function(v63d82) { for (var v6e255=0; v6e255<v63d82.length; v6e255++) { if (v63d82[v6e255].Visible) return false; }  return true; };  this.Show =function(v60965,v88e69) { if ((this.Items.length ==0 ||this.IsAllItemsInvisible(this.Items))&&!this.UseCustomContent) return;  if (typeof(v60965)=="object") { v88e69 =v60965.Y; v60965 =v60965.X; } this.RootMenu.Show(v60965,v88e69); };  this.SetOffsetElement =function(v5be21) { this.RootMenu.OffsetElement =v5be21; };  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; }  wd6da60.m02225(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(v36c72){ 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 (v36c72) { this.ParentMenuItem =v36c72; }  this.IsOpen =function() { if (this.Popup) return this.Popup.isOpen; else return false; };  this.IsRootMenu =function() { return (this.ParentMenuItem ==null); };  this.GetGroupItems =function() { var v36556 =new Array(); var v6d218 =null; for (var v8d459=0; v8d459<this.Items.length; v8d459++) { var v9cd78 =this.Items[v8d459]; if ((v9cd78.Text ==null ||v9cd78.Text =="" ||(v9cd78.Text !="" &&v9cd78.IconViewDisplayMode =="Image"))&&v9cd78.Type !="Separator" &&v9cd78.Type !="Custom") { if (v6d218 ==null ||(v6d218 !=null &&v6d218.constructor !=Array)) v6d218 =new ISArray();  v6d218.Add(v9cd78); } else { v6d218 =v9cd78; }  var vf8741 =this.Items[v8d459+1]; if (vf8741 &&(vf8741.Type =="Separator" ||vf8741.ImageURL =="" ||vf8741.ImageURL ==null ||(vf8741.ImageURL !="" &&vf8741.IconViewDisplayMode =="Text"))) { v36556.push(v6d218); v6d218 =null; } else if (!vf8741) { v36556.push(v6d218); } }  return v36556; };  this.GetOpenSubMenu =function() { for (var v8d459=0; v8d459<this.Items.length; v8d459++) { var v9cd78 =this.Items[v8d459]; if (v9cd78.HasSubMenu()&&v9cd78.Enabled &&v9cd78.IsSubMenuOpen()) { return v9cd78; } }  return null; };  this.GetId =function() { var v3e997 =this.MenuControl.Id +"_"; var v2016 =""; var v0c865 =""; var v45220 =this.ParentMenuItem; var ve4d59 =new Array();  while (v45220 !=null) { ve4d59.push(v45220.Name); v45220 =v45220.OwnerMenu.ParentMenuItem; } ve4d59.reverse();  for(var v8d459=0; v8d459<ve4d59.length; v8d459++) v0c865 =ve4d59[v8d459] +"_";  v2016 =v3e997 +v0c865;  return v2016; };  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 v57c3 =this.GetDocument(); if (v57c3) return v57c3.getElementById(this.GetId()+"_body"); else return null; };  this.GetMenuContainerElement =function() { var v57c3 =this.GetDocument(); if (v57c3) return v57c3.getElementById(this.GetId()+"_container"); else return null; };  this.GetScrollElement =function(v0178) { var v57c3 =this.GetDocument(); return v57c3.getElementById(this.GetId()+"_scroll_" +v0178); };  this.GetSelectedItemByGroup =function(v80a92) { for (var v8d459=0; v8d459<this.Items.length; v8d459++) { var v9cd78 =this.Items[v8d459];  if (v9cd78.Type =="Radio" &&v9cd78.GroupName ==v80a92 &&v9cd78.Checked) return v9cd78; }  return null; };  this.Destroy =function() { var vd0e2 =this.Element;  if (vd0e2) Listener.Unload(vd0e2);  if (this.Popup) { if (this.MenuControl.MenuWindowType =="Popup") { var v3ea15 =this.GetDocument(); v3ea15.open("text/plain","replace"); v3ea15.write(""); v3ea15.close(); this.Popup =null; } else { document.body.removeChild(this.Popup._e); ISDeleteObject(this.Popup); } } };  this.Show =function(v4c063,va9936) { if (!this.Initialized) { wd6da60.m1b284(this); }  wd6da60.m96157(this,v4c063,va9936); };  this.Initialize =function() { if (!this.Initialized) { wd6da60.m1b284(this); } };  this.InstantiateIn =function(vd0e2) { this.Initialize();  if (this.MenuControl.MenuWindowType !="Normal") { alert("InstantiateIn method can only be used with Normal MenuWindowType"); return; } vd0e2.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 vb2393 =this.GetOpenSubMenu(); if (vb2393) vb2393.SubMenu.Hide(); }  if (IS.ie &&this.MenuControl.MenuWindowType =="Normal") { if (this.ParentMenu !=null) this.ParentMenu.SetActive(); }  if (this.MenuControl.MenuAnimation) { var v5136 =this.MenuControl.AnimatedObj.IntervalId;  if (v5136 >0) { clearTimeout(v5136); this.MenuControl.AnimatedObj.IntervalId =-1; }  wd6da60.mb9046(this); } };  this.GetDocumentEvent =function() { return this.GetDocument().parentWindow.event; };  this.GetContentWindow =function() { return this.GetDocument().parentWindow; };  this.Invalidate =function() { };  this.GetStripElement =function() { var v69597 =this.MenuControl; var v2f799 =v69597.MenuStyleSettings; if (v2f799.HasBackgroundStrip &&!this.IconViewMode) { var v57c3 =this.GetDocument(); if (v57c3) return v57c3.getElementById(this.GetId()+"_strip"); }  return null; };   this.SetActive =function() { if (IS.ie) { try { this.Element.setActive(); } catch(e) { } } };  this.GetRootMenu =function() { var v99081 =this.ParentMenu;  if (v99081 ==null) return this;  while (true) { if (v99081.ParentMenu ==null) return v99081; else v99081 =v99081.ParentMenu; }  return null; };  this.SetDirty =function() { this._NeedSizeRecalc =true; };  this.GetItem =function(v2892) { return this.Items.GetNamedItem(v2892); };  this.Clear =function() { wd6da60.m51616(this); };  this.SetHeight =function(v0cd38) { var vd0e2 =this.GetElement(); vd0e2.style.height =v0cd38; };}function WebMenuSeparatorItem(v98d22){ WebMenuItem.call(this);  if (v98d22) this.Name =v98d22;  this.Type ="Separator";}function WebMenuRadioItem(vdf322,v8ec64,v93c32,ve816,vac779,vba639,v16918){ WebMenuItem.call(this,vdf322,v93c32,ve816,vac779,vba639);  this.Type ="Radio";  if (v8ec64) this.GroupName =v8ec64;  if (v16918) this.Checked =v16918;}function WebMenuCheckBoxItem(v81469,vfeb92,vf4120,vd2654,v73f46,vfad52){ WebMenuItem.call(this,v81469,vfeb92,vf4120,vd2654,v73f46);  this.Type ="CheckBox";  if (vfad52) this.Checked =vfad52;}function WebMenuItem(v93983,vfce27,v81264,v5bf41,va1925){ 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 (v93983) this.Name =v93983;  if (vfce27) this.Text =vfce27;  if (v81264) this.ImageURL =v81264;  if (v5bf41) this.OnClick =v5bf41;  if (va1925) this.Shortcut =va1925;  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) wd6da60.med29(this);  this.Collection.ReindexPosition(); };  this.OnInsert =function(v74397) { this.OwnerMenu =this.Parent; this.Collection =this.OwnerMenu.Items;  if (this.OwnerMenu.Element !=null) wd6da60.mb7129(this,v74397);  this.Collection.ReindexPosition(); };  this.OnRemove =function() { if (this.OwnerMenu.Element !=null) wd6da60.m9d746(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 vb5f44 =this.OwnerMenu.GetMenuBodyElement().parentElement; var vf8281 =this.GetElement(); var v64973 =vb5f44.scrollTop; var vcf019 =vb5f44.clientHeight; var vc4667 =vf8281.offsetTop; var vf1b68 =vf8281.offsetHeight;  if (vc4667 <v64973 ) vb5f44.scrollTop =vc4667; else if (vc4667 +vf1b68 >v64973 +vcf019 ) vb5f44.scrollTop =vc4667 +vf1b68 -vcf019; };  this.GetElement =function() { if (!this.Element) { var vd7442 =this.OwnerMenu.GetMenuBodyElement(); var v8818 =this.OwnerMenu;  if (vd7442) { if (v8818.IconViewMode) { for (var v65a96=0; v65a96<vd7442.rows.length; v65a96++) { var vb857 =vd7442.rows[v65a96];  if (this.IsUsingImageIconViewMode()) { if (IS.GetAttr(vb857,"type")=="GroupItem") { var v2a230 =vb857.cells[1]; for(var v59262=0; v59262<v2a230.children.length; v59262++) { var v4f523 =v2a230.children[v59262]; if (IS.GetAttr(v4f523,"name")==this.Name) { this.Element =v4f523; break; } } } } else { if (IS.GetAttr(vb857,"name")==this.Name) { this.Element =vb857; break; } } } } else { for (var v65a96=0; v65a96<vd7442.rows.length; v65a96++) { var vb857 =vd7442.rows[v65a96]; if (IS.GetAttr(vb857,"name")==this.Name) { this.Element =vb857; break; } } } } } return this.Element; };  this.HasSubMenu =function() { return (this.Items.length >0); };  this.Click =function() { wd6da60.m9e022(this); };  this.GetPreviousSelectableItem =function() { var v68667 =this.Index-1;  if (v68667 <0) v68667 =this.Collection.length-1;  var v1042 =this.Collection[v68667];  if (v1042) { if (v1042.Visible &&v1042.Type !="Separator" &&v1042.Type !="Custom") return v1042; else return v1042.GetPreviousSelectableItem(); }  return null; };  this.GetNextSelectableItem =function() { var v42a10 =this.Index+1; if (v42a10 >(this.Collection.length-1)) v42a10 =0; var v1042 =this.Collection[v42a10];  if (v1042) { if (v1042.Visible &&v1042.Type !="Separator" &&v1042.Type !="Custom") return v1042; else return v1042.GetNextSelectableItem(); }  return null; };  this.SetChecked =function(ve0f32,v0755) { var vf8281 =this.GetElement(); var v2a230; var v4f523; var v4ca3;  if (typeof(ve0f32)=="undefined")ve0f32 =true; if (this.Type =="Radio" &&ve0f32) { var v24d91 =this.OwnerMenu.GetSelectedItemByGroup(this.GroupName);  if (v24d91 &&v24d91 ==this) return false;  if (v24d91) v24d91.SetChecked(false); } this.Checked =ve0f32;  if (!vf8281)return;  if (vf8281.tagName =="TR") { v2a230 =vf8281.cells[0]; v4f523 =v2a230.children[0];  if (IS.ie ||IS.moz) v4ca3 =v4f523.children[0].children[0]; else v4ca3 =v4f523.children[0]; } else if (vf8281.tagName =="SPAN"){ v4f523 =vf8281;  if (IS.ie ||IS.moz) v4ca3 =v4f523.children[0].children[0]; else v4ca3 =v4f523.children[0]; }  var vfb645 =this.OwnerMenu.MenuControl.MenuStyleSettings; if (this.Checked) { if (this.UseFontImage) { v4ca3.innerHTML =wd6da60.m5760(vfb645,this.Type =="CheckBox" ? "a" :  this.Type =="Radio" ? "=" : ""); }  if (vfb645.HighlightMode =="UseWebStyle") { if (!v0755) DynamicStyleEngine.SetToOverStyle(null,vfb645.CheckedItemStyle,v4f523); else DynamicStyleEngine.SetToStyle(null,vfb645.CheckedItemStyle,v4f523); } else { with (v4f523.style) { backgroundImage ="url(" +wd6da60.m4bd90(vfb645,"ActiveIconCell",true)+")"; backgroundRepeat ="no-repeat"; backgroundPosition ="top left"; marginTop ="-1px"; height ="22px";  if (IS.ie) { paddingTop ="3px"; paddingRight ="3px"; } } } } else { if (this.UseFontImage) v4ca3.innerHTML ="";  v4f523.className =""; v4f523.style.backgroundImage ="none"; } };  this.Enable =function() { if (this.Enabled) return;  var v0e877 =this.GetElement(); var v3a631 =this.OwnerMenu.MenuControl.MenuStyleSettings.ItemStyle;  if (v0e877) { if (this.OwnerMenu.IconViewMode) { } else { for (var v65a96=0; v65a96<v0e877.cells.length; v65a96++) { var v2a230 =v0e877.cells[v65a96]; v2a230.disabled =false; DynamicStyleEngine.SetToStyle(null,v3a631,v2a230); } }  if (this.ImageURL !="") { var v5f682 =this.GetImageElement();  v5f682.style.filter =""; v5f682.style.backgroundColor =""; } }  this.Enabled =true; };  this.Disable =function() { if (!this.Enabled) return; var v0e877 =this.GetElement(); var v33860 =this.OwnerMenu.MenuControl; var v3a631 =this.OwnerMenu.MenuControl.MenuStyleSettings.DisabledItemStyle; if (v0e877) { if (this.OwnerMenu.IconViewMode) { } else { for (var v65a96=0; v65a96<v0e877.cells.length; v65a96++) { var v2a230 =v0e877.cells[v65a96]; v2a230.disabled =true; DynamicStyleEngine.SetToStyle(null,v3a631,v2a230); } }  if (this.ImageURL !="") { var v5f682 =this.GetImageElement();  v5f682.style.filter =(this.OwnerMenu.MenuControl.SkipAlpha ? "" : "Alpha(Opacity=50),")+"Gray()"; if (v33860.DrawImageBackground) v5f682.style.backgroundColor =v33860.MenuStyleSettings.BackgroundStripColor; } }  this.Enabled =false; };  this.Show =function() { if (this.Visible) return; var v0e877 =this.GetElement(); if (v0e877) v0e877.style.display ="";  this.Visible =true; };  this.Hide =function() { if (!this.Visible) return; var v0e877 =this.GetElement(); if (v0e877) v0e877.style.display ="none";  this.Visible =false; };  this.GetContentElement =function() { var v0e877 =this.GetElement(); if (v0e877.tagName =="TR") return v0e877.cells[1];  return null; };  this.SetText =function(vfce27) { var v0e877 =this.GetElement(); if (v0e877) { if (v0e877.tagName =="TR") { var va7b32 =v0e877.cells[1]; va7b32.innerHTML =vfce27; } }  this.Text =vfce27; };  this.GetImageElement =function() { var v0e877 =this.GetElement(); if (v0e877) { if (v0e877.tagName =="TR") { var va7b32 =v0e877.cells[0]; return va7b32.children[0].children[0]; } else if (v0e877.tagName =="SPAN") { return v0e877.children[0]; } } };  this.SetImage =function(vfc943) { var v0e877 =this.GetElement(); if (v0e877) { if (v0e877.tagName =="TR") { var va7b32 =v0e877.cells[0]; va7b32.children[0].src =vfc943; } else if (v0e877.tagName =="SPAN") { v0e877.children[0].src =vfc943; } }  this.ImageURL =vfc943; };  this.Destroy =function() { var v0e877 =this.GetElement(); if (v0e877) Listener.Unload(v0e877); };   this.Delete =function() { this.Collection.Remove(this); };  this.Unselect =function() { if (this.Type =="Separator") return;  wd6da60.mfab63(this); };  this.IsSelected =function() { return (this.OwnerMenu.ActiveItem ==this); };  this.Select =function(vf9327) { if (this.Type =="Separator") return;  if (this.IsSelected()) return; if (typeof(vf9327)=="undefined") vf9327 =true;  if (vf9327) { if (this.ActiveItem) wd6da60.mfab63(this.ActiveItem); }  wd6da60.m3db5(this); };  this.IsSubMenuOpen =function() { return this.SubMenu.IsOpen(); };  this.HideSubMenuQueue =function() { if (this.HasSubMenu()&&this.IsSubMenuOpen()) { var v8818 =this.SubMenu; this.CloseQueueId =setTimeout(function(){if (v8818.ParentMenuItem.InHideQueue())v8818.Hide();},this.OwnerMenu.MenuControl.ShowDelay); } };  this.ShowSubMenu =function(v71746) { if (this.HasSubMenu()) { var v8818 =this.SubMenu; v8818.MenuControl =this.OwnerMenu.MenuControl; v8818.ParentMenu =this.OwnerMenu; v8818.OffsetElement =this.GetElement(); v8818.Show();   if (v71746) { var vc6e97 =v8818.Items[0];   if (vc6e97 &&(vc6e97.Type =="Custom" ||vc6e97.Type =="Separator")) vc6e97 =vc6e97.GetNextSelectableItem();  if (vc6e97) vc6e97.Select();  } } };  this.ShowSubMenuQueue =function(vb3b18,v71746) { if (this.HasSubMenu()) { var v8818 =this.SubMenu; var vdf292 =this.OwnerMenu.MenuControl.ShowDelay; v8818.MenuControl =this.OwnerMenu.MenuControl; v8818.ParentMenu =this.OwnerMenu; v8818.OffsetElement =this.GetElement();  if (vb3b18)vdf292 =1;  this.QueueId =setTimeout(function() { v8818.Show();   if (v71746) { var vc6e97 =v8818.Items[0];   if (vc6e97 &&(vc6e97.Type =="Custom" ||vc6e97.Type =="Separator")) vc6e97 =vc6e97.GetNextSelectableItem();  if (vc6e97) vc6e97.Select();  } },vdf292); } };  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(vae849){ var v62374 =new WebContextMenu(vae849);  var vfbf31 =null; try {vfbf31 =ISXml.GetNode(v62374.XmlDt,"//WebContextMenu"); }catch(e){} if (vfbf31 ==null)vfbf31 =v62374.XmlDt.documentElement;  if (vfbf31!=null) { IS.SetPropertiesRecursive(v62374,vfbf31); var vce377 =["ItemStyle","DisabledItemStyle","CheckedItemStyle"]; DynamicStyleEngine.AssignFromArray(v62374.MenuStyleSettings,v62374.MenuStyleSettings.XmlNode,vce377); }  ISEvent.Raise(v62374.ClientSideEvents.OnInitialize,vae849);  window.attachEvent("onload",function(){OnContextMenuLoad(v62374);}); window.attachEvent("onunload",function(){OnContextMenuUnload(v62374);});}function OnContextMenuUnload(v7fc32){ window.detachEvent("onload",function(){OnContextMenuLoad(v7fc32);}); window.detachEvent("onunload",function(){OnContextMenuUnload(v7fc32);});}function OnContextMenuLoad(v7cc7){ if (v7cc7.ControlId !="") { var v53f68 =null;  if (v7cc7.ControlId =="Page") v53f68 =document.body; else v53f68 =ISGetObject(v7cc7.ControlId);  if (!v53f68)v53f68 =document.getElementById(v7cc7.ControlId);  if (!v53f68) { v53f68 =document.getElementsByName(v7cc7.ControlId); if (v53f68 &&v53f68.length >0) v53f68 =v53f68[0]; } if (v53f68 &&v53f68.tagName) { if (v7cc7.ControlId !="Page") v7cc7.SetOffsetElement(v53f68); Listener.Add(v53f68,"oncontextmenu",function(){OnGenericControlContextMenu(v7cc7); return false;}); } else if (v53f68 &&v53f68.ClassName &&v53f68.FrameObj) { var vf8629 =v53f68.FrameObj; Listener.Add(vf8629,"oncontextmenu",function(){OnISControlContextMenu(v7cc7); return false;}); } }  if (v7cc7.IntegratedTo =="None") v7cc7.CreateDefaultStyles(); else if (v7cc7.IntegratedTo =="DesktopManager") v7cc7.SetIntegratedToDesktopManager(); else v7cc7.SetIntegratedToPlaceHolderManager();}function OnISControlContextMenu(v4ef98){ event.cancelBubble =true; event.returnValue =false;  var v93843 =(IS.ie)? event.screenX : event.clientX +window.screenLeft; var v90018 =(IS.ie)? event.screenY : event.clientY +window.screenTop; if (IS.ie &&v4ef98.MenuWindowType =="Normal") { v93843 -=window.screenLeft; v90018 -=window.screenTop; } v4ef98.Show(v93843,v90018);}function OnGenericControlContextMenu(vae798){ event.cancelBubble =true; event.returnValue =false; var v10198 =(IS.ie)? event.screenX : event.clientX +window.screenLeft; var v6b297 =(IS.ie)? event.screenY : event.clientY +window.screenTop;  if (IS.ie &&vae798.MenuWindowType =="Normal") { v10198 -=window.screenLeft; v6b297 -=window.screenTop; }  if (vae798.ControlId =="Page") vae798.Show(v10198,v6b297); else vae798.Show();}var wd6da60 ={ m1b284:function(v5f796) { var vfe513 =wd6da60.m96896(v5f796); wd6da60.madf7(v5f796,vfe513); wd6da60.m85e1(v5f796); v5f796.Initialized =true; },  m85e1:function(v9cc88) { var vdac32 =v9cc88.Element; var vb5411 =v9cc88.GetDocument(); var v1be75 =window; if (vdac32) { if (!v9cc88.MenuControl.UseCustomContent) { Listener.Add(vdac32,"onmouseover",wd6da60.m32189,v9cc88); Listener.Add(vdac32,"onmouseout",wd6da60.m32189,v9cc88); Listener.Add(vdac32,"onmousedown",wd6da60.m32189,v9cc88); Listener.Add(vdac32,"onmouseup",wd6da60.m32189,v9cc88); Listener.Add(vdac32,"onmousewheel",wd6da60.m9304,v9cc88); }  Listener.Add(vdac32,"onselectstart",wd6da60.mdd760,v9cc88); Listener.Add(v1be75,"onunload",wd6da60.m96677,v9cc88); Listener.Add(vdac32,"oncontextmenu",wd6da60.mf5c59,v9cc88); if (v9cc88.MenuControl.MenuWindowType =="Popup") Listener.Append(0,vb5411,"onkeydown",wd6da60.mca678,v9cc88); else Listener.Add(vdac32,"onkeydown",wd6da60.mca678,v9cc88); } },  m2f177:function(v8b563,v7bf79) { if (!IS.GetCssObject(null,v7bf79)) { var v3397 =v8b563.GetCssObject(v7bf79);  var v7920 =IS.GetRuntimeStyleSheetExact(); if (v3397) { if (IS.ie) v7920.addRule(v3397.selectorText,v3397.style.cssText); else v7920.innerHTML +=v3397.selectorText +" { " +v3397.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",  m8b616:function(vc7e18) { var v08b82 =vc7e18.MenuStyleSettings; IS.AddRuntimeCssStyle(v08b82.FrameStyle,wd6da60.DefaultFrameStyle); IS.AddRuntimeCssStyle(v08b82.ItemStyle.Normal,wd6da60.DefaultItemNormalStyle); IS.AddRuntimeCssStyle(v08b82.ItemStyle.Over,wd6da60.DefaultItemOverStyle); IS.AddRuntimeCssStyle(v08b82.CheckedItemStyle.Normal,wd6da60.DefaultCheckedNormalStyle); IS.AddRuntimeCssStyle(v08b82.CheckedItemStyle.Over,wd6da60.DefaultCheckedOverStyle); IS.AddRuntimeCssStyle(v08b82.DisabledItemStyle.Normal,wd6da60.DefaultDisabledNormalStyle); IS.AddRuntimeCssStyle(v08b82.DisabledItemStyle.Over,wd6da60.DefaultDisabledOverStyle); IS.AddRuntimeCssStyle(v08b82.SeparatorStyle,wd6da60.DefaultSeparatorStyle);  if (v08b82.CustomStyle !="") IS.AddRuntimeCssStyle(v08b82.CustomStyle,wd6da60.DefaultCustomStyle); },  mc6760:function(vbba37) { var v9aa54 =ISGetDesktopManager(); if (!v9aa54) { alert("Can't integrate to DesktopManager because no DesktopManager instance were found!"); vbba37.CreateDefaultStyles(); return; }  if (!v9aa54.MenuStyles.Application) { alert("Integration failed because ContextMenu is currently disabled in DesktopManager. Please set EnableContextMenu to true."); vbba37.CreateDefaultStyles(); return; }  vbba37.MenuStyleSettings.CopyFrom(v9aa54.MenuStyles.Application); vbba37.MenuStyleSettings.Parent =vbba37; vbba37.MenuStyleSettings.OnPropertiesInitialized();  wd6da60.m57f34(v9aa54,vbba37.MenuStyleSettings); },  m71599:function(v1b457) { var v27273 =ISGetPlaceHolderManager(); if (v27273) { v27273.IntegrateMenuControl(v1b457); wd6da60.m57f34(v27273,v1b457.MenuStyleSettings); } },  m57f34:function(vd8293,v11e47) { if (!wd6da60.m2f177(vd8293,v11e47.FrameStyle)) IS.AddRuntimeCssStyle(v11e47.FrameStyle,wd6da60.DefaultFrameStyle); if (!wd6da60.m2f177(vd8293,v11e47.ItemStyle.Normal)) IS.AddRuntimeCssStyle(v11e47.ItemStyle.Normal,wd6da60.DefaultItemNormalStyle); if (!wd6da60.m2f177(vd8293,v11e47.ItemStyle.Over)) IS.AddRuntimeCssStyle(v11e47.ItemStyle.Over,wd6da60.DefaultItemOverStyle); if (!wd6da60.m2f177(vd8293,v11e47.CheckedItemStyle.Normal)) IS.AddRuntimeCssStyle(v11e47.CheckedItemStyle.Normal,wd6da60.DefaultCheckedNormalStyle); if (!wd6da60.m2f177(vd8293,v11e47.CheckedItemStyle.Over)) IS.AddRuntimeCssStyle(v11e47.CheckedItemStyle.Over,wd6da60.DefaultCheckedOverStyle); if (!wd6da60.m2f177(vd8293,v11e47.DisabledItemStyle.Normal)) IS.AddRuntimeCssStyle(v11e47.DisabledItemStyle.Normal,wd6da60.DefaultDisabledNormalStyle); if (!wd6da60.m2f177(vd8293,v11e47.DisabledItemStyle.Over)) IS.AddRuntimeCssStyle(v11e47.DisabledItemStyle.Over,wd6da60.DefaultDisabledOverStyle); if (!wd6da60.m2f177(vd8293,v11e47.SeparatorStyle)) IS.AddRuntimeCssStyle(v11e47.SeparatorStyle,wd6da60.DefaultSeparatorStyle); if (!wd6da60.m2f177(vd8293,v11e47.CustomStyle)) IS.AddRuntimeCssStyle(v11e47.CustomStyle,wd6da60.DefaultCustomStyle); },  mdd760:function() { var v8bc29 =this.GetDocumentEvent(); var v3b416 =v8bc29.srcElement; var vb7168 =v3b416.tagName; var va681 =true;  switch (vb7168) { case "INPUT": case "SELECT": case "TEXTAREA": { va681 =false; } } if (va681) { v8bc29.cancelBubble =true; v8bc29.returnValue =false; } },  mf5c59:function() { this.GetDocumentEvent().returnValue =false; },  mca678:function(vcd459,vbf538) { var v84923 =this;  if (vcd459 !=window &&typeof(vcd459)=="object" &&vcd459.GetType) v84923 =vcd459; var v3bd14 =v84923.GetDocumentEvent(); if (vbf538)v3bd14 =vbf538;  var v41287 =v3bd14.srcElement; var vc8128 =wd6da60.m9b594(v41287); var v70580 =v3bd14.keyCode; var v72185 =false;  if (v84923.IconViewMode) { if (v70580 ==ISKeyboardKey.LEFT) v70580 =ISKeyboardKey.UP;  if (v70580 ==ISKeyboardKey.RIGHT) v70580 =ISKeyboardKey.DOWN; }  switch (v70580) { case ISKeyboardKey.ESC: { if (v84923.ActiveItem) v84923.ActiveItem.OwnerMenu.Hide();  break; } case ISKeyboardKey.UP: { var v6691 =v84923.ActiveItem;  if (!v6691 &&v84923.Items.length >0) v6691 =v84923.Items[0];  if (v6691) { var v43960 =v6691.GetPreviousSelectableItem(); if (v43960) v43960.Select();  if (v84923.ScrollEnabled) { v43960.ScrollIntoView(); wd6da60.mff838(v84923); }  v72185 =true; } break; } case ISKeyboardKey.DOWN: { var v6691 =v84923.ActiveItem; if (!v6691 &&v84923.Items.length >0) v6691 =v84923.Items[v84923.Items.length-1];  if (v6691) { var v45357 =v6691.GetNextSelectableItem(); if (v45357) v45357.Select();  if (v84923.ScrollEnabled) { v45357.ScrollIntoView(); wd6da60.mff838(v84923); } v72185 =true; } break; } case ISKeyboardKey.LEFT: { var v6691 =v84923.ActiveItem; if (v6691) { if (v6691.OwnerMenu.ParentMenu !=null) { v84923.Hide(); v72185 =true; } else wd6da60.mfa419(v70580,v6691); } break; } case ISKeyboardKey.RIGHT: { var v6691 =v84923.ActiveItem; if (v6691) { if (v6691.Enabled &&v6691.Visible &&v6691.HasSubMenu()) { v6691.OwnerMenu.MenuControl.SkipAnimation =true; v6691.ShowSubMenuQueue(true,true); } else wd6da60.mfa419(v70580,v6691); }  v72185 =true; break; } case ISKeyboardKey.ENTER: { var v6691 =v84923.ActiveItem; if (v6691) { if (v6691.HasSubMenu()) { v6691.ShowSubMenuQueue(true,true); } else { if (v6691.Enabled) v6691.Click(); } v72185 =true; } break; } default: { var v0c579 =String.fromCharCode(v70580).toLowerCase(); var vb8869 =v84923.Items; var va8170 =vb8869.length;  for (var vc7836 =0; vc7836 <va8170; vc7836++) { if (vb8869[vc7836].AccessKey ==v0c579 &&vb8869[vc7836].Enabled &&vb8869[vc7836].Type !="Separator" &&vb8869[vc7836].Type !="Custom") { vb8869[vc7836].Select(); vb8869[vc7836].Click(); v72185 =true; break; } } } }  if (v72185) { v3bd14.cancelBubble =true; v3bd14.returnValue =false; } },  mfa419:function(v43670,vb6a97) { if (vb6a97.Parent!=null) { var vad614 =vb6a97.Parent.MenuControl; if (vad614 &&vad614.ClassName=="WebMenuBar") { var v26a17 =vad614.OnMenuKeyDown; if (typeof(v26a17)=="string") ISEvent.Raise(v26a17,v43670,vb6a97); else if (typeof(v26a17)=="function") v26a17(v43670,vb6a97); } }  },  m9304:function(v31a64) { var va6825 =this;  if (va6825.ScrollEnabled) { var v31776 =va6825.GetMenuBodyElement().parentElement; var v3ed70 =va6825.GetDocumentEvent(); if (v31a64) v3ed70 =v31a64;  v31776.scrollTop -=3 *v3ed70.wheelDelta /120 *20; wd6da60.mff838(va6825);  v3ed70.cancelBubble =true; v3ed70.returnValue =false; } },  m32189:function(va1b71,vfd758) { var vfc219 =this;  if (va1b71 !=window &&typeof(va1b71)=="object" &&va1b71.GetType) vfc219 =va1b71;  var v66674 =vfc219.GetDocumentEvent(); if (vfd758)v66674 =vfd758;  var v99c89 =v66674.srcElement; var v17b65 =wd6da60.m9b594(v99c89); if (v17b65 =="") { if (vfc219.IconViewMode) { var v93475 =wd6da60.mfc920(v99c89); if (v93475 ==null)v99c89 =wd6da60.me2b41(v99c89); else v99c89 =v93475;  v17b65 =wd6da60.m9b594(v99c89); } else { v99c89 =wd6da60.me2b41(v99c89); v17b65 =wd6da60.m9b594(v99c89); } }  if (v17b65 =="") { if (v99c89 !=null &&vfc219.GetElement().contains(v99c89)) { v99c89.cancelBubble =true; v66674.cancelBubble =true; v66674.returnValue =false; } return; }  switch (v66674.type) { case "mouseover": if (v17b65 =="MenuItem") { var v6fe97 =wd6da60.m8cb15(v99c89); var v4f198 =vfc219.Items.GetNamedItem(v6fe97); if ((!v4f198.Enabled &&!vfc219.MenuControl.MenuStyleSettings.HighlightDisabledItem)||v4f198.Type =="Custom") { wd6da60.mc9757(vfc219,v4f198); return; }  v4f198.Select(false);  if (v4f198.HasSubMenu()&&!v4f198.IsSubMenuOpen()&&!v4f198.InShowQueue()&&v4f198.Enabled) { if (vfc219.MenuControl.MenuWindowType =="Normal") { wd6da60.mc9757(vfc219,v4f198); } v4f198.OwnerMenu.MenuControl.SkipAnimation =false; v4f198.ShowSubMenuQueue(); } else if (v4f198.HasSubMenu()&&v4f198.IsSubMenuOpen()) { if (v4f198.InHideQueue()) { v4f198.CancelHide(); } } else { wd6da60.mc9757(vfc219,v4f198); }  if (vfc219.ParentMenuItem !=null) { if (vfc219.ParentMenuItem.InHideQueue()) vfc219.ParentMenuItem.CancelHide(); } } else if (v17b65 =="ScrollUp") { vfc219.ScrollInterval =setInterval(function(){wd6da60.m8cd89(vfc219,"up");},100); } else if (v17b65 =="ScrollDown") { vfc219.ScrollInterval =setInterval(function(){wd6da60.m8cd89(vfc219,"down");},100); } break; case "mouseout": if (v17b65 =="MenuItem") { var v6fe97 =wd6da60.m8cb15(v99c89); var v4f198 =vfc219.Items.GetNamedItem(v6fe97); var v1f571 =v66674.toElement; var ve4c19 =vfc219.GetElement();  if ((!v4f198.Enabled &&!vfc219.MenuControl.MenuStyleSettings.HighlightDisabledItem)||v4f198.Type =="Custom") return; if (vfc219.ActiveItem !=null &&vfc219.ActiveItem !=v4f198 &&v1f571 !=null) vfc219.ActiveItem.Unselect();  if (vfc219.ActiveItem !=null &&vfc219.ActiveItem.GetElement().contains(v1f571)) return;  if (ve4c19.contains(v1f571)) v4f198.Unselect();  if (v4f198.HasSubMenu()&&v4f198.InShowQueue()) v4f198.CancelShow(); } else if (v17b65 =="ScrollUp") { if (vfc219.ScrollInterval >0) clearInterval(vfc219.ScrollInterval); } else if (v17b65 =="ScrollDown") { if (vfc219.ScrollInterval >0) clearInterval(vfc219.ScrollInterval); } break;  case "mousedown": if (!IS.ie ||vfc219.MenuControl.MenuWindowType =="Normal") { v66674.srcElement.cancelBubble =true; v66674.cancelBubble =true; v66674.returnValue =false; } break; case "mouseup": if (v17b65 =="MenuItem") { var v6fe97 =wd6da60.m8cb15(v99c89); var v4f198 =vfc219.Items.GetNamedItem(v6fe97); var v1f571 =v66674.toElement; var ve4c19 =vfc219.GetElement(); var vbd767 =vfc219.MenuControl;  if (!v4f198.Enabled) return;  if (vbd767.MenuAnimation &&vbd767.AnimatedObj !=null &&vbd767.AnimatedObj.IntervalId >0) return; if (IS.moz) { v66674.cancelBubble =true; v66674.returnValue =false; }  if (v4f198.HasSubMenu()&&!v4f198.IsSubMenuOpen()&&v4f198.Enabled) { if (v4f198.InShowQueue()) v4f198.CancelShow();  if (!v4f198.IsSubMenuOpen()) v4f198.ShowSubMenuQueue(true);  if (vfc219.MenuControl.MenuWindowType =="Normal") wd6da60.mc9757(vfc219,v4f198,true); } else if (!v4f198.HasSubMenu()) { if (v4f198.Type !="Custom" &&v4f198.Type !="Separator") { v4f198.Click(); } } } break; } },  mc9757:function(v65d46,vf9247,v62d19) { var v46d27 =v65d46.GetOpenSubMenu(); if (v46d27 &&v46d27 !=vf9247) { if (v62d19) v46d27.SubMenu.Hide(); else v46d27.HideSubMenuQueue(); } },  m9b594:function(v89841) { if (!v89841)return "";  if (v89841.tagName =="TD") { var v51221 =v89841.parentElement; if (IS.GetAttr(v51221,"type")=="MenuItem") return "MenuItem"; } else if (v89841.tagName =="DIV" ||((v89841.tagName =="FONT" ||v89841.tagName =="IMG")&&v89841.parentElement.tagName =="DIV")) { if (v89841.tagName =="FONT" ||v89841.tagName =="IMG") v89841 =v89841.parentElement;  if (v89841.id.indexOf("scroll_up")>-1) return "ScrollUp"; else if (v89841.id.indexOf("scroll_down")>-1) return "ScrollDown"; } else if (v89841.tagName =="SPAN") { if (IS.GetAttr(v89841,"name")!="") return "MenuItem"; else { var v51221 =v89841.parentElement; if (v51221 &&v51221.tagName =="SPAN" &&IS.GetAttr(v51221,"name")!="") return "MenuItem"; } } else if (v89841.tagName =="IMG") { var v51221 =v89841.parentElement; if (v51221 &&v51221.tagName =="SPAN" &&IS.GetAttr(v51221,"name")!="") return "MenuItem"; }  return ""; },  m8cb15:function(vd6360) { if (vd6360.tagName =="TD") return IS.GetAttr(vd6360.parentElement,"name"); else if (vd6360.tagName =="TR") return IS.GetAttr(vd6360,"name"); else if (vd6360.tagName =="SPAN") { if (IS.GetAttr(vd6360,"type")=="MenuItem") return IS.GetAttr(vd6360,"name"); else return IS.GetAttr(vd6360.parentElement,"name"); } else if (vd6360.tagName =="IMG" &&vd6360.parentElement.tagName =="SPAN" &&IS.GetAttr(vd6360.parentElement,"name")!="") return IS.GetAttr(vd6360.parentElement,"name"); },  me2b41:function(v55160) { if (!v55160)return;  while (v55160 &&v55160.tagName !="TD") { v55160 =v55160.parentElement; }  if (v55160 &&v55160.tagName =="TD") return v55160; else return null; },  mfc920:function(vd6396) { if (!vd6396)return;  while (vd6396 &&vd6396.tagName !="SPAN") { vd6396 =vd6396.parentElement; }  if (vd6396 &&vd6396.tagName =="SPAN") return vd6396; else return null; },  mfab63:function(vc3a82) {  var vd0696 =vc3a82.GetElement(); var v20a24 =vc3a82.OwnerMenu; var v18c23 =v20a24.MenuControl; var vd4640 =v18c23.MenuStyleSettings; var v21f72 =vd4640.ItemStyle;  if (!vc3a82.Enabled) v21f72 =vd4640.DisabledItemStyle; if (v20a24.IconViewMode &&vd0696.tagName =="SPAN") { wd6da60.m85c22(vc3a82); return; }  for (var v75099=0; v75099<vd0696.cells.length; v75099++) { var v5047 =vd0696.cells[v75099];  if (vd4640.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToStyle(null,v21f72,v5047); else v5047.style.backgroundImage ="none";  if (v75099 ==0) { v5047.style.padding ="1px"; if ((vc3a82.Type =="Radio" ||vc3a82.Type =="CheckBox")&&vc3a82.Checked) { if (vd4640.HighlightMode =="UseWebStyle") { var vc4199 =v5047.children[0]; DynamicStyleEngine.SetToStyle(null,vd4640.CheckedItemStyle,vc4199); } } } else if (v75099 ==3) { v5047.style.padding =vd4640.ItemPadding; } else { v5047.style.paddingTop =v5047.style.paddingBottom =vd4640.ItemPadding; } }  vc3a82.Selected =false; vc3a82.OwnerMenu.ActiveItemIndex =-1; vc3a82.OwnerMenu.ActiveItem =null; },  m85c22:function(v9c712) { var va1c37 =v9c712.GetElement(); var v3c850 =v9c712.OwnerMenu.MenuControl; var vb6031 =v9c712.OwnerMenu; var v43d14 =v3c850.MenuStyleSettings; var v62859 =v43d14.ItemStyle;  if (v9c712.Type =="Normal") {  } else if (v9c712.Type =="Radio" ||v9c712.Type =="CheckBox") { if (v9c712.Checked) v62859 =v43d14.CheckedItemStyle; }  DynamicStyleEngine.SetToStyle(null,v62859,va1c37); v9c712.Selected =false; vb6031.ActiveItemIndex =-1; vb6031.ActiveItem =null; },  m40a28:function(vc0262) { var v48232 =vc0262.GetElement(); var v48848 =vc0262.OwnerMenu.MenuControl; var v97b50 =vc0262.OwnerMenu; var v47341 =v48848.MenuStyleSettings; var va0380 =v47341.ItemStyle;  if (vc0262.Type =="Normal") {  } else if (vc0262.Type =="Radio" ||vc0262.Type =="CheckBox") { if (vc0262.Checked) va0380 =v47341.CheckedItemStyle; }  DynamicStyleEngine.SetToOverStyle(null,va0380,v48232); v97b50.ActiveItemIndex =vc0262.Index; v97b50.ActiveItem =vc0262; vc0262.Selected =true;  if (v97b50.ParentMenuItem !=null &&!v97b50.ParentMenuItem.IsSelected()) { v97b50.ParentMenuItem.Select(false); } },  m3db5:function(va6714) { var va0781 =va6714.GetElement(); var v53d25 =va6714.OwnerMenu.MenuControl; var v05254 =va6714.OwnerMenu; var vc6a71 =v53d25.MenuStyleSettings; var ve2724 =vc6a71.ItemStyle;  if (v05254.ActiveItemIndex >-1) v05254.ActiveItem.Unselect();  if (v05254.IconViewMode &&va0781.tagName =="SPAN") { wd6da60.m40a28(va6714); return; }  if (!va6714.Enabled) ve2724 =vc6a71.DisabledItemStyle;  for (var vac095=0; vac095<va0781.cells.length; vac095++) { var v18893 =va0781.cells[vac095];  if (vc6a71.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToOverStyle(null,ve2724,v18893); else { var va2581 =new Array("OverLeft","OverCenter","OverCenter","OverRight"); v18893.style.backgroundImage ="url(" +wd6da60.m4bd90(vc6a71,va2581[vac095],true)+")"; v18893.style.backgroundRepeat ="repeat-x";  if (vac095 ==3) v18893.style.backgroundPosition ="top right"; }  var v58097 =parseFloat(v18893.currentStyle.borderWidth);  if (!IS.ie) v58097 =parseFloat(v18893.currentStyle.borderTopWidth);  if (isNaN(v58097)) v58097 =0; if (v58097 >0) { var v6e689 =vc6a71.ItemPadding -v58097;  if (vac095 ==0) { var vd2d76 =1-v58097;  with (v18893.style) paddingLeft =paddingTop =paddingBottom =(vd2d76 +"px");  if ((va6714.Type =="Radio" ||va6714.Type =="CheckBox")&&va6714.Checked) { var v95044 =v18893.children[0];  if (vc6a71.HighlightMode =="UseWebStyle") DynamicStyleEngine.SetToOverStyle(null,vc6a71.CheckedItemStyle,v95044); } } else if (vac095 ==3) { with (v18893.style) paddingRight =paddingTop =paddingBottom =(v6e689 +"px"); } else { with (v18893.style) paddingTop =paddingBottom =(v6e689 +"px"); } } }  v05254.ActiveItemIndex =va6714.Index; v05254.ActiveItem =va6714; va6714.Selected =true;  if (v05254.ParentMenuItem !=null &&!v05254.ParentMenuItem.IsSelected()) { v05254.ParentMenuItem.Select(false); }  },  mafe99:function(v16872) { if (v16872 !=null &&v16872.MenuControl.MenuWindowType =="Normal" &&v16872.Popup) { if (v16872.ScrollEnabled) { var ve7769 =v16872.GetMenuBodyElement().parentElement; var va4979 =v16872.GetScrollElement("up"); var v6fe51 =v16872.GetScrollElement("down");  va4979.style.display ="none"; v6fe51.style.display ="none"; ve7769.style.height ="auto"; }  v16872.Popup._e.style.width ="auto"; v16872.RuntimeWidth =v16872.Popup._e.scrollWidth; v16872.RuntimeHeight =v16872.Popup._e.scrollHeight; } },  madf7:function(v3e124,ve0413) { var vf7728 =v3e124.MenuControl;  if (v3e124.Popup ==null) { if (!IS.ie ||vf7728.MenuWindowType =="Popup") { if (v3e124.ParentMenu ==null) v3e124.Popup =window.createPopup(); else v3e124.Popup =v3e124.ParentMenu.GetDocument().parentWindow.createPopup();  } else { var vf4e8 =new WindowInfo(); vf4e8.DisplayPosition ="Bottom"; vf4e8.DisplayType ="Normal"; vf4e8.OffsetControlID =vf7728.Id; var v51452 =new WindowPopup(vf4e8); vf4e8.Popup =v51452; v51452.Init(); v3e124.Popup =v51452; v51452.document.parentWindow =window; v5e276 =v51452.document; } }  if (IS.ie &&vf7728.MenuWindowType =="Popup") { var v9f978 =IS.GetTempIFrame(); var v5e276 =v9f978.contentWindow.document; v5e276.open("text/html","replace"); v5e276.write(ve0413); v5e276.close();  v3e124.RuntimeWidth =v5e276.body.scrollWidth; v3e124.RuntimeHeight =v5e276.body.scrollHeight; }  var vd3674 =v3e124.GetDocument(); vd3674.open("text/html","replace");  vd3674.write(ve0413); vd3674.close();  if (IS.ie &&vf7728.MenuWindowType =="Popup") v3e124.Element =vd3674.body.firstChild;  else { v3e124.Element =vd3674._e.firstChild; v3e124.RuntimeHeight =v3e124.Popup._e.scrollHeight; v3e124.RuntimeWidth =v3e124.Popup._e.scrollWidth; }   for (var v2bf1=0; v2bf1<v3e124.Items.length; v2bf1++) { var vaf452 =v3e124.Items[v2bf1];  if (vaf452.Type =="Template") { var v96318 =document.getElementById("mi_View" +vaf452.Name);  if (v96318) { var vcd050 =vaf452.GetContentElement(); vcd050.innerHTML =""; vcd050.appendChild(v96318); v96318.style.display =""; } } }  if (vf7728.UseCustomContent &&vf7728.CustomContentElement !=null) { var v0a066 =v3e124.GetMenuContainerElement(); v0a066.appendChild(vf7728.CustomContentElement); } },  OnMenuClosed: function(v3bf99) { var v17980 =v3bf99.Owner; var vb8a92 =v17980.ActiveItem;  if (vb8a92 !=null &&IS.moz &&vb8a92.KeepMenuVisible) return false;  return true; },  me252:function() { if (window.screenLeft >window.screen.width) return true;  return false; },  m96157:function(vf5026,v53974,vb0227) { var v04335 =""; var v9b971 =true; var vd8715 =vf5026.MenuControl; var v90962 =0; var vbfb30 =0;  if (vf5026) v04335 =vf5026.OffsetAlignment;  if (vf5026.IsOpen()) return;  if (IS.ie &&vf5026 &&vf5026.OffsetElement) { var vae534 =ISPosLib.getScreenLeft(vf5026.OffsetElement)+ISPosLib.getWidth(vf5026.OffsetElement);  if (!wd6da60.me252()&&vae534 >window.screen.availWidth -10 &&v04335.indexOf("Right")>-1) v04335 =v04335.replace(/Right/ig,"Left"); }  if (vf5026.OffsetElement) { if (!IS.ie ||vd8715.MenuWindowType =="Popup") { v90962 =ISPosLib.getScreenLeft(vf5026.OffsetElement); vbfb30 =ISPosLib.getScreenTop(vf5026.OffsetElement); } else { v90962 =ISPosLib.getLeft(vf5026.OffsetElement); vbfb30 =ISPosLib.getTop(vf5026.OffsetElement); } }  if (vd8715.MenuWindowType =="Normal") wd6da60.mafe99(vf5026);  if (!v53974) { if (vf5026.OffsetElement) { if (vf5026.Direction =="Horizontal") { if (v04335.indexOf("Right")>-1) v53974 =v90962 +ISPosLib.getWidth(vf5026.OffsetElement); else if (v04335.indexOf("Left")>-1) v53974 =v90962 -vf5026.RuntimeWidth; } else { if (v04335.indexOf("Left")>-1) v53974 =v90962; else if (v04335.indexOf("Right")>-1) v53974 =v90962 +ISPosLib.getWidth(vf5026.OffsetElement); } } }  if (!vb0227) { if (vf5026.OffsetElement) { if (vf5026.Direction =="Horizontal") { if (v04335.indexOf("Top")>-1) vb0227 =vbfb30; else vb0227 =vbfb30 +ISPosLib.getHeight(vf5026.OffsetElement); } else { if (v04335.indexOf("Bottom")>-1) vb0227 =vbfb30 +ISPosLib.getHeight(vf5026.OffsetElement); else { vb0227 =vbfb30 -vf5026.RuntimeHeight; if (vb0227 <0)vb0227 =0; } } } }  if (vf5026.ActiveItem !=null) vf5026.ActiveItem.Unselect();  if (vf5026.ParentMenuItem !=null) { if (vf5026.ParentMenuItem.QueueId >0) vf5026.ParentMenuItem.QueueId =-1; }  if (vf5026._NeedSizeRecalc) { wd6da60.m89e57(vf5026); vf5026._NeedSizeRecalc =false; }  if (!IS.ie ||vd8715.MenuWindowType =="Normal") { if (!IS.ie) { if (vf5026.ParentMenu !=null) { var vdee31 =vf5026.ParentMenu.GetOpenSubMenu(); if (vdee31) { vdee31.SubMenu.Hide(); } } }  if (!IS.ie ||!vf5026.OffsetElement) { if (IS.IsXHTMLDocType()) { var vd7512 =document.body.parentElement;  v53974 +=vd7512.scrollLeft; vb0227 +=vd7512.scrollTop; } else { v53974 +=document.body.scrollLeft; vb0227 +=document.body.scrollTop; } }  var v42571 =wd6da60.m14d27(new OffsetLocation(v53974,vb0227), vf5026.Popup._e.firstChild,vf5026.ParentMenu,IS.ie &&vd8715.MenuWindowType =="Normal"); v53974 =v42571.X; vb0227 =v42571.Y; } var ved625 =wd6da60.m10e69(vf5026,v53974,vb0227); if (ved625) { v53974 =ved625.X; vb0227 =ved625.Y; vf5026.RuntimeHeight =ved625.Height; }  if (IS.ie &&IS.GetIEVersion()<7) { var vca488 =vf5026.GetStripElement(); if (vca488 &&vf5026.RuntimeHeight >4) vca488.style.height =vf5026.RuntimeHeight -4; } if (vf5026.IsRootMenu()) { if (vf5026._CloseIntervalId ==-1)vf5026._CloseIntervalId =setInterval(function(){wd6da60.m96520(vf5026);},100); }  if (vd8715 &&vd8715.GetType()=="WebContextMenu") v9b971 =ISEvent.Raise(vd8715.ClientSideEvents.OnShowMenu,vd8715.Id,vf5026,v53974,vb0227,vf5026.RuntimeWidth,vf5026.RuntimeHeight);  if (v9b971) { if (typeof(v9b971)=="object") { v53974 =v9b971.X; vb0227 =v9b971.Y; }  vf5026.Popup.show(v53974,vb0227,vf5026.RuntimeWidth,vf5026.RuntimeHeight);  if (IS.ie &&vd8715.MenuWindowType =="Normal") vf5026.SetActive();  if (vd8715.MenuAnimation &&!vd8715.SkipAnimation) { if (vd8715.AnimatedObj ==null) { var v67296 =new ISAnimatedObject(); v67296.OnCompleted =wd6da60.m4a299; v67296.Speed =vd8715.AnimationSpeed; v67296.Type =(vd8715.MenuAnimationMode =="Fading" ? "FadeIn" : "MenuSlideDown"); v67296.StepInterval =vd8715.AnimationInterval;  vd8715.AnimatedObj =v67296; }  var v6bb40 =vf5026.Element; wd6da60.mb9046(vf5026);  if (vd8715.MenuAnimationMode =="Sliding") { if (!vf5026.IsRootMenu()) vd8715.AnimatedObj.Type ="MenuSlideRight"; else vd8715.AnimatedObj.Type ="MenuSlideDown";  v6bb40 =v6bb40.parentElement; v6bb40.removeAttribute("OriginalLeft"); v6bb40.removeAttribute("OriginalWidth"); v6bb40.removeAttribute("OriginalTop"); v6bb40.removeAttribute("OriginalHeight");  if (!IS.ie) { v6bb40.OriginalTop =0; v6bb40.OriginalWidth =0; v6bb40.OriginalLeft =0; v6bb40.OriginalHeight =0; } }  vd8715.AnimatedObj.Owner =vf5026; vd8715.AnimatedObj.Element =v6bb40; vd8715.AnimatedObj.Play(); } else { if (vd8715.MenuDropShadow) vf5026.Element.style.filter ="progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)"; } } },  m4a299:function() { var vcd940 =this.Owner;  wd6da60.mb9046(vcd940);  if (vcd940.MenuControl.MenuDropShadow) vcd940.Element.style.filter ="progid:DXImageTransform.Microsoft.Shadow(color=Gray,direction=135, strength=2)";  this.IntervalId =-1; },  mb9046:function(v6a312) { v6a312.Element.style.filter =""; },  m96520:function(v7a831) { if (!v7a831.IsOpen()) { clearInterval(v7a831._CloseIntervalId); v7a831._CloseIntervalId =-1;  var v83795 =v7a831.MenuControl; if (v83795.OnRootMenuClosed !=null) { if (typeof(v83795.OnRootMenuClosed)=="string") ISEvent.Raise(v83795.OnRootMenuClosed,v7a831); else if (typeof(v83795.OnRootMenuClosed)=="function") v83795.OnRootMenuClosed(v7a831); } } },  m10e69:function(v15572,vdc856,v12125) { var v5e015 =window.screen.availHeight; var v28f70 =v15572.RuntimeHeight; var v5b065 =0; var v66f19 =v15572.MenuControl;  if (!IS.ie ||v66f19.MenuWindowType =="Normal") { v5e015 =document.body.clientHeight;  }  if (v28f70 >v5e015 &&!v66f19.UseCustomContent) { var v6633 =v15572.GetMenuBodyElement().parentElement; var vd1856 =v15572.GetScrollElement("up"); var v0841 =v15572.GetScrollElement("down");  vd1856.style.display =""; v0841.style.display ="";  var v35f62 =v5e015 -vd1856.style.posHeight -v0841.style.posHeight -8;  if (v35f62 <0) v35f62 =5;  v6633.style.height =v35f62; v5b065 =v5e015-4; v28f70 =2; v15572.ScrollEnabled =true;  if (v66f19.MenuWindowType =="Normal") v28f70 +=document.body.scrollTop;  return new Rectangle(vdc856,v28f70,null,v5b065); } else { if (v15572.ScrollEnabled &&v66f19.MenuWindowType =="Normal") { var v6633 =v15572.GetMenuBodyElement().parentElement; var vd1856 =v15572.GetScrollElement("up"); var v0841 =v15572.GetScrollElement("down");  vd1856.style.display ="none"; v0841.style.display ="none"; v6633.style.height ="auto"; v5b065 =v6633.offsetHeight;  v15572.ScrollEnabled =false;  return new Rectangle(vdc856,v12125,null,v5b065); } } },  m14d27:function(v27f86,v41f64,vb9510,v25361) { var v73b31 =v27f86.Y; var v9a285 =v27f86.X;  if (!IS.ie ||v25361) { if (!v25361) { v73b31 -=window.screenTop; v9a285 -=window.screenLeft; }  if (v73b31 +ISPosLib.getHeight(v41f64)>document.body.clientHeight +document.body.scrollTop) { v73b31 =((document.body.clientHeight +document.body.scrollTop)-ISPosLib.getHeight(v41f64));  if (v25361) v73b31 -=4; } if (v9a285 +(ISPosLib.getWidth(v41f64))>document.body.clientWidth) { if (!vb9510) v9a285 =document.body.clientWidth -ISPosLib.getWidth(v41f64); else v9a285 =ISPosLib.getLeft(vb9510.Popup._e.firstChild)-ISPosLib.getWidth(v41f64);  if (v25361) v9a285 -=4; }  if (!v25361) { v73b31 +=window.screenTop; v9a285 +=window.screenLeft; } else { if (v73b31 <0) v73b31 =2; } }  return new OffsetLocation(v9a285,v73b31); },  m78019:function(ve0597) { var v96961 ="<html><head>" + "<style type=\"text/css\">" +ve0597.MenuControl.GetStyleString()+"</style>" + "</head><body style='margin:0px;padding:0px;overflow:hidden;border:0px'>";  if (IS.ie &&ve0597.MenuControl.MenuWindowType =="Popup") return v96961; else return ""; },  m0951:function(vb1317) { var v01d33 ="</body></html>";  if (IS.ie &&vb1317.MenuControl.MenuWindowType =="Popup") return v01d33; else return ""; },  m8e830:function(v26483,v81569) { if ((v26483.GetType()=="WebContextMenu" &&v26483.IntegratedToBar)&&!v81569) { var v85417;  if (v26483.GetType()=="WebContextMenu") v85417 =v26483._MenuCommand !=null ? v26483._MenuCommand._Bar :  (v26483._ToolCommand !=null? v26483._ToolCommand._Bar : null);  if (v85417 !=null) return v85417.GetCachedMenuStyleString(v26483); else if (v26483 !=null) return v26483.GetCachedMenuStyleString(v26483); } var vf9032 =v26483.MenuStyleSettings; var v3a348 =new Array("ItemStyle","FrameStyle","DisabledItemStyle","SeparatorStyle","CheckedItemStyle","CustomStyle"); var vfdd29 ="";  for (var v7ca78=0; v7ca78<v3a348.length; v7ca78++) { var v36b42 =v3a348[v7ca78]; if (typeof(vf9032[v36b42])=="string") { if (vf9032[v36b42] !="") { vfdd29 +=wd6da60.m12a95(vf9032[v36b42]); } } else if(typeof(vf9032[v36b42])=="object") { var v4ab15 =vf9032[v36b42]; if (v4ab15.Normal !="") vfdd29 +=wd6da60.m12a95(v4ab15.Normal);  if (v4ab15.Over !="") vfdd29 +=wd6da60.m12a95(v4ab15.Over);  if (v4ab15.Active !="") vfdd29 +=wd6da60.m12a95(v4ab15.Active); } }  return vfdd29; },  m12a95:function(v79738) { return IS.GetStyleText(null,v79738); },  m4bd90:function(v79f94,v0b727,v79374) { var vab558 =v79f94;  if (v79374) vab558 =v79f94.ImagesSettings;  if (v79f94.UseSmartWebResources) return "ISRes.axd?D/" +vab558[v0b727]; else return vab558[v0b727]; },  m5760:function(vadf52,vcad56,v3f675) { if (IS.ie ||IS.moz) { if (v3f675) return vcad56; else return "<font face='Webdings' style='font-size: 8pt'>" +vcad56 +"</font>"; } else { var vbc633 ="";  if (vcad56 =="6") vbc633 ="arrow_down.gif"; else if (vcad56 =="=") vbc633 ="radio.gif"; else if (vcad56 =="a") vbc633 ="checkbox.gif"; else if (vcad56 =="4") vbc633 ="arrow_right.gif"; else if (vcad56 =="5") vbc633 ="arrow_up.gif";  if (vadf52.UseSmartWebResources) vbc633 ="ISRes.axd?D/" +vbc633; else vbc633 =vadf52.Parent +vbc633;  return "<img valign='absmiddle' height='16' src='" +vbc633 +" ' />"; } },  m96896:function(v0dc93) { var ve3127 =v0dc93.MenuControl; var v02945 =ve3127.MenuStyleSettings;  var vdeb27 ="<table class='" +v02945.FrameStyle +"' border='0' cellpadding='1' cellspacing='0' style='position: relative;'>";  vdeb27 +="<tr>"; vdeb27 +="<td valign='top'>"; vdeb27 +="<div id='" +v0dc93.GetId()+"_container' style='position: relative;";  if (v0dc93.IconViewMode) vdeb27 +="width:" +v0dc93.Width +";";  vdeb27 +="'>";  if (ve3127.GetType()=="WebContextMenu" &&ve3127.UseCustomContent) { vdeb27 +="</div></td></tr></table>"; return vdeb27; }  if (v02945.HasBackgroundStrip &&!v0dc93.IconViewMode) { vdeb27 +="<div id='" +v0dc93.GetId()+"_strip' style='position: absolute; left: 0px; top: 0px;"; vdeb27 +="width: " +v02945.BackgroundStripWidth +"px"; if (IS.ie) { if (IS.GetIEVersion()<7) vdeb27 +=";height:auto"; else vdeb27 +=";height:expression(this.parentElement.offsetHeight)"; } else vdeb27 +=";height:100%"; if (v02945.BackgroundStripColor2 =="" ||v02945.BackgroundStripColor2 =="000000") { vdeb27 +=";background-color:#" +v02945.BackgroundStripColor; } else { if (IS.ie) vdeb27 +=";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF" +v02945.BackgroundStripColor +", endColorstr=#FF" +v02945.BackgroundStripColor2 +", GradientType=1)"; else vdeb27 +=";background-color:#" +v02945.BackgroundStripColor2; }  if (v02945.BackgroundStripImage !="") vdeb27 +=";background-image: url(" +wd6da60.m4bd90(v02945,"BackgroundStripImage")+"); background-repeat: repeat-y"; vdeb27 +="'>"; vdeb27 +="</div>"; }  vdeb27 +="<div id='" +v0dc93.GetId()+"_scroll_up' align='center' disabled style='height:18px;position:relative;display:none;cursor:default'>"; vdeb27 +=wd6da60.m5760(v02945,"5"); vdeb27 +="</div>"; vdeb27 +="<div style='position: relative; overflow: hidden;'>"; vdeb27 +="<table id='" +v0dc93.GetId()+"_body' border='0' cellpadding='0' cellspacing='0' style='cursor:default; width:100%'>"; if (v0dc93.IconViewMode) { var vd1495 =v0dc93.GetGroupItems(); for (var v3428=0; v3428<vd1495.length; v3428++) { var v31a22 =vd1495[v3428]; if (v31a22.constructor ==Array) vdeb27 +=wd6da60.mb7711(v31a22); else vdeb27 +=wd6da60.m7c666(v31a22); } } else { for (var v3428=0; v3428<v0dc93.Items.length; v3428++) { vdeb27 +=wd6da60.m7c666(v0dc93.Items[v3428]); } }  vdeb27 +="</table>"; vdeb27 +="</div>";  vdeb27 +="<div id='" +v0dc93.GetId()+"_scroll_down' align=center style='height:18px;position:relative;display:none;cursor:default'>"; vdeb27 +=wd6da60.m5760(v02945,"6"); vdeb27 +="</div>"; vdeb27 +="</div>"; vdeb27 +="</td></tr></table>"; return wd6da60.m78019(v0dc93)+vdeb27 +wd6da60.m0951(v0dc93); },  mb7711:function(v11343) { var v36149 =v11343[0].OwnerMenu; var vf5c61 =v36149.MenuControl; var v8f968 =vf5c61.MenuStyleSettings; var v89c8 ="<tr type='GroupItem'>"; v89c8 +="<td>"; v89c8 +="</td>";  v89c8 +="<td colspan=3 width='" +v36149.Width +"'>";  for (var vfa196=0; vfa196<v11343.length; vfa196++) { var v01652 =v11343[vfa196];  v89c8 +=wd6da60.mcbf70(v01652); }  v89c8 +="</td>"; v89c8 +="</tr>";  return v89c8; },  mcbf70:function(v58c9) { var vb7b79 ="<span type='MenuItem' name='" +v58c9.Name +"' "; var v26129 =v58c9.OwnerMenu; var vd1d5 =v26129.MenuControl; var v7ee76 =vd1d5.MenuStyleSettings;  if ((v58c9.Type =="Radio" ||v58c9.Type =="CheckBox")&&v58c9.Checked)vb7b79 +="class='" +v7ee76.CheckedItemStyle.Normal +"'"; if (v58c9.Tooltip !="")vb7b79 +=" title='" +v58c9.Tooltip +"'";  vb7b79 +=" style='width:" +(vd1d5.ImageSize.Width+4)+"px; height:" +(vd1d5.ImageSize.Width+4) +"px;text-align:center;padding-top:1px;margin-top:2px;margin-right:2px;";  if (IS.moz) vb7b79 +="display:-moz-inline-box;"; else if (!IS.ie) vb7b79 +="display:block;";  vb7b79 +="'>";  if ((v58c9.Type =="Radio" ||v58c9.Type =="CheckBox")&&v58c9.ImageURL =="") v58c9.UseFontImage =true;  if (v58c9.UseFontImage) { vb7b79 +="<span>";  var v82039 ="";  if (v58c9.Type =="Radio" &&v58c9.Checked) v82039 ="="; else if (v58c9.Type =="CheckBox" &&v58c9.Checked) v82039 ="a"; else vb7b79 +="<font face=Webdings style='font-size: 8pt'>" +v58c9.ImageURL +"</font>";  if (v82039 !="") vb7b79 +=wd6da60.m5760(v7ee76,v82039);  vb7b79 +="</span>"; } else { vb7b79 +="<img align='absmiddle' width=" +vd1d5.ImageSize.Width +" height=" +vd1d5.ImageSize.Height +" ";  if (v58c9.ImageURL !="") { vb7b79 +="src='" +v58c9.ImageURL +"' ";  if (!v58c9.Enabled) vb7b79 +="style='filter:Alpha(Opacity=50), Gray()'"; } else vb7b79 +="style='visibility: hidden'";  vb7b79 +="/>"; } if (v58c9.HasSubMenu()) vb7b79 +="<span>" +wd6da60.m5760(v7ee76,"6")+"</span>";  vb7b79 +="</span>";   return vb7b79; },  m7c666:function(vece70) { var vdd665 =vece70.OwnerMenu; var v46f75 =vdd665.MenuControl; var ve3228 =v46f75.MenuStyleSettings; var v2ba47 =""; var vaf45 =ve3228.ItemStyle.Normal;  v2ba47 +="<tr type='MenuItem' name='" +vece70.Name +"'";  if (vece70.Tooltip !="") v2ba47 +=" title='" +vece70.Tooltip +"'";  if (!vece70.Visible) v2ba47 +=" style='display: none'";  v2ba47 +=">";  if (!vece70.Enabled) vaf45 =ve3228.DisabledItemStyle.Normal;  if (vece70.Type =="Separator") { v2ba47 +="<td></td>"; } else if (vece70.OwnerMenu.IconViewMode) { v2ba47 +="<td class='" +vaf45 +"' width=1 style='border-right-style: none; padding: 1px'><img style='visibility:hidden; width:1px; height:" +(v46f75.ImageSize.Height+4)+"' /></td>"; } else if (vece70.Type =="Custom") { v2ba47 +="<td class='" +ve3228.CustomStyle +"' colSpan=4>";  if (vece70.ImageURL !="") { v2ba47 +="<img align='absmiddle' "; v2ba47 +="src='" +vece70.ImageURL +"' "; v2ba47 +="/> &nbsp;"; }  v2ba47 +=vece70.Text +"</td>";  return v2ba47 +"</tr>"; } else { v2ba47 +="<td valign=absmiddle class='" +vaf45 +"' style='border-right-style: none; padding: 1px' "; if (!vece70.Enabled)v2ba47 +="disabled "; v2ba47 +=">";  v2ba47 +="<span ";  if ((vece70.Type =="Radio" ||vece70.Type =="CheckBox")&&vece70.Checked) { v2ba47 +="class='" + (ve3228.HighlightMode =="UseWebStyle" ? ve3228.CheckedItemStyle.Normal : "")+"'"; }  v2ba47 +=" style='width:" +(ve3228.IconCellWidth)+"px; height:" + (parseFloat(v46f75.ImageSize.Width)+4)+"px; text-align:center; padding-top:1px;";  if ((vece70.Type =="Radio" ||vece70.Type =="CheckBox")&&vece70.Checked &&ve3228.HighlightMode =="UseComplexImages") { v2ba47 +="background-image: url(" +wd6da60.m4bd90(ve3228,"ActiveIconCell",true)+");" + "background-repeat: no-repeat; background-position: top left; margin-top: -1px; height: 22px;";  if (IS.ie) v2ba47 +="padding-top: 3px; padding-right: 3px"; }  if (IS.moz) v2ba47 +="display:-moz-inline-block;"; else if (IS.safari ||IS.opera) v2ba47 +="display:block;";  v2ba47 +="'>";  if ((vece70.Type =="Radio" ||vece70.Type =="CheckBox")&&vece70.ImageURL =="") vece70.UseFontImage =true;  if (vece70.UseFontImage) { v2ba47 +="<span>";  var vc376 ="";  if (vece70.Type =="Radio" &&vece70.Checked) vc376 ="="; else if (vece70.Type =="CheckBox" &&vece70.Checked) vc376 ="a"; else v2ba47 +="<font face=Webdings style='font-size: 8pt'>" +vece70.ImageURL +"</font>";  if (vc376 !="") v2ba47 +=wd6da60.m5760(ve3228,vc376);  v2ba47 +="</span>"; } else { var v2ba36 ="";  if (v46f75.DrawImageBackground) v2ba36 ="; background-color: " +ve3228.BackgroundStripColor;  v2ba47 +="<img align='absmiddle' width=" +v46f75.ImageSize.Width +" height=" +v46f75.ImageSize.Height +" ";  if (vece70.ImageURL !="") { v2ba47 +="src='" +vece70.ImageURL +"' ";  if (!vece70.Enabled) v2ba47 +="style='filter:" +(v46f75.SkipAlpha ? "" : "Alpha(Opacity=50),")+" Gray()" +v2ba36 +"'"; } else v2ba47 +="style='visibility: hidden'";  v2ba47 +="/>"; }  v2ba47 +="</span>";  v2ba47 +="</td>"; }  if (vece70.Type =="Separator") { v2ba47 +="<td colSpan=3 noWrap style='padding-left:2px; padding-bottom:0px;padding-right:0px;padding-top:2px'><div ";  if (ve3228.SeparatorStyle !="") v2ba47 +="class='" +ve3228.SeparatorStyle +"' style='width:100%; font-size:0.01em;' "; else v2ba47 +="style='height:1px; width:100%; font-size:0.01em; border-top: gray 1px solid' ";  v2ba47 +="></div></td>";  } else { v2ba47 +="<td" +(vece70.Type =="Template" ? "" : " nowrap")+" class='" +vaf45 +"' style='border-left-style: none; padding-top: " +ve3228.ItemPadding +"px; padding-bottom: " +ve3228.ItemPadding +"px;"; v2ba47 +="border-right-style: none; padding-left: " +ve3228.ContentPadding +"px; padding-right: " +ve3228.ContentPadding +"px' "; if (!vece70.Enabled)v2ba47 +="disabled "; if (vece70.Tooltip !="")v2ba47 +="title='" +vece70.Tooltip +"' ";  v2ba47 +=">";  v2ba47 +=wd6da60.mca370(vece70);  v2ba47 +="</td>"; v2ba47 +="<td align=right class='" +vaf45 +"' style='border-left-style: none; border-right-style: none; padding:" +ve3228.ItemPadding +"px; padding-left:" +(ve3228.ContentPadding+2)+"px' ";  if (!vece70.Enabled)v2ba47 +="disabled ";  v2ba47 +=">"; v2ba47 +=vece70.Shortcut.IsEmpty()? "&nbsp;" : vece70.Shortcut.GetString(); v2ba47 +="</td>"; v2ba47 +="<td class='" +vaf45 +"' style='border-left-style: none; padding:" +ve3228.ItemPadding +"px'>";  if (vece70.SubMenu.Items.length >0) v2ba47 +=wd6da60.m5760(ve3228,vdd665.IconViewMode ? "6" : "4"); else v2ba47 +="&nbsp;";  v2ba47 +="</td>"; }  v2ba47 +="</tr>";  return v2ba47; },  mca370:function(v03336) { var v61925 =v03336.Text;  if (v61925 =="") v61925 ="&nbsp;"; else { if (v03336.AccessKey !="") { var v56811 =v61925.toLowerCase(); var v1512 =v03336.AccessKey.toLowerCase();  if (v56811.indexOf(v1512)>-1) { var v93083 =v56811.indexOf(v1512); v61925 =v61925.substring(0,v93083)+"<u>" +v61925.substring(v93083,v93083+1)+"</u>" +v61925.substring(v93083+1); } } }  return v61925; },  m9e022:function(va3170) { var v32256 =true; var v01c79 =va3170.OwnerMenu.MenuControl; if (!va3170.Enabled ||v01c79.ClassName ==null)return false;  if (va3170.Type =="CheckBox") { va3170.SetChecked(!va3170.Checked); } else if (va3170.Type =="Radio") { va3170.SetChecked(true); }  if (va3170.OnClick !=null) { if (typeof(va3170.OnClick)=="string") v32256 =ISEvent.Raise(va3170.OnClick,va3170); else if (typeof(va3170.OnClick)=="function") v32256 =va3170.OnClick(va3170);  if (!va3170.KeepMenuVisible) { if (v01c79.HideAll) v01c79.HideAll(); else return; } }  if (v32256 &&v01c79.GetType()=="WebContextMenu") { v32256 =ISEvent.Raise(v01c79.ClientSideEvents.OnMenuItemClick,v01c79.Id,va3170); if (v01c79.ClientSideEvents.OnMenuItemClick !="" &&v32256) { if (!va3170.KeepMenuVisible) { if (v01c79.HideAll) v01c79.HideAll(); else return; } } }  if (v32256 &&va3170.TargetURL !="") { if (va3170.TargetFrame =="") document.location.href =va3170.TargetURL; else { var v03040 =va3170.TargetFrame;  if (v03040 =="Blank" ||v03040 =="Parent" ||v03040 =="Search" || v03040 =="Self" ||v03040 =="Top" ||v03040 =="UseBase") v03040 ="_" +v03040.toLowerCase();  window.open(va3170.TargetURL,v03040); }  if (!va3170.KeepMenuVisible) va3170.OwnerMenu.MenuControl.HideAll(); }  if ((v32256 ||typeof(v32256)=="undefined")&&v01c79.GetType()=="WebContextMenu" &&!v01c79.IntegratedToBar) { var v58d51 =va3170.AutoPostBack; if (v58d51 =="Default")v58d51 =v01c79.AutoPostBack; if (v58d51 =="Yes") { v01c79.HideAll(); __doPostBack(v01c79.ServerUniqueID,"ItemClick:" +wd6da60.mbbf52(va3170)); } } }, mbbf52:function(vb4761) { var v9f441 =""; var v52a25 =vb4761;  while(v52a25.Parent !=null &&v52a25._Type =="WebMenuItem") { v9f441 =v52a25.Name +";" +v9f441; v52a25 =v52a25.Parent; }  return v9f441; },  m96677:function(vf8d36) { if (vf8d36 ==null ||vf8d36 ==window) vf8d36 =this;  var v79280 =vf8d36.Element; if (!v79280)return;  var v04845 =vf8d36.GetDocument(); if (!v04845 ||vf8d36.Popup ==null)return;  var v1c896 =vf8d36.GetContentWindow(); Listener.Unload(v79280); Listener.Unload(v04845); Listener.Unload(v1c896); Listener.Unload(window); if (vf8d36.Popup) { v04845.open("text/plain","replace"); v04845.write(""); v04845.close(); }  vf8d36.Popup =null; },  m8cd89:function(v52c11,v86c12) { var vb5491 =v52c11.GetMenuBodyElement().parentElement;  if (v86c12 =="down") vb5491.scrollTop +=20; else vb5491.scrollTop -=20;  wd6da60.mff838(v52c11); },  mff838:function(vb9e30) { var v5ae47 =vb9e30.GetMenuBodyElement().parentElement;  if (v5ae47.scrollTop ==0) vb9e30.GetScrollElement("up").disabled =true; else vb9e30.GetScrollElement("up").disabled =false;  if (v5ae47.scrollHeight -v5ae47.clientHeight <=v5ae47.scrollTop) vb9e30.GetScrollElement("down").disabled =true; else vb9e30.GetScrollElement("down").disabled =false; },  m51616:function(vaaa2) { for (var v0ca30=0; v0ca30<vaaa2.Items.length; v0ca30++) { var vb9122 =vaaa2.Items[v0ca30]; if (vb9122.HasSubMenu()) { wd6da60.m51616(vb9122.SubMenu); ISDeleteObject(vb9122.SubMenu); } }  wd6da60.m96677(vaaa2); vaaa2.Items =null; vaaa2.Items =new ISArray(); vaaa2.Items.Parent =vaaa2; vaaa2.ActiveItem =vaaa2.Element =null; vaaa2.ActiveItemIndex =-1; vaaa2.Initialized =false; },  m89e57:function(v24e61) { if (IS.ie &&v24e61.MenuControl.MenuWindowType =="Popup") { var vf4622 =IS.GetTempIFrame(); var va3e70 =vf4622.contentWindow.document; var vc224 =v24e61.GetDocument().body.parentElement.outerHTML;  va3e70.open("text/html","replace"); va3e70.write(vc224); va3e70.close();  v24e61.RuntimeWidth =va3e70.body.scrollWidth; v24e61.RuntimeHeight =va3e70.body.scrollHeight; } },  med29:function(vddb7) { var v9de96 =vddb7.OwnerMenu; var v22f59 =null; var v10e56 =""; var vd6885 =v9de96.GetMenuBodyElement(); var v60e10 =v9de96.GetDocument();  if (!v9de96._TempDiv) v9de96._TempDiv =v60e10.createElement("DIV");  v22f59 =v9de96._TempDiv;  if (v9de96.IconViewMode &&vddb7.IsUsingImageIconViewMode()) v10e56 =wd6da60.mcbf70(vddb7); else v10e56 =wd6da60.m7c666(vddb7);  v22f59.innerHTML ="<table>" +v10e56 +"</table>"; el =v22f59.children[0].rows[0]; vd6885.tBodies[0].appendChild(el);  v9de96._NeedSizeRecalc =true;  return el; },  mb7129:function(vb8e18,vcd575) { var v31427 =wd6da60.med29(vb8e18); var vc2227 =vb8e18.OwnerMenu.Items[vcd575]; var v22993 =vc2227.GetElement();  if (v22993 !=null &&v31427 !=null) { var vac053 =v31427.parentElement.parentElement; vac053.moveRow(v31427.rowIndex,v22993.rowIndex); } },  m9d746:function(vce893) { var vc0a21 =vce893.OwnerMenu; var v37725 =vce893.GetElement(); if (v37725) v37725.removeNode(true);  if (vce893.HasSubMenu()&&vce893.SubMenu.Popup !=null) vce893.SubMenu.Destroy();  vc0a21._NeedSizeRecalc =true; },  m02225:function(v6a052,v65e93) { var v2c477 =null;  if (v65e93.GetType()=="WebContextMenu") v2c477 =v65e93.RootMenu; else if (v65e93.GetType()=="WebMenuItem") v2c477 =v65e93.SubMenu; else if (v65e93.GetType()=="WebMenu") v2c477 =v65e93; for (var vafc4=0; vafc4<v6a052.length; vafc4++) { var v4ac97 =v6a052[vafc4];  v4ac97.OwnerMenu =v2c477;  v4ac97.Collection =v2c477.Items; v4ac97.Index =vafc4;  if (v4ac97.Items.length >0) wd6da60.m02225(v4ac97.Items,v4ac97); } }};if (typeof(RegisterKeyboardHandler)=="function") RegisterKeyboardHandler(); if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();