
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2009 9:57:51 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 InitWebToolBar(vabb10,vcff80,vbd76){ var vfb274 =wdee387.m42c76(vabb10,vcff80,vbd76); var v8fb11 =ISGetCurrentWindow(); if (v8fb11) { if (v8fb11 !=ISGetActiveWindow()) vfb274.UnregisterAccessKeys(); }};function WebToolBar(v93f93){ this.ClassName ="WebToolBar"; this.RequiredFrameworkVersion ="2.0.5000.18"; ISControl.call(this,v93f93); BarControl.call(this); this.ClassName ="WebToolBar"; this.Commands =new ISArray(); this.MergeToolBar =false; this.MergeToolBarParentID =""; this.MergeToolBarParentWindowName ="_parent"; this.NewCreatedMergeChildBar =false; this.CustomStateString =null; this.ImagesDirectory ="/CommonLibrary/Images/WebDesktop/"; this.WebResourceIdentifier ="D"; this.IsRuntimeToolCommandCreated =false;  this.ToggleGroups =new ISArray(); this.LazyLoadContextMenu =false;   this.DisplayAccessKeyOnToolTip ="Yes";  this.OnPostInitialized =function() { wdee387.medf82(this); }; this.OnUnload =function() { wdee387.m92086(this); this.Unloaded =true; }; this.OnBeforeUnload =function() { wdee387.m27f47(this); }; this.ReBindingPostBackData =function() { wdee387.mcd814(this); }; this._GetItems =function() { return this.Commands; };};var pWTB =WebToolBar.prototype;pWTB._AddMergedCommands =function(cmds,oriWindow,oriBar){ wd5a159.m25a12(this,cmds,oriWindow,oriBar);};pWTB._ClearMergedCommands =function(){ if (typeof (wd5a159)=="object") wd5a159.m96181(this);};pWTB._ClearMergedCommandsByChildBar =function(childBar){ if (typeof (wd5a159)=="object") wd5a159.m9c281(this,childBar);};pWTB.ShowCommand =function(cmd,updateContainerDimension){ wdee387.mbf551(this,cmd,updateContainerDimension);};pWTB.HideCommand =function(cmd,updateContainerDimension){ wdee387.m9aa21(this,cmd,updateContainerDimension);};pWTB.AddCommand =function(cmd,idx){ wdee387.m4b763(this,cmd,idx);};pWTB.RemoveCommand =function(cmd){ wdee387.m23b32(this,cmd);};pWTB.EnableCommand =function(c){ wdee387.m97699(this,c);};pWTB.DisableCommand =function(c){ wdee387.m26798(this,c);};pWTB._SetItemToHorizontalDisplay =function(cmd){ wdee387.mab10(cmd);};pWTB._SetItemToVerticalDisplay =function(cmd){ wdee387.m9ae25(cmd);};pWTB._RegisterBehaviour =function(){ wdee387.me1772(this);};pWTB._RefreshStyle =function(){ wdee387.m61614(this);};pWTB._UpdateCommandTextAndImage =function(cmd){ wdee387.m9f761(cmd);};pWTB._AssignCommandListener =function(cmd){ wdee387.mb5099(cmd);};pWTB.Render =function(){ wdee387.mdc099(this);};function ToolCommand(){ Command.call(this); this._Type ="ToolCommand";  this.DisplayAccessKeyOnToolTip ="Yes"; this.ToggleGroupName =""; this.Type ="Button";  this.AutoPostBack ="Default"; this.Pushed =false; this.AutoCheck =true; this.Checked =false; this.MergeCommandID =""; this._MergeCommand =false; this._OriginalMergeToolBarWindow =null; this._OriginalBar =null; this.IsRendered =false; this.__getter =function(vbbd93) { return wd08e0.m12d49(this,vbbd93); }; this.__setter =function(vbbd93,vb2f21,vcd954) { return wd08e0.me0884(this,vbbd93,vb2f21,vcd954); };};var pTCmd =ToolCommand.prototype;pTCmd.SetVisible =function(val,batchUIUpdate){ wd08e0.m9c647(this,val,batchUIUpdate);};pTCmd.SetIsEnabled =function(v){ wd08e0.m68960(this,v);};pTCmd.OnClick =function(){ wd08e0.m34359(this);};pTCmd.OnAccessKey =function(){ wd08e0.md5121(this);};pTCmd.OnPostBackClick =function(){ wd08e0.m06559(this);};pTCmd.SetPushed =function(val){ wd08e0.mff822(this,val);};pTCmd.Select =function(){ wd08e0.m44859(this);};pTCmd.AttachMenuItem =function(menuItem){ wd08e0.m58b11(this,menuItem);};pTCmd.OnAdd =function(){ wd08e0.m71551(this);};var wd08e0 ={ m12d49:function(v48e29,vbf27) { var v0b845; switch (vbf27) { case "Menu": v0b845 =v48e29._ContextMenu !=null ? v48e29._ContextMenu.RootMenu : v48e29.Menu; break; default: v0b845 =wd71f77.m0ab72(v48e29,vbf27); break; } return v0b845; }, me0884:function(v4fa65,v67376,v08f91,v4f636) { switch (v67376) { case "Visible": v4fa65.SetVisible(v08f91); break; case "IsEnabled": v4fa65.SetIsEnabled(v08f91); break; default: wd71f77.m7b211(v4fa65,v67376,v08f91,v4f636); break; } }, m34359:function(vf5865) { wdee387.m3ec86(vf5865._Bar); vf5865._HtmlObj.fireEvent("onmouseover"); vf5865._HtmlObj.fireEvent("onmousedown"); vf5865._HtmlObj.fireEvent("onmouseup"); if (vf5865.Type =="Button" ||vf5865.Type =="SplitButton") vf5865.CommandStyle.SetToNormal(); wdee387.m35c2(vf5865,"OnClick"); }, md5121:function(vac465) { wdee387.m3ec86(vac465._Bar); vac465._HtmlObj.fireEvent("onmouseover"); vac465._HtmlObj.fireEvent("onmousedown"); vac465._HtmlObj.fireEvent("onmouseup"); vac465._HtmlObj.fireEvent("onmouseout"); }, m06559:function(veed4) { var vfb465 =veed4._OriginalBar ==null ? veed4._Bar : veed4._OriginalBar; var v15476 ="Type='CommandClick'"; v15476 +=":Name='" +veed4.Name +"'"; if (veed4.SelectedMenuItem !=null) v15476 +=":ItemNameHierarchy='" +wd2fc9.m70114(veed4.SelectedMenuItem)+"'"; if (typeof (Page_ClientValidate)=="function") Page_ClientValidate(null,true); if (typeof (Page_BlockSubmit)=="undefined" ||!Page_BlockSubmit) {  __doPostBack(vfb465.ServerUniqueID,v15476); } }, m68960:function(v41259,v36c75) { v41259.IsEnabled =v36c75; v41259._HtmlObj.disabled =!v36c75; if (v41259.Type !="Separator" &&v41259.Type !="Container") { var va4440 =v41259.CommandStyle; var v56565 =va4440.Normal; var v06443 =v41259.CommandDisabledStyle; var va701 =v41259.Get("DisplayMode"); if (v41259.Type =="ToggleButton" &&v41259.Pushed) v56565 =va4440.Active; v41259._HtmlObj.className =(v36c75 ==true)? v56565 : v06443; if (v41259.Type =="DropDownButton" ||v41259.Type =="SplitButton") { var v35c91 =v41259._HtmlObj.children[0]; v35c91.className =(v36c75 ==true)? v56565 : v06443; wdee387.m7d782(v41259,"Normal"); } if (v41259._OriginalBar !=null) { if (v41259.DisplayMode =="Default") va701 =v41259._OriginalBar.DisplayMode; else va701 =v41259.DisplayMode; } if (v41259._Bar.Get("GreyImageWhenDisabled")=="Yes" &&(va701 =="Image" ||va701 =="TextAndImage")) { var v3530 =v41259._HtmlObj.getElementsByTagName("IMG")[0]; if (v36c75) v3530.style.cssText =v3530.style.cssText.replace("FILTER: Alpha(Opacity=50), Gray()",""); else v3530.style.cssText =v3530.style.cssText +";FILTER: Alpha(Opacity=50), Gray()"; } } }, m9c647:function(v27095,v85844,v54a28) { v27095.Visible =v27095._Visible =v27095._PrevVisible =v85844; if (v54a28 ==true) v27095._Bar._UIState =v27095._UIState ="Update"; else { if (v27095._HtmlObj ==null)return; if (v27095.Visible) v27095._Bar._AssignCommandListener(v27095); else Listener.Unload(v27095._HtmlObj); v27095._HtmlObj.style.display =v27095.Visible ? "" : "none"; try { if (v27095._Bar.GetOrientation()=="Horizontal") v27095._HtmlObj.previousSibling.style.display =v27095.Visible ? "" : "none"; else v27095._HtmlObj.offsetParent.rows[marginIndex].style.display =v27095.Visible ? "" : "none"; } catch (e) {}  } }, mff822:function(v5fa31,vf0513) { if (v5fa31.Get("Type")!="ToggleButton" ||v5fa31.IsEnabled ==false)return; if (vf0513 ==true) wd08e0.ma203(v5fa31); else wd08e0.md4773(v5fa31); }, ma203:function(v69f15) { if (v69f15.ToggleGroupName !=null &&v69f15.ToggleGroupName !="") { var v0c115 =wdee387.ma8789(v69f15._Bar,v69f15.ToggleGroupName); if (v0c115 !=null) { v0c115.CommandStyle.SetToNormal(); v0c115.Pushed =false; } } v69f15.CommandStyle.SetToActive(); v69f15.Pushed =true; }, md4773:function(v77695) { v77695.CommandStyle.SetToNormal(); v77695.Pushed =false; if (v77695.ToggleGroupName !=null &&v77695.ToggleGroupName !="") { var va0f15 =v77695._Bar.ToggleGroups.GetNamedItem(v77695.ToggleGroupName); if (va0f15 !=null &&va0f15.ToggleGroupType =="SelectOne") { var v71b54 =wdee387.mfc639(v77695._Bar,v77695.ToggleGroupName); if (v71b54.length >1) { var v77695 =v71b54[0] !=v77695 ? v71b54[0] : v71b54[v71b54.length -1]; v77695.CommandStyle.SetToActive(); v77695.Pushed =true; } } } }, m44859:function(v78a6) { wdee387.m3ec86(v78a6._Bar); v78a6._HtmlObj.fireEvent("onmouseover"); }, m58b11:function(va866,vb572) { if (!vb572.HasSubMenu()) { if (vb572.OnClick !=null) vb572._OnClick =vb572.OnClick; vb572.OnClick ="wdee387.mf7412"; } vb572._ToolCommand =va866; }, m71551:function(v0bf65) { if (v0bf65.IsRendered ==false) { var ve4665 =v0bf65.Parent; wdee387.m18c99(v0bf65.Index,v0bf65,ve4665); v0bf65._Visible =v0bf65.Visible; v0bf65._PrevVisible =v0bf65.Visible; v0bf65._Collection =ve4665.Commands; var va5431 =ISXml.GetAttribute(ve4665.XmlDt.documentElement,"ImageSize"); v0bf65.XmlNode =ISXml.CreateNode(v0bf65._Collection.XmlNode.ownerDocument,v0bf65._Collection.XmlNode,"ToolCommand",""); wd08e0.mdf073(v0bf65); if (va5431 !="" &&va5431 !=null) v0bf65.ImageSize.Parse(va5431); if (v0bf65.Type =="DropDownButton" ||v0bf65.Type =="SplitButton") wdee387.md0a24(v0bf65); } }, mdf073:function(v01620) { var v86036 =v01620.XmlNode; if (v86036 ==null) return; var v80570 =v86036.ownerDocument; var v2e336 =null; for (k in v01620) { if (v01620[k] !=null &&k !="Parent" &&k !="XmlNode" &&k.indexOf("_")!=0) { if (typeof (v01620[k])!="object") { if (v01620[k] !="") { v2e336 =v80570.createAttribute(k); v2e336.value =v01620[k].toString(); v86036.attributes.setNamedItem(v2e336); } } } } }};var wdee387 = { IsWindowLoaded: false, m42c76:function(ve9814,v42873,vec737) { var v88e14 =ISGetObject(ve9814); if (v88e14 !=null) return v88e14; v88e14 =new WebToolBar(ve9814); v88e14.Name =ve9814; if (vec737 ==true)v88e14.NewCreatedMergeChildBar =true; wdee387.mc8374(v88e14); if (v42873 !=null)v88e14.PlaceHolder =v42873; if (wdee387.IsWindowLoaded) { v88e14.OnPostInitialized(); v88e14.IsOnPostInitialized =true; } return v88e14; }, medf82:function(vb1289) { if ((vb1289.MergeToolBar ==null ||vb1289.MergeToolBar ==false ||vb1289.NewCreatedMergeChildBar)&&vb1289.PlaceHolder !="") { var vfb369 =ISGetObject(vb1289.PlaceHolder); if (vfb369 ==null) { try { if (typeof (InitPlaceHolderManager)=="function") InitPlaceHolderManager(vb1289.PlaceHolder); } catch (e) { var v9b452; for (i in IS.RuntimeObjects) { v9b452 =IS.RuntimeObjects[i]; if (v9b452.Id ==vb1289.PlaceHolder) { delete IS.RuntimeObjects[i]; break; } } if (vb1289.Id.indexOf("_")>-1 &&typeof (InitPlaceHolderManager)=="function") InitPlaceHolderManager(vb1289.Id.substr(0,vb1289.Id.lastIndexOf("_")+1)+vb1289.PlaceHolder); } vfb369 =ISGetObject(vb1289.PlaceHolder); } wdee387.me1772(vb1289); if (vfb369 !=null) { if (vfb369.IsPostBack) wdee387.mf5084(vb1289); vfb369.RegisterBar(vb1289); } vb1289._UIState =""; } wdee387.mec349(vb1289); if (vb1289.Opacity !=1) vb1289.Set("Opacity",vb1289.Opacity); }, m27f47:function(vb2c89) { if (IS.safari ||IS.opera) { if (vb2c89.MergeToolBar ==true) wdee387.m63485(vb2c89,true); else { if (vb2c89._prntPHM !=null) wdee387.m63485(vb2c89,true); else { if (vb2c89._IsAddedWithMergedCommands ==true) { if (vb2c89._ChildBars !=null) { for (var i in vb2c89._ChildBars) { wdee387.m63485(vb2c89._ChildBars[i],true); vb2c89._ChildBars[i] =null; } } } } } } }, m92086:function(v4a68) { var v32589 =v4a68.Commands; for (var v9c461 =0; v9c461 <v32589.length; v9c461++) { if (v32589[v9c461]._HtmlObj ==null)continue; v32589[v9c461]._Bar =v4a68; v32589[v9c461].Set("Visible",true); if (v32589[v9c461]._HtmlObj !=null) { Listener.Unload(v32589[v9c461]._HtmlObj); } if (v32589[v9c461]._ContextMenu !=null) { v32589[v9c461]._ContextMenu.OnRootMenuClosed =null; } } Listener.Unload(document.getElementById(v4a68.Id +wdb0126.BarHandleSuffix +"_Vertical")); Listener.Unload(document.getElementById(v4a68.Id +wdb0126.BarHandleSuffix +"_Horizontal")); var vaa489 =document.getElementById(v4a68.Id +IS.FrameHeaderSuffix); if (vaa489 !=null) { Listener.Unload(vaa489); Listener.Unload(vaa489.offsetParent); Listener.Unload(vaa489.parentNode.parentNode); } try { v4a68._ClearMergedCommands(); v4a68.UpdateUI(true); } catch (e) {} Listener.Unload(document.body); window.detachEvent("onresize",function(){DoWebToolBarResize(v4a68); }); }, m3ec86:function(vbd10) { var v62580; for (var vbb910 =0; vbb910 <vbd10.Commands.length; vbb910++) { v62580 =vbd10.Commands[vbb910]; if (v62580.IsEnabled ==true &&(v62580.Type =="Button" ||v62580.Type =="DropDownButton" ||v62580.Type =="SplitButton")) { if ((v62580.Type =="SplitButton" ||v62580.Type =="DropDownButton")&&v62580._ContextMenu !=null &&v62580._ContextMenu.RootMenu.IsOpen()) { } else { v62580.CommandStyle.SetToNormal(); } wdee387.m7d782(this,"Normal"); } } }, m12b38:function(v75474,vb038,v5d211) { var vf3119 =new Array(); var v4ab29; if (v75474.getAttribute(vb038)==v5d211)vf3119[vf3119.length] =v75474; var v35d26 =v75474.children; for (var v1fb74 =0; v1fb74 <v35d26.length; v1fb74++) { v4ab29 =wdee387.m12b38(v35d26[v1fb74],vb038,v5d211); if (v4ab29.length >0) { for (var v99b54 =0; v99b54 <v4ab29.length; v99b54++) { vf3119[vf3119.length] =v4ab29[v99b54]; } } } return vf3119; }, m5ea47:function(v97b30) { var vbd330; if (v97b30._Bar.GetOrientation()=="Horizontal") vbd330 =v97b30._HtmlObj.children[0].rows[0].cells[1]; else vbd330 =v97b30._HtmlObj.children[0].rows[1].cells[0]; return vbd330; }, mee452:function(v34230) { var v51b30 =document.getElementById(v34230.Id +IS.FrameHeaderSuffix); v51b30.cells[0].className =v34230.HeaderCaptionStyle; v51b30.cells[1].className =v51b30.cells[2].className =v34230.HeaderOptionButtonStyle.Normal; }, m76838:function(v6ec85,v3d866,v80c82,v17c84,vd5a20) { var v30514 =wdee387.m12b38(v6ec85.FrameObj,v80c82,v17c84); var v7d827; for (var vbeb45 =0; vbeb45 <v30514.length; vbeb45++) { v7d827 =v30514[vbeb45]; if (vd5a20) v7d827.style.backgroundColor =v7d827.style.color =v3d866.ForeColor; else v7d827.style.color =v3d866.ForeColor; } }, m2ce81:function(v5af24,v26286,v68016,v96f7) { var v3dc41 =wdee387.m12b38(v5af24.FrameObj,v68016,v96f7); var v7a845; var v40a67 =v26286.BackColor2 !=null &&v26286.BackColor2 !="" &&IS.ie ==true; var vfc987; var v26942 =document.getElementById(v5af24.Id +"_f_Horizontal"); for (var v0f317 =0; v0f317 <v3dc41.length; v0f317++) { v7a845 =v3dc41[v0f317]; if (v40a67 ==false) v7a845.style.backgroundColor =v26286.BackColor; else { vfc987 =v26942.contains(v7a845)? "h" : "v"; wdee387.ma7e66(v7a845,vfc987,v26286); } } }, ma7e66:function(vf0f55,v32253,vb6e53) { var v6f380 =false; var v74865; if (v32253 =="h") v74865 =vb6e53.GradientType =="Horizontal" ? "1" : "0"; else v74865 =vb6e53.GradientType =="Horizontal" ? "0" : "1"; for (var va8f1 =0; va8f1 <vf0f55.filters.length; va8f1++) { if (vf0f55.filters[va8f1].GradientType !=undefined) { var vae110 =vf0f55.filters[va8f1]; vae110.StartColorStr =vb6e53.BackColor; vae110.EndColorStr =vb6e53.BackColor2; vae110.GradientType =v74865; v6f380 =true; break; } } if (v6f380 ==false) { var vae741 =";filter: progid:DXImageTransform.Microsoft.gradient(StartColorStr=" +vb6e53.BackColor +" , EndColorStr=" +vb6e53.BackColor2 +", GradientType=" +v74865 +")"; vf0f55.style.cssText +=vae741; } }, m4b648:function(ve3b46) { var v90910; for (var v62e32 =0; v62e32 <ve3b46.Commands.length; v62e32++) { v90910 =ve3b46.Commands[v62e32]; if (v90910.Type !="Separator") { var cn,cnf; if (v90910.IsEnabled) { cn =ve3b46.CommandStyle.Normal; cnf =ve3b46.CommandFontStyle.Normal; } else { cn =ve3b46.CommandDisabledStyle; cnf =ve3b46.CommandDisableFontStyle; } switch (v90910.Type) { case "Button": v90910._HtmlObj.className =cn; break; case "DropDownButton": case "SplitButton": v90910._HtmlObj.className =cn; v90910._HtmlObj.children[0].className =cnf; break; } } else v90910._HtmlObj.className =ve3b46.SeparatorStyle; } }, m61614:function(ve7f46) { wdee387.mee452(ve7f46); wdee387.m2ce81(ve7f46,ve7f46.HandleStyle,"handleBgColor","true"); wdee387.m76838(ve7f46,ve7f46.HandleStyle,"handleForeColor","true",true); wdee387.m2ce81(ve7f46,ve7f46.BodyStyle,"bodyBgColor","true"); wdee387.m2ce81(ve7f46,ve7f46.OptionStyle,"optionBgColor","true"); wdee387.m76838(ve7f46,ve7f46.OptionStyle,"optionForeColor","true",false); wdee387.m4b648(ve7f46); }, mc8374:function(v7e930) { if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") { if (typeof (IS_ReleaseType)!="undefined" &&IS_ReleaseType =="Beta") { v7e930.ScriptDirectory ="/CommonLibraryBeta/WebDesktop/V3_0_7200/"; v7e930.ImagesDirectory ="/CommonLibraryBeta/Images/WebDesktop/"; } }  v7e930._HtmlObjV =document.getElementById(v7e930.Id +IS.FrameSuffix +"_Vertical"); v7e930._HtmlObjV_tbl =document.getElementById(v7e930.Id +wdb0126.BarInnerContainerSuffix +"_Vertical"); v7e930._HtmlObjH =document.getElementById(v7e930.Id +IS.FrameSuffix +"_Horizontal"); v7e930._HtmlObjH_tbl =document.getElementById(v7e930.Id +wdb0126.BarInnerContainerSuffix +"_Horizontal"); var v79646 =v7e930.XmlDt.documentElement; if (v79646 !=null)IS.SetPropertiesRecursive(v7e930,v79646); v7e930.OldDockingArea =v7e930.DockingArea; v7e930.OldDockingRow =v7e930.DockingRow; v7e930.OldIsFloat =v7e930.IsFloat; if (v7e930.DockingArea =="Left" ||v7e930.DockingArea =="Right")v7e930._IsHorizontal =false; var v21d2 =v7e930.FrameObj; v7e930.IsFloat1 =v7e930.IsFloat; v7e930.IsFloat =v21d2.style.position =="absolute" ? "Yes" : "No"; if (v7e930.Get("FillDockingRow")=="No" &&v7e930.Get("IsFloat1")=="No") { var v87956 =v7e930.FrameObj.offsetParent; v7e930._PlaceHolderMaxDimensionWidth =v87956.offsetWidth; v7e930._PlaceHolderMaxDimensionHeight =v87956.offsetHeight; } if (v7e930.Get("FillDockingRow")=="Yes")v7e930.DockingOffset =0; }, mec349:function(vcc140) { var vc9485 =vcc140.XmlDt.documentElement; vcc140.CommandStyle =DynamicStyleEngine.Assign(vc9485.selectSingleNode("CommandStyle"),null); vcc140.CommandFontStyle =DynamicStyleEngine.Assign(vc9485.selectSingleNode("CommandFontStyle"),null); if (vcc140.MenuStyleSettings !=null) { var vdf321 =ISXml.GetNode(vcc140.XmlDt,"//MenuStyleSettings"); if (vdf321 !=null) IS.SetPropertiesRecursive(vcc140.MenuStyleSettings,vdf321); else vcc140._IsCreateDefaultMenuStyles =true; } var v12390 =ISXml.GetAttribute(vc9485,"ImageSize"); if (v12390 !="" &&v12390 !=null) vcc140.ImageSize.Parse(v12390); wdee387.m2b961(vcc140); wdee387.m14516(vcc140); var v6ee43 =document.getElementById(vcc140.Id +IS.FrameHeaderSuffix).parentNode.parentNode; vcc140.HeaderOptionButtonStyle =DynamicStyleEngine.Assign(vc9485.selectSingleNode("HeaderButtonStyle"),v6ee43.rows[0].cells[1]); vcc140.HeaderCloseButtonStyle =DynamicStyleEngine.Assign(vc9485.selectSingleNode("HeaderButtonStyle"),v6ee43.rows[0].cells[2]); if (vcc140.Get("MergeToolBar")!=true) { Listener.Add(v6ee43,"onmouseover",wdee387.m0d584,vcc140); Listener.Add(v6ee43,"onmouseout",wdee387.mdfd18,vcc140); Listener.Add(v6ee43,"onmousedown",wdee387.mc0c59,vcc140); Listener.Add(v6ee43,"onmouseup",wdee387.m0d584,vcc140); Listener.Add(v6ee43,"ondblclick",wdee387.m87142,vcc140); window.attachEvent("onresize",function(){DoWebToolBarResize(vcc140); }); } if (!vcc140.LazyLoadContextMenu) wdee387.m86188(vcc140); }, m86188:function(vc7c60) { if (vc7c60.MergeToolBar ==true) return;  var ve0d76 =vc7c60.Commands; for (var v53870 =0; v53870 <ve0d76.length; v53870++) { if (ve0d76[v53870].Type =="DropDownButton" ||ve0d76[v53870].Type =="SplitButton") wdee387.md0a24(ve0d76[v53870]); } }, mba076:function(v5e615) { var v04b60 =v5e615.MenuControl; var vfab10 =v04b60._ToolCommand; vfab10.CommandStyle.SetToNormal(); wdee387.m7d782(vfab10,"Normal"); if (vfab10.Type =="SplitButton" ||vfab10.Type =="DropDownButton") { var v21a42 =vfab10._HtmlObj.children[0]; if (v21a42 !=null)v21a42.className =vfab10.CommandFontStyle.Normal; } }, md0a24:function(v9d135) { if (v9d135.Menu ==null)v9d135.Menu =new WebMenu(); wdee387.m57d92(v9d135); wdee387.m5d826(v9d135); wdee387.mf3154(v9d135,v9d135.Menu.Items); var vaf815 =new WebContextMenu(v9d135.Name +"ContextMenu"); v9d135.Menu.MenuControl =vaf815; v9d135.Items =v9d135.Menu.Items; vaf815.SetOffsetElement(v9d135._HtmlObj); vaf815.RootMenu =v9d135.Menu; vaf815.Items =v9d135.Menu.Items; vaf815.MenuStyleSettings =v9d135._Bar.MenuStyleSettings; vaf815.OnRootMenuClosed ="wdee387.mba076"; vaf815._ToolCommand =v9d135; vaf815.IntegratedToBar =true; vaf815.RefreshStructure(); if (v9d135._Bar._IsCreateDefaultMenuStyles ==true) {  if (v9d135._Bar.IntegratedTo =="None" ||v9d135._Bar.PlaceHolder =="") wdee387.m31660(v9d135._Bar.Id,vaf815.MenuStyleSettings); } if ((!v9d135._Bar._IsMenuStyleCreated &&v9d135._Bar.IntegratedTo =="None")||(v9d135._Bar.IntegratedTo =="PlaceHolderManager" &&v9d135._Bar.PlaceHolder !="" &&!v9d135._Bar.PlaceHolderManager._IsMenuStyleCreated)) { vaf815.CreateDefaultStyles(); if (v9d135._Bar.IntegratedTo =="None" ||v9d135._Bar.PlaceHolder =="") v9d135._Bar._IsMenuStyleCreated =true; else if (v9d135._Bar.PlaceHolderManager !=null) v9d135._Bar.PlaceHolderManager._IsMenuStyleCreated =true; } v9d135._ContextMenu =vaf815; }, m31660:function(v6a57,v10a37) { v10a37.FrameStyle =v6a57 +"_FrameStyle"; v10a37.ItemStyle.Normal =v6a57 +"_ItemStyle_Normal"; v10a37.ItemStyle.Over =v6a57 +"_ItemStyle_Over"; v10a37.CheckedItemStyle.Normal =v6a57 +"_CheckedItemStyle_Normal"; v10a37.CheckedItemStyle.Over =v6a57 +"_CheckedItemStyle_Over"; v10a37.DisabledItemStyle.Normal =v6a57 +"_DisabledItemStyle_Normal"; v10a37.DisabledItemStyle.Over =v6a57 +"_DisabledItemStyle_Over"; v10a37.SeparatorStyle =v6a57 +"_SeparatorStyle"; }, m57d92:function(v4b57) { if (v4b57.XmlNode !=null) { var v7f07 =v4b57.XmlNode.selectSingleNode("Menu"); if (v7f07 !=null) { IS.SetProperties(v4b57.Menu,v7f07); } } }, m5d826:function(v6d17) { if (v6d17.XmlNode !=null) { var v1bb7 =v6d17.XmlNode.selectSingleNode("Items"); if (v1bb7 !=null) { wdee387.m2c376(v6d17.Menu.Items,v1bb7); } } }, m2c376:function(vbf37,v0b437) { for (var va1b7 =0; va1b7 <v0b437.childNodes.length; va1b7++) { vbf37.Add(wdee387.mc5556(v0b437.childNodes[va1b7],vbf37)); } }, mc5556:function(v42481,v1fb26) { var v0e646 =new WebMenuItem(); var vae257; v0e646.Parent =v1fb26.Parent; IS.SetPropertiesRecursive(v0e646,v42481); return v0e646; }, mf3154:function(vcac65,v82466) { var vf5f65; for (var vb7c66 =0; vb7c66 <v82466.length; vb7c66++) { vf5f65 =v82466[vb7c66]; vcac65.AttachMenuItem(vf5f65); wdee387.mf3154(vcac65,vf5f65.Items); } }, mf7412:function(v7ea1) { var v7ae65 =v7ea1._ToolCommand; var vfb066 =v7ae65._Bar; var v5a832 =true; v7ae65.SelectedMenuItem =v7ea1; if (v7ea1._OnClick) v5a832 =ISEvent.Raise(v7ea1._OnClick,v7ea1); if (v5a832) { var v9df41 =v7ae65._MergeCommand ? v7ae65._OriginalBar : vfb066; if (v9df41 !=null &&v9df41.CommandClientSideEvents !=null) { if (v9df41.CommandClientSideEvents.OnClick !="") v5a832 =wdee387.m35c2(v7ae65,"OnClick"); else if (v9df41.CommandClientSideEvents.OnMouseUp !="") v5a832 =wdee387.m35c2(v7ae65,"OnMouseUp"); } if (v5a832) wdee387.mdd065(v7ae65,v7ea1); } v7ae65.SelectedMenuItem =null; }, m35c2:function(v0dd37,v9955) { var v82f1 =v0dd37._Bar; var v8c036 =v82f1.CommandClientSideEvents[v9955]; if (v8c036 ==null)return; if (v0dd37._MergeCommand) { try { v8c036 =v0dd37._OriginalBar.CommandClientSideEvents[v9955]; if (v8c036 !=null) return v0dd37._OriginalMergeToolBarWindow.ISEvent.Raise(v8c036,v82f1.Id,v0dd37); else return null; } catch (e){} } else return ISEvent.Raise(v8c036,v82f1.Id,v0dd37); }, mdd065:function(vd9b31,ve223) { if (vd9b31._Bar &&vd9b31._Bar.Get ==null)return; if (vd9b31.Get("AutoPostBack")=="Yes" ||(ve223 &&ve223.AutoPostBack =="Yes")) vd9b31.OnPostBackClick(); }, m14516:function(v97f67) { var vc9b31 =v97f67.ToggleGroups; var v52b3; for (var v65b87 =0; v65b87 <vc9b31.length; v65b87++) { v52b3 =vc9b31[v65b87]; v52b3.Index =v65b87; } }, m97699:function(va2d51,v40f13) { if (v40f13 ==null)return; var v10767; if (v40f13.constructor ==Array ||typeof (v40f13.length)=="number") { for (var v26473 =0; v26473 <v40f13.length; v26473++) { v10767 =va2d51.Commands.GetNamedItem(v40f13[v26473]); v10767.SetIsEnabled(true); } } else { v10767 =typeof (v40f13)=="object" ? v40f13 : va2d51.Commands.GetNamedItem(v40f13); if (v10767 !=null)v10767.SetIsEnabled(true); } }, m26798:function(v0456,v4a392) { if (v4a392 ==null)return; var vd3f51; if (v4a392.constructor ==Array ||typeof (v4a392.length)=="number") { for (var v45813 =0; v45813 <v4a392.length; v45813++) { vd3f51 =v0456.Commands.GetNamedItem(v4a392[v45813]); vd3f51.SetIsEnabled(false); } } else { vd3f51 =typeof (v4a392)=="object" ? v4a392 : v0456.Commands.GetNamedItem(v4a392); if (vd3f51 !=null)vd3f51.SetIsEnabled(false); } }, m87142:function() { if (this._PrevDockingArea =="")return; this.DockingArea =this._PrevDockingArea; this.DockingRow =this._PrevDockingRow; this.FrameObj.DragTargetId =this._PrevDragTargetId; this._Dock(); }, m0d584:function() { if (window.event ==null)return; var v8f36 =window.event.srcElement; var v0dd92 =document.getElementById(this.Id +IS.FrameHeaderSuffix).offsetParent; if (v0dd92.rows[0].cells[1].contains(v8f36)) this.HeaderOptionButtonStyle.SetToOver(); else { if (v0dd92.rows[0].cells[2].contains(v8f36)) this.HeaderCloseButtonStyle.SetToOver(); } }, mdfd18:function() { if (window.event ==null)return; var v6a326 =window.event.srcElement; var vdd42 =document.getElementById(this.Id +IS.FrameHeaderSuffix).offsetParent; try { if (vdd42.rows[0].cells[1].contains(v6a326)) this.HeaderOptionButtonStyle.SetToNormal(); else { if (vdd42.rows[0].cells[2].contains(v6a326)) this.HeaderCloseButtonStyle.SetToNormal(); } } catch (e) { } }, mc0c59:function() { if (window.event ==null)return; var v09f26 =window.event.srcElement; var vbe92 =document.getElementById(this.Id +IS.FrameHeaderSuffix).offsetParent; if (vbe92.rows[0].cells[1].contains(v09f26)) this.HeaderOptionButtonStyle.SetToActive(); else { if (vbe92.rows[0].cells[2].contains(v09f26)) this.HeaderCloseButtonStyle.SetToActive(); } }, mcd814:function(v3fb83) { if (v3fb83.IsRuntimeBar ==true &&v3fb83._ReBinding ==true) return; var v18f62 =v3fb83.XmlDt.documentElement; if (v18f62 !=null) { v3fb83.Style1 =v3fb83.FrameObj.style.cssText; v3fb83.NewDockingArea =v3fb83.DockingArea; v3fb83.NewDockingRow =v3fb83.DockingRow; v3fb83.NewIsFloat =v3fb83.IsFloat; v3fb83.DockingArea =v3fb83.OldDockingArea; v3fb83.DockingRow =v3fb83.OldDockingRow; v3fb83.IsFloat =v3fb83.OldIsFloat; IS.SetPropertiesToXml(v3fb83,v18f62); if (v3fb83.IsRuntimeBar ==true) { var v2e471 =v3fb83.XmlDt.documentElement.attributes.getNamedItem("Id"); if (v2e471 ==null) { v2e471 =v3fb83.XmlDt.createAttribute("Id"); v2e471.text =v3fb83.Id; v3fb83.XmlDt.documentElement.attributes.setNamedItem(v2e471); } } if (v3fb83.XmlDt.documentElement.attributes.getNamedItem("ImageSize")!=null &&!v3fb83.ImageSize.IsEmpty()) v3fb83.XmlDt.documentElement.attributes.getNamedItem("ImageSize").value =parseFloat(v3fb83.ImageSize.Width)+", " +parseFloat(v3fb83.ImageSize.Height); var va9e25 =v3fb83.Commands; if (v3fb83.Get("AllowCustomize")=="No" &&v3fb83.IsRuntimeToolCommandCreated ==false) { var v5d719 =wdee387.m8ab19(v3fb83); var vdc83 =""; var v21f78 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v21f78,v3fb83.XmlDt.xml); if (v5d719.length ==0) { var v0c344 =ISXml.GetNode(v21f78,"//Commands"); v21f78.documentElement.removeChild(v0c344); } else { for (var vaa582 =0; vaa582 <va9e25.length; vaa582++) { var vcee64 =ISXml.GetNode(v21f78,"//ToolCommand[@Name='" +va9e25[vaa582].Name +"']"); if (vcee64) { ISXml.RemoveNode(vcee64,"Menu"); ISXml.RemoveNode(vcee64,"Items"); var vf0830 =vcee64.attributes.length; for (var vc3e75 =0; vc3e75 <vf0830; vc3e75++) vcee64.removeAttribute(vcee64.attributes[0].name); ISXml.SetAttribute(vcee64,"Name",va9e25[vaa582].Name);  if (va9e25[vaa582].Type =="ToggleButton") ISXml.SetAttribute(vcee64,"Pushed",va9e25[vaa582].Pushed ? "True" : "False"); if (vcee64.attributes.getNamedItem("ImageSize")!=null &&!va9e25[vaa582].ImageSize.IsEmpty()) vcee64.attributes.getNamedItem("ImageSize").value =parseFloat(va9e25[vaa582].ImageSize.Width)+", " +parseFloat(va9e25[vaa582].ImageSize.Height); } } } ISBarCommon.RemoveStyleNodes(v21f78.firstChild); v3fb83.CustomStateString =v21f78.xml;  } else { for (var vaa582 =0; vaa582 <va9e25.length; vaa582++) { IS.SetPropertiesToXml(va9e25[vaa582],va9e25[vaa582].XmlNode); var vcee64 =va9e25[vaa582].XmlNode; if (vcee64.attributes.getNamedItem("ImageSize")!=null &&!va9e25[vaa582].ImageSize.IsEmpty()) vcee64.attributes.getNamedItem("ImageSize").value =parseFloat(va9e25[vaa582].ImageSize.Width)+", " +parseFloat(va9e25[vaa582].ImageSize.Height); }  var v21f78 =ISXml.CreateXmlDocument(); ISXml.LoadXml(v21f78,v3fb83.XmlDt.xml); ISBarCommon.RemoveStyleNodes(v21f78.firstChild); v3fb83.CustomStateString =v21f78.xml; } } }, me1772:function(v44642) { var veac67 =v44642.PlaceHolder; if (veac67 !=null &&veac67 !="") { var v57c27 =v44642.PlaceHolderManager ==null ? ISGetObject(veac67): v44642.PlaceHolderManager; if (v57c27 ==null)InitPlaceHolderManager(veac67); v57c27 =ISGetObject(veac67); if (v57c27 !=null) v44642.PlaceHolderManager =v57c27; if (v57c27 !=null &&v44642.Get("HandleVisible")=="Yes") { var v1c514 =""; if (v44642.Get("AllowDockTop")=="Yes") { for (var vc2652 =v57c27.MaxDockingRows -1; vc2652 >-1; vc2652--) { v1c514 +=v57c27.Id +wd3a682.PlaceHolderManagerTopDockingAreaSuffix +wd3a682.PlaceHolderManagerTableDockingAreaSuffix +"_" +vc2652 +";"; } } if (v44642.Get("AllowDockRight")=="Yes") { for (var vc2652 =v57c27.MaxDockingRows -1; vc2652 >-1; vc2652--) { v1c514 +=v57c27.Id +wd3a682.PlaceHolderManagerRightDockingAreaSuffix +wd3a682.PlaceHolderManagerTableDockingAreaSuffix +"_" +vc2652 +";"; } } if (v44642.Get("AllowDockBottom")=="Yes") { for (var vc2652 =v57c27.MaxDockingRows -1; vc2652 >-1; vc2652--) { v1c514 +=v57c27.Id +wd3a682.PlaceHolderManagerBottomDockingAreaSuffix +wd3a682.PlaceHolderManagerTableDockingAreaSuffix +"_" +vc2652 +";"; } } if (v44642.Get("AllowDockLeft")=="Yes") { for (var vc2652 =v57c27.MaxDockingRows -1; vc2652 >-1; vc2652--) { v1c514 +=v57c27.Id +wd3a682.PlaceHolderManagerLeftDockingAreaSuffix +wd3a682.PlaceHolderManagerTableDockingAreaSuffix +"_" +vc2652 +";"; } } if (v1c514.length >0)v1c514 =v1c514.substr(0,v1c514.length -1); } if (v44642.Get("AllowMove")=="Yes" &&v44642.Get("HandleVisible")=="Yes") ISDrag.Register(v44642.Id +IS.FrameSuffix,v44642.Id +wdb0126.BarHandleSuffix +"_Vertical;" +v44642.Id +wdb0126.BarHandleSuffix +"_Horizontal",wdee387.mbdf84,wdee387.m09122,wdee387.m0a129,v1c514); } if (v44642.Get("AllowMove")=="Yes") ISDrag.Register(v44642.Id +IS.FrameSuffix,v44642.Id +IS.FrameHeaderSuffix,wdee387.mbdf84,wdee387.m09122,wdee387.m0a129,v1c514); }, m9f761:function(v27178) { if (v27178._Text !=v27178.Text)v27178._Text =v27178.Text; if (v27178._Image !=v27178.Image)v27178._Image =v27178.Image; var v34242 =v27178.Get("Type"); if (v34242 =="Button" ||v34242 =="ToggleButton") { switch (v27178.Get("DisplayMode")) { case "Text": var v73d16 =v27178._HtmlObj.children[0]; v73d16.innerHTML =wdee387.m40328(v27178); break; case "Image": var v73d16 =v27178._HtmlObj; v73d16.innerHTML =wdee387.m74288(v27178); break; case "TextAndImage": var v73d16 =v27178._HtmlObj; v73d16.innerHTML =wdee387.m7e340(v27178); break; } } else { if (v34242 =="DropDownButton" ||v34242 =="SplitButton") { switch (v27178.Get("DisplayMode")) { case "Text": var v73d16 =v27178._HtmlObj.children[0].rows[0].cells[0].children[0]; v73d16.innerHTML =wdee387.m40328(v27178); break; case "Image": var v73d16 =v27178._HtmlObj.children[0].rows[0].cells[0]; v73d16.innerHTML =wdee387.m74288(v27178); break; case "TextAndImage": var v73d16 =v27178._HtmlObj.children[0].rows[0].cells[0]; v73d16.innerHTML =wdee387.m7e340(v27178); break; } } } }, m40328:function(v07933) { var v2e697 ="&nbsp;"; if (v07933.AccessKey ==null ||v07933.AccessKey =="") v2e697 +=v07933.Text; else { var vb0b95 =v07933.Text.toLowerCase().indexOf(v07933.AccessKey.toLowerCase()); if (vb0b95 >-1) { v2e697 +=v07933.Text.substr(0,idx); v2e697 +="<u>"; v2e697 +=v07933.Text.substr(idx,1); v2e697 +="</u>"; v2e697 +=v07933.Text.substr(idx +1); } else v2e697 +=v07933.Text; } return v2e697; }, m74288:function(v85153,v4b474) { var v7f317 =v85153.Get("ImageSize"); var v2cf5 ="<img align='absmiddle' style='overflow:hidden;width:"; v2cf5 +=v7f317.Width; v2cf5 +=";height:"; v2cf5 +=v7f317.Height; if (v4b474 !=null) v2cf5 +=v4b474 +";"; v2cf5 +="' src='"; v2cf5 +=v85153.Image; v2cf5 +="'/>"; return v2cf5; }, m7e340:function(v1bf88) { var v06388 =""; if (v1bf88._Bar.GetOrientation()=="Horizontal") { switch (v1bf88.Get("TextAlign")) { case "Left": v06388 +=wdee387.m40328(v1bf88); v06388 +="&nbsp;"; v06388 +=wdee387.m74288(v1bf88); break; case "Right": v06388 +=wdee387.m74288(v1bf88); v06388 +="&nbsp;"; v06388 +=wdee387.m40328(v1bf88); break; case "Above": v06388 +=wdee387.m40328(v1bf88); v06388 +=wdee387.m74288(v1bf88,";display:block"); break; case "Underneath": v06388 +=wdee387.m74288(v1bf88,";display:block"); v06388 +=wdee387.m40328(v1bf88); break; } } else { switch (v1bf88.Get("TextAlign")) { case "Left": v06388 +=wdee387.m40328(v1bf88); v06388 +=wdee387.m74288(v1bf88); break; case "Right": v06388 +=wdee387.m74288(v1bf88); v06388 +=wdee387.m40328(v1bf88); break; case "Above": v06388 +="<div nowrap style='writing-mode:tb-rl'>"; v06388 +=wdee387.m40328(v1bf88); v06388 +=wdee387.m74288(v1bf88,";display:block"); v06388 +="</div>"; break; case "Underneath": v06388 +="<div nowrap style='writing-mode:tb-rl'>"; v06388 +=wdee387.m74288(v1bf88,";display:block"); v06388 +=wdee387.m40328(v1bf88); v06388 +="</div>"; break; } } return v06388; }, m29121:function(v94172) { var vd2588 =-1; var v6f244 =v94172.offsetParent; for (var v52f55 =0; v52f55 <v6f244.children.length; v52f55++) { if (v6f244.children[v52f55] ==v94172) { vd2588 =v52f55; break; } } return vd2588; }, mbdf84:function(ve6944) { if (isNaN(parseFloat(ve6944.style.left)))ve6944.style.left =ISPosLib.getLeft(ve6944); if (isNaN(parseFloat(ve6944.style.top)))ve6944.style.top =ISPosLib.getTop(ve6944); if (ve6944.dragAreaId.indexOf(wdb0126.BarHandleSuffix)>-1) ve6944.IsDrop =ve6944.style.position =="" ||ve6944.style.position =="static"; else ve6944.IsDrop =false; var v23944 =ISGetObject(ve6944.id.replace(IS.FrameSuffix,"")); if (v23944 !=null &&v23944.PlaceHolderManager !=null)v23944.PlaceHolderManager.IsDraggingChild =true; }, m09122:function(v5dc63,v4bc32,v89a7) { if (!v5dc63.IsInDragArea) { if (v5dc63.IsDrop) { var v13327 =ISGetObject(v5dc63.id.replace(IS.FrameSuffix,"")); var v98563 =false; if (v13327) { v13327._ChildIdx =wdee387.m29121(v5dc63); v13327._OffsetParent =v5dc63.offsetParent; v98563 =v13327._UnDock(); } if (v98563) { v5dc63.IsReCalculateDragArea =true; v5dc63.style.left =v5dc63.DragX +"px"; v5dc63.style.top =v5dc63.DragY +"px"; v5dc63.DragWidth =ISPosLib.getWidth(v5dc63); v5dc63.DragHeight =ISPosLib.getHeight(v5dc63); v5dc63.IsDrop =false; } else { if (isNaN(parseFloat(v5dc63.style.left))) v5dc63.style.left =ISPosLib.getLeft(v5dc63)+"px"; if (isNaN(parseFloat(v5dc63.style.top))) v5dc63.style.top =ISPosLib.getTop(v5dc63)+"px"; v5dc63.style.left =parseFloat(v5dc63.style.left)+v4bc32 +"px"; v5dc63.style.top =parseFloat(v5dc63.style.top)+v89a7 +"px"; } } else { if (isNaN(parseFloat(v5dc63.style.left))) v5dc63.style.left =ISPosLib.getLeft(v5dc63)+"px"; if (isNaN(parseFloat(v5dc63.style.top))) v5dc63.style.top =ISPosLib.getTop(v5dc63)+"px"; v5dc63.style.left =parseFloat(v5dc63.style.left)+v4bc32 +"px"; v5dc63.style.top =parseFloat(v5dc63.style.top)+v89a7 +"px"; } } else { var v13327 =ISGetObject(v5dc63.id.replace(IS.FrameSuffix,"")); if (v5dc63.IsDrop ==false) { if (v13327._Dock()==true) { v13327._ChildIdx =wdee387.m29121(v5dc63); v5dc63.IsReCalculateDragArea =true; v5dc63.IsDrop =true; v5dc63.dropAreaId =v5dc63.dragAreaId; v5dc63.DragWidth =ISPosLib.getWidth(v5dc63); v5dc63.DragHeight =ISPosLib.getHeight(v5dc63); } else { if (isNaN(parseFloat(v5dc63.style.left))) v5dc63.style.left =ISPosLib.getLeft(v5dc63)+"px"; if (isNaN(parseFloat(v5dc63.style.top))) v5dc63.style.top =ISPosLib.getTop(v5dc63)+"px"; v5dc63.style.left =parseFloat(v5dc63.style.left)+v4bc32 +"px"; v5dc63.style.top =parseFloat(v5dc63.style.top)+v89a7 +"px"; } } else { if (v13327._CheckingDockingArea())v13327._ChildIdx =wdee387.m29121(v5dc63); } } }, m0a129:function(vcd02) { var v77419 =ISGetObject(vcd02.id.replace(IS.FrameSuffix,"")); if (v77419) { if (vcd02.IsInDragArea) { v77419._ChildIdx =wdee387.m29121(vcd02); vcd02.IsDrop =true; } else { if (!v77419.Get("AllowFloat")=="Yes") { if (typeof (wd3a682)=="") wd3a682.mc585(v77419,vcd02); v77419._SetToStaticDisplay(); vcd02.IsDrop =true; } } if (v77419.PlaceHolderManager !=null) v77419.PlaceHolderManager.IsDraggingChild =false; } }, md6e23:function(vbbc74) { var v2032 =vbbc74._HtmlObj.children[0]; var v94b52 =v2032.rows[0].insertCell(1); var v28a41 =v2032.rows[1].cells[0]; v94b52.style.width =v28a41.style.height; v94b52.style.height =""; v94b52.style.paddingLeft ="1px"; v94b52.style.paddingTop =""; v94b52.innerHTML =v28a41.innerHTML; v2032.deleteRow(1); }, m4e045:function(vd4c94) { var vbb858 =vd4c94._HtmlObj.children[0]; var v6b931 =vbb858.insertRow(1); var v06826 =v6b931.insertCell(0); var v93e56 =vbb858.rows[0].cells[1]; v06826.innerHTML =v93e56.innerHTML; v06826.style.height =v93e56.style.width; v06826.style.width =""; v06826.style.paddingLeft =""; v06826.style.paddingTop ="1px"; vbb858.rows[0].deleteCell(1); }, m9ae25:function(v7e013) { if (v7e013.Type =="Button" ||v7e013.Type =="ToggleButton" ||v7e013.Type =="DropDownButton" ||v7e013.Type =="SplitButton") { if (v7e013.Type =="DropDownButton" ||v7e013.Type =="SplitButton") wdee387.m4e045(v7e013); switch (v7e013.Get("DisplayMode")) { case "Text": if (v7e013.Type !="DropDownButton" &&v7e013.Type !="SplitButton") v7e013._HtmlObj.children[0].style.writingMode ="tb-rl"; else v7e013._HtmlObj.children[0].rows[0].cells[0].children[0].style.writingMode ="tb-rl"; break; case "TextAndImage": wdee387.mcc818(v7e013); break; } } else { if (v7e013.Type =="Custom" &&v7e013.Visible ==true) v7e013._HtmlObj.style.display ="none"; } if (v7e013._Bar.Get("SizeMode")=="Fixed") { var v3b477 =v7e013._HtmlObj; v3b477.style.width =""; v3b477.style.height =v7e013.Get("CommandSize"); } }, mcc818:function(v19a33) { var v79813 =v19a33.Type !="DropDownButton" &&v19a33.Type !="SplitButton" ? v19a33._HtmlObj : v19a33._HtmlObj.children[0].rows[0].cells[0]; if (v19a33.Get("TextAlign")=="Left" ||v19a33.Get("TextAlign")=="Right") { var vb9b10 =document.createElement("DIV"); vb9b10.style.cssText ="writing-mode:tb-rl"; var v1b412 =v79813.children[0]; document.body.appendChild(v1b412); vb9b10.innerHTML =v79813.innerHTML; v79813.innerHTML =""; v79813.appendChild(vb9b10); if (v19a33.Get("TextAlign")=="Left") vb9b10.insertAdjacentElement("afterEnd",v1b412); else vb9b10.insertAdjacentElement("beforeBegin",v1b412); } else { var v1b412 =v79813.children[0]; v1b412.style.display ="inline"; } }, _CheckVerticalDisplayRows: function(vaad69,v2e289) { if (vaad69.rows.length <v2e289) { for (var v0f769 =vaad69.rows.length; v0f769 <v2e289; v0f769++) { vaad69.insertRow(0); } } else { if (vaad69.rows.length >v2e289) { for (var v0f769 =v2e289; v0f769 <vaad69.rows.length; v0f769++) { vaad69.deleteRow(v2e289); } } } }, mab10:function(v7cc4) { if (v7cc4.Type =="Button" ||v7cc4.Type =="ToggleButton" ||v7cc4.Type =="DropDownButton" ||v7cc4.Type =="SplitButton") { if (v7cc4.Type =="DropDownButton" ||v7cc4.Type =="SplitButton") wdee387.md6e23(v7cc4); switch (v7cc4.Get("DisplayMode")) { case "Text": if (v7cc4.Type !="DropDownButton" &&v7cc4.Type !="SplitButton") v7cc4._HtmlObj.children[0].style.writingMode ="lr-tb"; else v7cc4._HtmlObj.children[0].rows[0].cells[0].children[0].style.writingMode ="lr-tb"; break; case "TextAndImage": wdee387.m04c49(v7cc4); break; } } else { if (v7cc4.Type =="Custom" &&v7cc4.Visible ==true) v7cc4._HtmlObj.style.display =""; } if (v7cc4._Bar.Get("SizeMode")=="Fixed") { var v6da4 =v7cc4._HtmlObj; v6da4.style.height =""; v6da4.style.width =v7cc4.Get("CommandSize"); } }, m04c49:function(vf144) { var v6b24 =vf144.Type !="DropDownButton" &&vf144.Type !="SplitButton" ? vf144._HtmlObj : vf144._HtmlObj.children[0].rows[0].cells[0]; var v53058; var v80315; switch (vf144.Get("TextAlign")) { case "Left": v53058 =v6b24.children[0].innerHTML; v80315 =v6b24.children[1]; document.body.appendChild(v80315); v6b24.innerHTML =v53058; v6b24.insertAdjacentElement("beforeEnd",v80315); break; case "Right": v53058 =v6b24.children[1].innerHTML; v80315 =v6b24.children[0]; document.body.appendChild(v80315); v6b24.innerHTML =v53058; v6b24.insertAdjacentElement("afterBegin",v80315); break; case "Above": case "Underneath": v6b24.children[0].style.display ="block"; break; } }, _GetOptionDropDownPaddingTopOnHorizontalDisplay: function(v96a24) { var vc2624 =ISPosLib.getHeight(v96a24.FrameObj)-(v96a24.Get("BarStyle")=="OfficeXP" ||v96a24.Get("BarStyle")=="IE" ? 2 : 0); return ((vc2624 -16)+"px"); }, m2b961:function(v72599) { var cmd,imageSize; var va1c44 =v72599.XmlDt.selectSingleNode("//CommandStyle"); for (var vf5277 =0; vf5277 <v72599.Commands.length; vf5277++) { cmd =v72599.Commands[vf5277]; wdee387.m18c99(vf5277,v72599.Commands[vf5277],v72599); cmd._Visible =cmd.Visible; cmd._PrevVisible =cmd.Visible; cmd._Collection =v72599.Commands; cmd.IsRendered =true; imageSize =ISXml.GetAttribute(cmd.XmlNode,"ImageSize"); if (imageSize !="" &&imageSize !=null) cmd.ImageSize.Parse(imageSize); if (cmd.Type !="Container") { wdb0126.m72c98(cmd,v72599,va1c44); if (v72599.MergeToolBar ==null ||v72599.MergeToolBar ==false ||v72599.NewCreatedMergeChildBar) { v72599._AssignCommandListener(cmd); } } } }, mf5084:function(vd7774) { for (var v89674 =0; v89674 <vd7774.Commands.length; v89674++) { wdee387.m18c99(v89674,vd7774.Commands[v89674],vd7774); } }, m18c99:function(v95574,vc7545,v41186) { vc7545.Index =v95574; vc7545._Bar =v41186; vc7545._Image =vc7545.Image; vc7545._Text =vc7545.Text; vc7545._HtmlObj =document.getElementById(v41186.Id +"_" +vc7545.Name +wdb0126.BarItemSuffix); vc7545._PrevBarId =vc7545._OriBarId =v41186.Id; }, mb5099:function(vf1910) { if (vf1910.Visible ==true) { var v03610 =vf1910._HtmlObj; Listener.Add(v03610,"onclick",wdee387.m97e94,vf1910); Listener.Add(v03610,"ondblclick",wdee387.m77457,vf1910); Listener.Add(v03610,"onmousedown",wdee387.mb451,vf1910); Listener.Add(v03610,"onmousemove",wdee387.mc2887,vf1910); Listener.Add(v03610,"onmouseout",wdee387.m95024,vf1910); Listener.Add(v03610,"onmouseover",wdee387.m1d379,vf1910); Listener.Add(v03610,"onmouseup",wdee387.m53564,vf1910); Listener.Add(v03610,"onselectstart",wdee387.m97a15,vf1910);  Listener.Add(v03610,"onkeydown",wdee387.m46d62,vf1910); } }, ma8789:function(v7b593,v5e155) { var vc6c10; var cmd,cmd1; for (var v44515 =0; v44515 <v7b593.Commands.length; v44515++) { cmd =v7b593.Commands[v44515]; if (cmd.Visible ==true &&cmd.Type =="ToggleButton" &&cmd.Pushed &&cmd.ToggleGroupName ==v5e155) { vc6c10 =cmd; break; } } return vc6c10; }, mfc639:function(v89249,v36834) { var v14f65 =new Array(); var v70d94; for (var v61690 =0; v61690 <v89249.Commands.length; v61690++) { v70d94 =v89249.Commands[v61690]; if (v70d94.Type =="ToggleButton" &&v70d94.ToggleGroupName ==v36834) { v14f65[v14f65.length] =v70d94; } } return v14f65; }, m8ab19:function(v47895) { var v78849 =new Array(); var va9034; for (var v45d38 =0; v45d38 <v47895.Commands.length; v45d38++) { va9034 =v47895.Commands[v45d38]; if (va9034.Type =="ToggleButton") v78849[v78849.length] =va9034; } return v78849; }, m26c27:function(v74579) { var v89679 =wdee387.m5ea47(v74579); if (v89679.contains(window.event.srcElement)) return false; else return true; }, _OnActivateCommand: function() { var vc4a79 =event; if (this.Type =="Custom")return; if (vc4a79 &&vc4a79.altKey) { var v0822 =vc4a79.fromElement; try { this.OnClick(); if (this._Bar.Unloaded)return; if (this.Type =="SplitButton")wdee387.m7d782(this,"Normal"); if (v0822) v0822.focus(); else this._HtmlObj.blur(); } catch (e) { } } }, m97a15:function() { if (this.Type !="Custom") event.returnValue =false; }, m46d62:function() { var v44b79 =event; var v02f2 =false; if (this.Type =="Custom")return; if (v44b79.keyCode ==ISKeyboardKey.ENTER ||v44b79.keyCode ==ISKeyboardKey.SPACE) { this.OnClick(); if (this.Type =="SplitButton") wdee387.m7d782(this,"Normal"); v02f2 =true; } else if (v44b79.keyCode ==ISKeyboardKey.DOWN) { if (this.Type =="SplitButton") { var va0276 =wdee387.m5ea47(this); if (va0276) va0276.fireEvent("onmouseup"); } else if (this.Type =="DropDownButton") { this.OnClick(); } v02f2 =true; } if (v02f2) { v44b79.cancelBubble =true; v44b79.returnValue =false; } }, m97e94:function() { if (!this.IsEnabled)return; if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnClick"); }, m77457:function() { if (!this.IsEnabled)return; if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnDblClick"); }, m7d782:function(v5f654,v83d90) {  if (v5f654.Type =="SplitButton") { var vc1570 =wdee387.m5ea47(v5f654); if (v5f654._Bar.GetOrientation()=="Horizontal") { if (v83d90 =="Active") { vc1570.style.borderLeft ="1px solid " +wdee387.m6a59(v5f654.CommandStyle.Over); vc1570.style.paddingLeft ="0px"; } else if (v83d90 =="Normal") { vc1570.style.borderLeft =""; vc1570.style.paddingLeft ="1px"; } } else { if (v83d90 =="Active") { vc1570.style.borderTop ="1px solid " +wdee387.m6a59(v5f654.CommandStyle.Over); vc1570.style.paddingTop ="0px"; } else if (v83d90 =="Normal") { vc1570.style.borderTop =""; vc1570.style.paddingTop ="1px"; } } } }, mb451:function() { var v51454 =this._Bar.PlaceHolderManager; if (v51454 !=null &&v51454.IsDraggingChild)return; if (!this.IsEnabled)return; if (this._HtmlObj.contains(window.event.srcElement)) { if (this.Type !="Custom" &&this.Type !="Separator") { if (this.Type =="ToggleButton") this.SetPushed(!this.Pushed); else this.CommandStyle.SetToActive(); if (this.Type =="DropDownButton" ||this.Type =="SplitButton") { var v94f90 =this._HtmlObj.children[0]; v94f90.className =this.CommandFontStyle.Active;  wdee387.m7d782(this,"Normal"); } } if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnMouseDown"); } }, mc2887:function() { if (!this.IsEnabled)return; if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnMouseMove"); }, m1d379:function() { var v22f26 =this._Bar.PlaceHolderManager; if (v22f26 !=null &&v22f26.IsDraggingChild)return; if (!this.IsEnabled)return; if (this._HtmlObj.contains(window.event.srcElement)) { if (this.Type !="Custom" &&this.Type !="Separator") { this.CommandStyle.SetToOver(); if (this.Type =="DropDownButton" ||this.Type =="SplitButton") { var v67329 =this._HtmlObj.children[0]; v67329.className =this.CommandFontStyle.Over; if (this.Type =="SplitButton" &&this._ContextMenu !=null &&!this._ContextMenu.RootMenu.IsOpen()) { wdee387.m7d782(this,"Active"); } else if ((this.Type =="SplitButton" ||this.Type =="DropDownButton")&&this._ContextMenu !=null &&this._ContextMenu.RootMenu.IsOpen()) { this.CommandStyle.SetToActive(); v67329.className =this.CommandFontStyle.Active; } } } if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnMouseOver"); } }, m6a59:function(vce69) { var v9ae26 ="black"; var v80e29 =IS.GetCssObject("",vce69,false); if (v80e29 !=null)v9ae26 =v80e29.borderLeftColor; return v9ae26; }, m95024:function() { var v81045 =this._Bar.PlaceHolderManager; if (v81045 !=null &&v81045.IsDraggingChild)return; if (!this.IsEnabled)return; if (this._HtmlObj.contains(window.event.srcElement)) { if (this.Type !="Custom" &&this.Type !="Separator") { if (this.Type =="DropDownButton" ||this.Type =="SplitButton") { if (this._ContextMenu !=null) { if (this._ContextMenu.RootMenu.IsOpen())return; } var va8939 =this._HtmlObj.children[0]; va8939.className =this.CommandFontStyle.Normal; wdee387.m7d782(this,"Normal"); } if (this.Type !="ToggleButton") this.CommandStyle.SetToNormal(); else { if (this.Pushed ==false) this.CommandStyle.SetToNormal(); else this.CommandStyle.SetToActive(); } } if (!this.IsEnabled)return; if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; wdee387.m35c2(this,"OnMouseOut"); } }, m53564:function() { var v16b29 =this._Bar.PlaceHolderManager; if (v16b29 !=null &&v16b29.IsDraggingChild)return; if (!this.IsEnabled)return; if (this._HtmlObj.contains(window.event.srcElement)) { if (this.Type !="Custom" &&this.Type !="Separator") { if (this.Type !="ToggleButton") this.CommandStyle.SetToOver(); else { if (this.Pushed ==false) this.CommandStyle.SetToNormal(); else this.CommandStyle.SetToActive(); } if (this.Type =="DropDownButton" ||this.Type =="SplitButton") { if (this._Bar.LazyLoadContextMenu &&this._ContextMenu ==null) wdee387.m86188(this._Bar); if (this._ContextMenu !=null &&this._ContextMenu.RootMenu.IsOpen()||wdee387.m26c27(this)==false) { this.CommandStyle.SetToActive(); this._HtmlObj.children[0].className =this.CommandFontStyle.Active; } else { if (this.Type =="SplitButton") { wdee387.m7d782(this,"Active"); } } } } if ((this.Type =="SplitButton" &&wdee387.m26c27(this)==false)||this.Type =="DropDownButton") wdee387.m43415(this); if (this.Type =="SplitButton" &&wdee387.m26c27(this)==false)return; if (wdee387.m35c2(this,"OnMouseUp")==true) { if (this.Type !="DropDownButton") wdee387.mdd065(this); } } }, m43415:function(v6e31) { wdee387.mc986(v6e31._Bar,v6e31); if (v6e31._ContextMenu !=null) { var v07829 =v6e31._ContextMenu.RootMenu; if (v07829.Items.length <=0)return; var vef279 =ISPosLib.getScreenLeft(v6e31._HtmlObj); var v75080 =ISPosLib.getScreenTop(v6e31._HtmlObj)+ISPosLib.getHeight(v6e31._HtmlObj); if (v6e31.Type =="DropDownButton") { v6e31.CommandStyle.SetToActive(); v6e31._HtmlObj.children[0].className =v6e31.CommandFontStyle.Active; } v6e31._ContextMenu.SetOffsetElement(v6e31._HtmlObj); if (v6e31.Menu.OffsetAlignment =="RightTop")v07829.OffsetAlignment ="LeftBottom"; v07829.Direction ="Vertical"; v07829.Show(); return; } }, m58436:function(v43c20) { if (typeof (CustomizeWindowBAR)!="undefined") { var vb7b84 =v43c20._Bar.PlaceHolderManager; if (vb7b84 !=null) { vb7b84.ShowCustomizeWindow(); } } }, m75e49:function(v13340) { var v77620 =wdee387.mcff19(v13340); if (v77620 ==null) return; var vff627 =v13340._OptionContextMenu; var cmd,mnItem; for (var v18884 =0; v18884 <v13340.Commands.length; v18884++) { cmd =v13340.Commands[v18884]; var v9022 =""; if (cmd.Image !="")v9022 ="<img align=absmiddle src='" +cmd.Image +"'>&nbsp;"; else v9022 ="<img align=absmiddle style='width:16; height:16; visibility:hidden'>&nbsp;"; if (cmd.Type =="Button" ||cmd.Type =="DropDownButton" ||cmd.Type =="SplitButton" ||cmd.Type =="ToggleButton") { mnItem =new WebMenuItem(cmd.Name,v9022 +cmd.Text,null,"wdee387.m79f41"); mnItem._ToolCommand =cmd; mnItem.Tooltip =cmd.ToolTip; mnItem.Type ="CheckBox"; mnItem.KeepMenuVisible =true; mnItem.Checked =cmd.Visible; v77620.Items.Add(mnItem); } } }, mc986:function(v15615,veae26) { var v67659 =null; var ve6747; for (var v4d017 =0; v4d017 <v15615.Commands.length; v4d017++) { v67659 =v15615.Commands[v4d017]; if (v67659 !=veae26 &&(v67659.Type =="DropDownButton" ||v67659.Type =="SplitButton")) { ve6747 =v67659._ContextMenu; if (ve6747 !=null) { if (v67659.Type =="SplitButton") { var v77726 =wdee387.m5ea47(v67659); v77726.style.borderLeft =""; v77726.style.paddingLeft ="1px"; } v67659.CommandStyle.SetToNormal(); ve6747.HideAll(); } } } }, _IconItemClick: function(v45751) { v45751._ToolCommand.OnClick(); }, mcff19:function(v91081) { var v18d86 =v91081._OptionContextMenu; var v36465 =v18d86.RootMenu; var va5239 =false; if (v91081.Get("AddRemoveOptionMenuViewMode")=="IconView") { v36465.IconViewMode =true; v36465.Width =150; } var vb7312; if (v91081.Get("AllowExpandCollapse")=="Yes") { for (var ve4226 =0; ve4226 <v91081.Commands.length; ve4226++) { vb7312 =v91081.Commands[ve4226]; if (vb7312._UIVisible ==false &&vb7312.IsEnabled &&vb7312.Visible ==true &&(vb7312.Type !="Separator" &&vb7312.Type !="Custom" &&vb7312.Type !="Container")) { var v2a144 =v36465.Items.Add(new WebMenuItem(vb7312.Name,vb7312.Text,vb7312.Image,"wdee387.mf7412")); v2a144._ToolCommand =vb7312; v2a144.Tooltip =vb7312.ToolTip; if (vb7312.Type =="DropDownButton" ||vb7312.Type =="SplitButton") wdee387.m20224(v2a144,vb7312.Items); va5239 =true; } } } if (v91081.Get("AllowCustomize")=="Yes") { if (va5239) v36465.Items.Add(new WebMenuSeparatorItem()); var v13074 =new WebMenuItem("rAddRemoveButtons","Add or Remove Buttons"); v36465.Items.Add(v13074); v13074.IconViewMode =false; v13074.IconViewDisplayMode ="Text"; var ve2324 =new WebMenuItem("r" +v91081.Id,v91081.Caption); v13074.Items.Add(ve2324); if (v91081.PlaceHolder !=null &&v91081.PlaceHolder !="") { var v97654 =new WebMenuItem("rCustomize","Customize ...","","wdee387.m58436"); v97654._Bar =v91081; v97654.Enabled =v91081.Get("AllowCustomize")=="Yes"; v13074.Items.Add(v97654); } } return ve2324; }, m20224:function(vba220,vbd182) { if (vbd182 ==null)return; vba220.SubMenu.IconViewMode =vbd182.Parent.IconViewMode; for (var vfd70 =0; vfd70 <vbd182.length; vfd70++) { var vd4973 =vbd182[vfd70]; var v82525 =new WebMenuItem(); v82525.CopyFrom(vd4973); vba220.Items.Add(vd4973); } }, m79f41:function(v2bb56) { v2bb56._ToolCommand.SetVisible(v2bb56.Checked); }, m16d54:function(v11131) { var v54392 =ISGetObject(v11131); if (typeof (CustomizeWindowBAR)!="undefined") { var vec421 =wd3a682.mcef6(); vec421.Hide(); } v54392.CheckCommandsVisibility(); var vb7429 =v54392._OptionContextMenu; if (v54392._IsReCalculateOptionMenu ==true ||vb7429 ==null) { if (vb7429 !=null) vb7429.ClearAll();  vb7429 =new WebContextMenu(v54392.Id +"MoreItems"); vb7429.RootMenu =new WebMenu(); vb7429.RootMenu.MenuControl =vb7429; v54392._OptionContextMenu =vb7429; wdee387.m75e49(v54392); vb7429.MenuStyleSettings =v54392.MenuStyleSettings; if (v54392._IsCreateDefaultMenuStyles ==true) { try {  if (v54392.IntegratedTo =="None" ||(IS.safari &&(vb7429.MenuStyleSettings.FrameStyle ==null ||vb7429.MenuStyleSettings.FrameStyle ==""))) wdee387.m31660(v54392.Id,vb7429.MenuStyleSettings); vb7429.CreateDefaultStyles(); } catch (e) { } } vb7429.RefreshStructure(); v54392._IsReCalculateOptionMenu =false; } var vf5d45; if (v54392.Get("IsFloat")=="No") { vf5d45 =document.getElementById(v54392.Id +wdb0126.BarOptionSuffix +"_" +v54392.GetOrientation()); vb7429.RootMenu.Direction ="Vertical"; if (v54392.GetOrientation()=="Horizontal") vb7429.RootMenu.OffsetAlignment ="LeftBottom"; else vb7429.RootMenu.OffsetAlignment ="RightTop"; } else { vf5d45 =document.getElementById(v54392.Id +IS.FrameHeaderSuffix).offsetParent.rows[0].cells[1]; vb7429.RootMenu.Direction ="Vertical"; vb7429.RootMenu.OffsetAlignment ="LeftBottom"; } vb7429.SetOffsetElement(vf5d45); if (vb7429.RootMenu.Items.length >0) vb7429.RootMenu.Show(); }, _CalculateAvailableMaxDimensionToDock: function(v9c450,ve6750) { var v6a031 =0; var v78a40 =ve6750 =="h" ? v9c450.offsetWidth : v9c450.offsetHeight; var io,o; for (var vbd563 =0; vbd563 <v9c450.children.length; vbd563++) { io =v9c450.children[vbd563]; if (io.id.indexOf(IS.FrameSuffix)>-1) { o =ISGetObject(io.id.replace(IS.FrameSuffix,"")); if (o !=null) { if (o.ClassName =="WebToolBar")v6a031 +=ve6750 =="h" ? o.FrameObj.offsetWidth : o.FrameObj.offsetHeight; } } } return (v78a40 -v6a031); }, mbf551:function(vd8d41,vc0098,v12033) { vd8d41._UIState ="ShowCommand"; var vf876; if (typeof (vc0098)=="object") vf876 =vc0098; else vf876 =vd8d41.Commands[vc0098]; vf876.Visible =vf876._PrevVisible =vf876._Visible =true; vf876._UIState ="Show"; vd8d41.UpdateUI(v12033); return true; }, m9aa21:function(v0b997,vfff77,v41b18) { var vb7761; if (typeof (vfff77)=="object") vb7761 =vfff77; else vb7761 =v0b997.Commands[vfff77]; v0b997._UIState ="HideCommand"; vb7761.Visible =vb7761._PrevVisible =vb7761._Visible =false; vb7761._UIState ="Hide"; v0b997.UpdateUI(v41b18); return true; }, m4b763:function(v48916,v35687,v07a85) { if (typeof (v07a85)=="number") v48916.Commands.InsertAt(v35687,v07a85); else v48916.Commands.Add(v35687); }, m23b32:function(vcb936,v09e97) { var v1ac52; if (typeof (v09e97)=="object") v1ac52 =v09e97; else v1ac52 =vcb936.Commands[v09e97]; vcb936.Commands.Remove(v1ac52,false); }, m63485:function(va9647,v39e55) { var va8536 =v39e55 ==true ? va9647 : this; if (va8536.MergeToolBar !=true)return; if (!IS.safari &&!IS.opera) Listener.Remove(window,"onbeforeunload",wdee387.m63485,va8536); if (va8536.MergeToolBarParentID ==null ||va8536.MergeToolBarParentID =="") { try { if (va8536._prntPHM !=null &&va8536._prntPHM.UnRegisterBar) va8536._prntPHM.UnRegisterBar(va8536.Id); var vaeb97 =wd5a159.m24b81(va8536.MergeToolBarParentWindowName); var vb8d52; for (i in vaeb97.IS.RuntimeObjects) { vb8d52 =vaeb97.IS.RuntimeObjects[i]; if (vb8d52.Id ==va8536.Id) { delete vaeb97.IS.RuntimeObjects[i]; break; } } var v68a1 =va8536.FrameObj.ownerDocument; var v5d256 =v68a1.getElementById(va8536.Id +IS.XmlSuffix); v5d256.removeNode(true); v5d256 =v68a1.getElementById(va8536.Id +IS.HiddenDataSuffix); v5d256.removeNode(true); v5d256 =v68a1.getElementById(va8536.Id +wdb0126.BarOptionWindowSuffix); v5d256.removeNode(true); va8536.FrameObj.removeNode(true); va8536._prntPHM =null; } catch (e) {} } else { var v83d43 =va8536._ParentBarMerging; if (v83d43 !=null &&v83d43._ClearMergedCommandsByChildBar !=null) { v83d43._ClearMergedCommandsByChildBar(va8536); v83d43.UpdateUI(true); } va8536._ParentBarMerging =null; } va8536._prntPHM =null; va8536 =null; }, mdc370:function(v87383,v19424) { wdf6f70.m2f520(v87383,v19424); }, mee933:function(v94f2) { if (v94f2.Name ==null ||v94f2.Name =="") { var v90566 =v94f2.Text ==null ? "" : v94f2.Text; v94f2.Name ="cmd" +v90566.replace(" ","").replace("/","").replace(".","").replace("&",""); } }, mdc099:function(v61f97) { var v9e038 =null; var vfd33 =v61f97._IsHorizontal; var v69b26 =v61f97._HtmlObjH_tbl; var va1452 =v61f97._HtmlObjV_tbl; var v1c744; var v3db63 =v61f97.CommandMargin; var veff78; for (var vfae79 =0; vfae79 <v61f97.Commands.length; vfae79++) { v9e038 =v61f97.Commands[vfae79]; if (v9e038.IsRendered ==false) { wdee387.mee933(v9e038); if (vfd33) wdee387.m77f77(v9e038,v69b26,v1c744,v3db63); else wdee387.mdfa10(v9e038,va1452,v1c744,v3db63); v9e038.IsRendered =true; v61f97.IsRuntimeToolCommandCreated =true; if (v9e038._Bar !=null) { v9e038.Category =v9e038._Bar.Id; if (v9e038._Bar.PlaceHolderManager !=null) { var va1287 =v9e038._Bar.PlaceHolderManager.GetCustomizeWindow(); if (va1287 !=null) va1287.RegisterCommand(v9e038); } } } v1c744 =v9e038._HtmlObj; } }, m77f77:function(va8888,v05d81,v8fd30,v8d082) { var va5c32 =null; var ve622 =null; var v22d45 =v05d81.rows[0]; var vacd78 =v8fd30 ==null ? 0 : (v8fd30.cellIndex +1); va5c32 =v22d45.insertCell(vacd78); vacd78++; ve622 =v22d45.insertCell(vacd78); wdee387.md5e58(va5c32,v8d082,true); wdee387.m06b13(va8888,ve622,v8d082); }, mdfa10:function(v55e63,v6fd69,v37582,vf6e46) { var vd3943 =null; var v8a460 =null; var v9d416 =v6fd69.insertRow(v37582 ==null ? -1 : (v37582.parentNode.rowIndex +1)); vd3943 =v9d416.insertCell(-1); v8a460 =v6fd69.insertRow(v9d416.rowIndex +1).insertCell(-1); wdee387.md5e58(vd3943,vf6e46,false); wdee387.m06b13(v55e63,v8a460,vf6e46); }, md5e58:function(v5882,vfe789,v91d16) { var vbec82 =document.createAttribute("type"); vbec82.value ="m"; v5882.attributes.setNamedItem(vbec82); var v10e79 =document.createElement("DIV"); v5882.appendChild(v10e79); v10e79.style.overflow ="hidden"; if (v91d16 ==true) { v5882.style.width =vfe789; v10e79.style.width =vfe789; } else { v5882.style.height =vfe789; v10e79.style.height =vfe789; } }, m06b13:function(vfb874,v08727,v8c253) { vfb874._HtmlObj =v08727; v08727.align ="center"; v08727.style.cssText ="WHITE-SPACE: nowrap"; v08727.tabIndex =-1; v08727.vAlign ="middle"; v08727.id =vfb874.Parent.ClientID +"_" +vfb874.Name +wdb0126.BarItemSuffix; v08727.title =wdee387.me9328(vfb874); if (vfb874.IsEnabled ==false) v08727.disabled =true; if (vfb874.Visible ==false) v08727.style.display ="none"; if (vfb874.Get("Type")!="Container") { var v42074 =vfb874.Parent; wdb0126.m72c98(vfb874,v42074,v42074.XmlDt.selectSingleNode("//CommandStyle")); if (v42074.MergeToolBar ==null ||v42074.MergeToolBar ==false ||v42074.NewCreatedMergeChildBar) { v42074._AssignCommandListener(vfb874); } } switch (vfb874.Get("Type")) { case "Button": case "ToggleButton": wdee387.m87067(vfb874,v08727,v8c253); break; case "Custom": wdee387.mcb994(vfb874,v08727,v8c253); break; case "DropDownButton": case "SplitButton": wdee387.mee651(vfb874,v08727,v8c253); break; case "Separator": wdee387.m64b10(vfb874,v08727,v8c253); break; case "Container": wdee387.m45d42(vfb874,v08727,v8c253); break; } }, me9328:function(vf0729) { var v8d593 =""; if (vf0729.Get("DisplayToolTip")=="Yes") { v8d593 =vf0729.Get("ToolTip"); if (vf0729.Get("DisplayAccessKeyOnToolTip")=="Yes") { if (vf0729.Get("AccessKey")==null ||vf0729.Get("AccessKey")=="") v8d593 +=" (Alt + " +vf0729.Get("AccessKey")+")"; } } return v8d593; }, m87067:function(v46948,v94716,v7c25) { var v72f48 =""; if (v46948.Parent.Get("SizeMode")=="Fixed") { if (v46948.Parent._IsHorizontal ==true) v72f48 +=";overflow:hidden;width:" +v46948.CommandSize.toString(); else v72f48 +=";overflow:hidden;height:" +v46948.CommandSize.toString(); } if (v46948.Get("Type")!="ToggleButton") v94716.className =v46948.IsEnabled ? v46948.CommandStyle.Normal : v46948.Parent.CommandDisabledStyle; else { if (v46948.IsEnabled) v94716.className =v46948.Pushed ? v46948.CommandStyle.Active : v46948.CommandStyle.Normal; else v94716.className =v46948.Pushed ? v46948.CommandStyle.Active : v46948.Parent.CommandDisabledStyle; } v94716.style.cssText +=v72f48; if (v46948.AccessKey ==null ||v46948.AccessKey =="") { v94716.accessKey =v46948.AccessKey; v94716.tabIndex =v46948.Parent.ShowFocusBorder ? 0 : -1; } switch (v46948.Get("DisplayMode")) { case "Text": wdee387.md9255(v46948,v46948._HtmlObj); break; case "Image": wdee387.md6526(v46948,"",v46948._HtmlObj); break; case "TextAndImage": wdee387.m7ab97(v46948,v46948._HtmlObj); break; } }, md9255:function(v3924,v7fc95) { var v3f332 =document.createElement("DIV"); if (v3924.Parent._IsHorizontal ==false) { if (IS.moz ==false &&IS.safari ==false) v3f332.style.cssText ="white-space: nowrap;writing-mode:tb-rl"; } else v3f332.style.cssText ="white-space: nowrap;"; v7fc95.appendChild(v3f332); wdee387.mc1d22(v3924,v3f332); }, md6526:function(vb5523,vde85,v7bc57) { var v97f87 =document.createElement("IMG"); v97f87.align ="absmiddle"; vde85 +="overflow:hidden"; vde85 +=";width:" +vb5523.ImageSize.Width; vde85 +=";height:" +vb5523.ImageSize.Height; if (vb5523.IsEnabled ==false &&toolBar.GreyImageWhenDisabled =="Yes") vde85 +=";filter:Alpha(Opacity=50), Gray()"; v97f87.style.cssText =vde85; if (vb5523.Image !=null &&vb5523.Image !="") v97f87.src =vb5523.Parent.ResolveImagePath(vb5523.Image.charAt(0)=="." ||vb5523.Image.charAt(0)=="/" ||vb5523.Image.charAt(0)=="~" ? vb5523.Parent.ImagesDirectory : "",vb5523.Image); v7bc57.appendChild(v97f87); }, m7ab97:function(v83162,v2ce43) { if (v83162.Parent._IsHorizontal ==true) { var v2ce43 =v83162._HtmlObj; switch (v83162.Get("TextAlign")) { case "Left": wdee387.mc1d22(v83162,v2ce43); v2ce43.insertAdjacentHTML("beforeEnd","&nbsp;"); wdee387.md6526(v83162,"",v2ce43); break; case "Right": wdee387.md6526(v83162,"",v2ce43); v2ce43.insertAdjacentHTML("beforeEnd","&nbsp;"); wdee387.mc1d22(v83162,v2ce43); break; case "Above": wdee387.mc1d22(v83162,v2ce43); wdee387.md6526(v83162,"display:block",v2ce43); break; case "Underneath": wdee387.md6526(v83162,"display:block",v2ce43); wdee387.mc1d22(v83162,v2ce43); break; } } else { switch (v83162.Get("TextAlign")) { case "Left": wdee387.md9255(v83162,v2ce43); wdee387.md6526(v83162,"",v2ce43); break; case "Right": wdee387.md6526(v83162,"",v2ce43); wdee387.md9255(v83162,v2ce43); break; case "Above": var v91714 =document.createElement("DIV"); v91714.style.cssText ="white-space: nowrap;writing-mode:tb-rl"; v2ce43.appendChild(v91714); wdee387.mc1d22(v83162,v91714); wdee387.md6526(v83162,"display:block",v91714); break; case "Underneath": var v91714 =document.createElement("DIV"); v91714.style.cssText ="white-space: nowrap;writing-mode:tb-rl"; v2ce43.appendChild(v91714); wdee387.md6526(v83162,"display:block",v91714); wdee387.mc1d22(v83162,v91714); break; } } }, mc1d22:function(v60c34,v74e63) { var v54398 =""; if (v60c34.Text ==null ||v60c34.Text =="") v54398 ="&nbsp;"; if (v60c34.AccessKey ==null ||v60c34.AccessKey =="") v54398 =v60c34.Text; else { var v06593 =v60c34.Text.toLowerCase().indexOf(v60c34.AccessKey); if (v06593 >-1) { v54398 =v60c34.Text.Substring(0,v06593); v54398 +="<u>"; v54398 +=v60c34.Text.Substring(v06593,1); v54398 +="</u>"; v54398 +=v60c34.Text.Substring(v06593 +1); } else v54398 =v60c34.Text; } v74e63.insertAdjacentHTML("beforeEnd",v54398); }, mcb994:function(v83f90,v94c42,vbed13) { var v2d618 =""; if (v83f90.Parent.Get("SizeMode")=="Fixed") { if (v83f90.Parent._IsHorizontal ==true) v2d618 +=";padding:0px;overflow:hidden;width:" +v83f90.CommandSize.toString(); else v2d618 +=";padding:0px;overflow:hidden;height:" +v83f90.CommandSize.toString(); } v94c42.className =v83f90.IsEnabled ? v83f90.CommandStyle.Normal : v83f90.Parent.CommandDisabledStyle; v94c42.style.cssText +=v2d618; var vcad3 =document.createElement("DIV"); v94c42.appendChild(vcad3); if (v83f90.CommandSize !="50px") { if (v83f90.Parent._IsHorizontal ==true) vcad3.style.width =v83f90.CommandSize.toString(); else vcad3.style.height =v83f90.CommandSize.toString(); } if (v83f90.Parent._IsHorizontal ==true) { if (IS.moz ==false &&IS.safari ==false) vcad3.style.writingMode ="tb-rl"; } }, mee651:function(vfad64,v23f31,vf1765) { var v7029 =""; if (vfad64.Parent.Get("SizeMode")=="Fixed") { if (vfad64.Parent._IsHorizontal ==true) v7029 +=";overflow:hidden;width:" +vfad64.CommandSize.toString(); else v7029 +=";overflow:hidden;height:" +vfad64.CommandSize.toString(); } v23f31.style.cssText +=v7029; v23f31.className =vfad64.IsEnabled ? vfad64.CommandStyle.Normal : vfad64.Parent.CommandDisabledStyle; if (vfad64.AccessKey ==null ||vfad64.AccessKey =="") { v23f31.accessKey =vfad64.AccessKey; v23f31.tabIndex =vfad64.Parent.ShowFocusBorder ? 0 : -1; } var v25c52 =document.createElement("TABLE"); v23f31.appendChild(v25c52); v25c52.cellSpacing =0; v25c52.cellPadding =0; v25c52.border =0; v25c52.style.cssText ="width:100%;height:100%"; v25c52.className =vfad64.IsEnabled ? vfad64.Parent.CommandFontStyle.Normal : vfad64.Parent.CommandDisableFontStyle; var v2d380 =v25c52.insertRow(-1); var v72c54 =v2d380.insertCell(-1); v72c54.align ="center"; v72c54.vAlign ="middle"; v72c54.style.cssText ="white-space:nowarp"; switch (vfad64.Get("DisplayMode")) { case "Text": wdee387.md9255(vfad64,v72c54); break; case "Image": wdee387.md6526(vfad64,"",v72c54); break; case "TextAndImage": wdee387.m7ab97(vfad64,v72c54); break; } var v0dc62 =null; if (vfad64.Parent._IsHorizontal ==false) { v0dc62 =v25c52.insertRow(-1).insertCell(-1); v0dc62.align ="center"; v0dc62.vAlign ="middle"; v0dc62.style.cssText ="padding-top: 1px; overflow: hidden; height: 12px; white-space: nowrap"; v0dc62.innerHTML ="<font face=\"webdings\" style=\"font-size:8px\">6</font>"; } else { v0dc62 =v2d380.insertCell(-1); v0dc62.style.cssText ="padding-left: 1px; width: 12px;"; v0dc62.innerHTML ="<font face=\"webdings\" style=\"font-size:8px\">6</font>"; } }, m64b10:function(v6d920,ve6d10,v8b050) { ve6d10.className =v6d920.Parent.SeparatorStyle; ve6d10.innerHTML ="&nbsp;"; }, m45d42:function(v6f520,v75d10,v3e150) { v75d10.style.overflow ="hidden"; if (v6f520.Parent._IsHorizontal) v75d10.style.width ="0px"; else v75d10.style.height ="0px"; } };function HideFloatingToolBar(veac49){ var vd5093 =ISGetObject(veac49); vd5093.Hide();};function WebToolBarOnLoad(){ wdee387.IsWindowLoaded =true; var v60349 =ISGetCurrentWindow(); if (v60349) { if (v60349 !=ISGetActiveWindow()) v60349.UnregisterAccessKeys(); }};function WebToolBarOnUnLoad(){ window.detachEvent("onload",WebToolBarOnLoad); window.detachEvent("onbeforeunload",WebToolBarOnBeforeUnLoad); window.detachEvent("onunload",WebToolBarOnUnLoad); IS.RegisterUnloadVariables("pWTB"); IS.RegisterUnloadVariables("pTCmd"); IS.RegisterUnloadVariables("wd08e0"); IS.RegisterUnloadVariables("wdee387"); IS.RegisterUnloadVariables("wdf6f70"); IS.RegisterUnloadVariables("wd5a159"); IS.RegisterUnloadVariables("wd71f77"); IS.RegisterUnloadVariables("ISBarCommon"); IS.RegisterUnloadVariables("ISDrag"); IS.RegisterUnloadVariables("wdb0126"); };function WebToolBarOnBeforeUnLoad(){ var ve5085; for (var vdf469 =0; vdf469 <IS.RuntimeObjects.length; vdf469++) { ve5085 =IS.RuntimeObjects[vdf469]; if (ve5085 ==null)continue; if (ve5085.GetType()=="WebToolBar") { if (ve5085.Get("AllowMove")=="Yes") { Listener.Unload(document.getElementById(ve5085.Id +wdb0126.BarHandleSuffix +"_Vertical")); Listener.Unload(document.getElementById(ve5085.Id +wdb0126.BarHandleSuffix +"_Horizontal")); var vd2f58 =document.getElementById(ve5085.Id +IS.FrameHeaderSuffix); if (vd2f58 !=null) { Listener.Unload(vd2f58); Listener.Unload(vd2f58.offsetParent); Listener.Unload(vd2f58.parentNode.parentNode); } }  } }};function DoWebToolBarResize(v85d4){  v85d4._IsReCalculateOptionMenu =true;};function CreateWebToolBar(v9424,vb7479){ return wdf6f70.m2f520(vb7479,v9424);};window.attachEvent("onload",WebToolBarOnLoad);window.attachEvent("onbeforeunload",WebToolBarOnBeforeUnLoad);window.attachEvent("onunload",WebToolBarOnUnLoad);