/* * Copyright MadCap Software * http://www.madcapsoftware.com/ * * v9.0.0.0 */ var MadCap={};MadCap.CreateNamespace=function(b){var d=b.split(".");var e=MadCap;for(var a=0,c=d.length;a1){throw new Error("Object.create implementation only accepts the first parameter.")}function a(){}a.prototype=b;return new a()}}MadCap.Extend=function(a,b){b.prototype=Object.create(a.prototype);b.prototype.constructor=b;b.prototype.base=a.prototype};MadCap.Exception=function(b,a){this.Number=b;this.Message=a};MadCap.IsIOS=function(){return MadCap.String.Contains(navigator.userAgent,"iphone")||MadCap.String.Contains(navigator.userAgent,"ipad")};(function(){var a=MadCap.CreateNamespace("String");a.IsNullOrEmpty=function(b){if(b==null){return true}if(b.length==0){return true}return false};a.StartsWith=function(f,e,c){if(e==null){return false}if(f.length=0&&c.charAt(b)==" ";b--){}return c.substring(0,b+1)};a.ToBool=function(e,c){var b=c;if(e!=null){var d=e.toLowerCase();if(d!="true"&&d!="false"&&d!="1"&&d!="0"&&d!="yes"&&d!="no"){throw new MadCap.Exception(-1,"The string can not be converted to a boolean value.")}b=d=="true"||d=="1"||d=="yes"}return b};a.ToInt=function(d,b){var c=b;if(d!=null){c=parseInt(d)}return c};a.ToDashed=function(b){return b.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()})}})();(function(){MadCap.CreateNamespace("DEBUG");var a=MadCap.DEBUG;a.Log={};a.Log.Create=function(){var e=document.createElement("div");e.setAttribute("id","DEBUG_Log");var f=document.createElement("div");$(f).addClass("MCDebugLogHeader");f.appendChild(document.createTextNode("Log Console"));e.appendChild(f);var d=document.createElement("div");$(d).addClass("MCDebugLogBody");e.appendChild(d);var c=document.createElement("div");$(c).addClass("MCDebugLogFooter");e.appendChild(c);document.body.appendChild(e);var b=new MadCap.DragDrop(e,f)};a.Log._LoadTime=new Date();a.Log.AddLine=function(d){if(parent!=window){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"DEBUG-AddLine",[d],null);return}var f=document.getElementById("DEBUG_Log");if(f==null){return}var c=new Date();var h=c-a.Log._LoadTime;var e=document.createElement("p");$(e).addClass("MCDebugLogEntryTime");e.appendChild(document.createTextNode(h+"ms "+c.toLocaleTimeString()));var b=document.createElement("div");$(b).addClass("MCDebugLogEntry");b.appendChild(e);b.appendChild(document.createTextNode(d));var g=MadCap.Dom.GetElementsByClassName("MCDebugLogBody","div",f)[0];g.insertBefore(b,g.firstChild)}})();/* * Copyright MadCap Software * http://www.madcapsoftware.com/ * * v9.0.0.0 */ (function(){MadCap.CreateNamespace("Dom");var a=MadCap.Dom;a.Dataset=function(c,b){return c.getAttribute("data-"+MadCap.String.ToDashed(b))};a.GetElementsByClassName=function(g,b,c){b=b||"*";c=c||document;var d=new Array();var j=c.getElementsByTagName(b);for(var e=0,h=j.length;e0){b=document.documentElement.scrollLeft;c=document.documentElement.scrollTop}}return{X:b,Y:c}}})();/* * Copyright MadCap Software * http://www.madcapsoftware.com/ * * v9.1.0.0 */ (function(){MadCap.CreateNamespace("Utilities");MadCap.Utilities.Dictionary=function(f){this._Map=new Object();this._Overflows=new Array();this._Length=0;this._IgnoreCase=f==true};var a=MadCap.Utilities.Dictionary;a.prototype.GetLength=function(f){return this._Length};a.prototype.ForEach=function(j){var f=this._Map;for(var n in f){var m=f[n];var l=j(n,m);if(l!=undefined&&!l){return}}var h=this._Overflows;for(var k=0,g=h.length;k=0){h=this._Overflows[f].Value}}else{h=this._Map[g];if(typeof(h)=="undefined"){h=null}}return h};a.prototype.GetItemOverflowIndex=function(g){if(this._IgnoreCase){g=g.toLowerCase()}var j=this._Overflows;for(var f=0,h=j.length;f=0){this._Overflows.splice(f,1);this._Length--}}else{if(typeof(this._Map[g])!="undefined"){delete (this._Map[g]);this._Length--}}};a.prototype.Add=function(f,h){if(this._IgnoreCase){f=f.toLowerCase()}if(typeof(this._Map[f])=="function"){var g=this.GetItem(f);if(g!=null){this.Remove(f)}this._Overflows[this._Overflows.length]={Key:f,Value:h}}else{this._Map[f]=h}this._Length++};a.prototype.AddUnique=function(f,h){if(this._IgnoreCase){f=f.toLowerCase()}var g=this.GetItem(f);if(typeof(g)=="undefined"||!g){this.Add(f,h)}};MadCap.Utilities.DateTime=function(h){var g=/\/Date\(([0-9]+)\)\//i;var f=g.exec(h);if(f!=null){this.Date=new Date(parseInt(f[1]))}else{this.Date=new Date(h)}};var c=MadCap.Utilities.DateTime;c.Months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];MadCap.Utilities.TimeSpan=function(g,f){if(typeof g=="undefined"){g=new Date()}if(typeof f=="undefined"){f=new Date()}if(g>f){this.FromDate=f;this.ToDate=g}else{this.FromDate=g;this.ToDate=f}this.Ticks=this.ToDate-this.FromDate;this.Seconds=this.Ticks/1000;this.Minutes=this.Seconds/60;this.Hours=this.Minutes/60;this.Days=this.Hours/24};var b=MadCap.Utilities.TimeSpan;b.prototype.ToDurationString=function(){if(this.Minutes<1){return"Just now"}if(this.Hours<1){return parseInt(this.Minutes)+" minutes ago"}if(this.Days<1){return parseInt(this.Hours)+" hours ago"}if(this.Days<30){return parseInt(this.Days)+" days ago"}var f=c.Months[this.FromDate.getMonth()]+" "+this.FromDate.getDate();if(this.FromDate.getFullYear()!=this.ToDate.getFullYear()){f+=", "+this.FromDate.getFullYear()}return f};MadCap.Utilities.Url=function(g){var f=this;this._Segments=[];this.FullPath=null;this.Path=null;this.PlainPath=null;this.Name=null;this.Extension=null;this.NameWithExtension=null;this.Fragment=null;this.Query=null;this.IsAbsolute=false;this.IsFolder=false;this.QueryMap=new MadCap.Utilities.Dictionary(true);this.HashMap=new MadCap.Utilities.Dictionary(true);(function(){var p="";var s="";var q=g.indexOf("#");var n=g.indexOf("?");if(q!=-1){if(q>n){p=g.substring(q)}else{p=g.substring(q,n)}}if(n!=-1){if(n>q){s=g.substring(n)}else{s=g.substring(n,q)}}var t=q>-1?(n>-1?Math.min(q,n):q):n;var o=g.substring(0,t==-1?g.length:t);t=o.lastIndexOf("/");var v=o.substring(0,t+1);var m=o.substring(t+1);t=m.lastIndexOf(".");var h=m.substring(0,t);var k=m.substring(t+1);var j="";t=g.indexOf(":");if(t>=0){j=g.substring(0,t)}if(!MadCap.String.IsNullOrEmpty(g)){var r=g;if(MadCap.String.EndsWith(r,"/")){r=r.substring(0,r.length-1)}f._Segments=r.split("/")}f.FullPath=g;f.Path=v;f.PlainPath=o;f.Name=h;f.Extension=k;f.NameWithExtension=m;f.Scheme=j;f.IsAbsolute=!MadCap.String.IsNullOrEmpty(j);f.IsFolder=MadCap.String.EndsWith(o,"/");f.Fragment=p;f.Query=s;var u=f.Query;if(!MadCap.String.IsNullOrEmpty(u)){u=u.substring(1);u=u.replace(/\+/g," ");i(u,"&",f.QueryMap)}var l=f.Fragment;if(!MadCap.String.IsNullOrEmpty(l)){l=l.substring(1);i(l,"|",f.HashMap)}function i(F,x,w){var C=F.split(x);for(var A=0,y=C.length;A=0){E=decodeURIComponent(z.substring(0,B));D=decodeURIComponent(z.substring(B+1))}else{E=z}w.Add(E,D)}}})()};var e=MadCap.Utilities.Url;e.prototype.AddFile=function(i){if(typeof(i)=="string"){i=new e(i)}if(i.IsAbsolute){return i}var h=i.FullPath;if(h.charAt(0)=="/"){var j=document.location;var k=j.href.lastIndexOf(j.pathname);var g=j.href.substring(0,k);return new e(g+h)}var f=this.FullPath;if(!MadCap.String.EndsWith(f,"/")){f=f+"/"}return new e(f+h)};e.prototype.CombinePath=function(l){if(typeof(l)=="string"){l=new e(l)}if(l.IsAbsolute){throw new MadCap.Exception(-1,"Cannot combine two absolute paths.")}var j=l.FullPath;var k=l.FullPath.split("/");var o=this.FullPath;var m="";if(this.Scheme=="mk"){var n=o.indexOf("::");m=o.substring(0,n+"::".length);o=o.substring(n+"::".length)}for(var h=0,f=k.length;h1&&MadCap.String.EndsWith(o,"/")){o=o.substring(0,o.length-1)}if(g=="."){o+="/"}else{if(g==".."){o=o.substring(0,o.lastIndexOf("/")+1)}else{if(o!=""&&!MadCap.String.EndsWith(o,"/")){o+="/"}o+=g}}}o=m+o;return new e(o)};e.prototype.ToQuery=function(g){var f=this.PlainPath+"?"+g+this.Fragment;return new e(f)};e.prototype.ToFolder=function(){var f=this.PlainPath;if(MadCap.String.EndsWith(f,"/")){f=f.substring(0,f.length-1)}var h=f.lastIndexOf("/");var g=f.substring(0,h+1);return new e(g)};e.prototype.ToRelative=function(n){if(typeof(n)=="string"){n=new e(n)}if(this.IsAbsolute!=n.IsAbsolute){return this}var k=0;var l=n._Segments.length;for(;kk){m+="/"}m+=this._Segments[h]}return new e(m)};e.prototype.ToExtension=function(j){var h=this.FullPath;var i=h.lastIndexOf(".");var g=h.substring(0,i);var f=g+"."+j;return new e(f)};e.prototype.ToScheme=function(f){var h=this.FullPath;pos=h.indexOf(":");if(pos<0){return this}var g=f+":"+h.substring(pos);return new e(g)};e.prototype.ToPath=function(){return new e(this.Path)};e.prototype.ToPlainPath=function(){return new e(this.PlainPath)};e.prototype.ToNoQuery=function(){return new e(this.PlainPath+this.Fragment)};MadCap.Utilities.CrossFrame={};var d=MadCap.Utilities.CrossFrame;d.MESSAGE_SEPARATOR="%%%%%";d.DATA_SEPARATOR="^^^^^";d._MessageID=0;d._MessageInfos=new Array();d._MessageHandlerFuncs=new Array();d._PostMessage=function(h,f){if(typeof h=="undefined"){return}if(h.postMessage!=null){h.postMessage(f,"*");return}var g={data:f,source:window};h.MadCap.Utilities.CrossFrame.OnMessage(g)};d.AddMessageHandler=function(h,g){var f=d._MessageHandlerFuncs.length;d._MessageHandlerFuncs[f]={HandlerFunc:h,ContextObj:g}};d.PostMessageRequest=function(n,k,l,f){d._MessageInfos[d._MessageID]=f;var h="";if(l!=null){for(var g=0,j=l.length;g0){h+=d.DATA_SEPARATOR}h+=l[g]}}var m="request"+d.MESSAGE_SEPARATOR+k+d.MESSAGE_SEPARATOR+h+d.MESSAGE_SEPARATOR+d._MessageID;d._PostMessage(n,m);d._MessageID++};d._PostMessageResponse=function(n,k,l,f){var h="";if(l!=null){for(var g=0,j=l.length;g0){h+=d.DATA_SEPARATOR}h+=l[g]}}var m="response"+d.MESSAGE_SEPARATOR+k+d.MESSAGE_SEPARATOR+h+d.MESSAGE_SEPARATOR+f;d._PostMessage(n,m);d._MessageID++};d.OnMessage=function(t){var s=t.originalEvent;var o=s.data.split(d.MESSAGE_SEPARATOR);var m=o[0];var l=o[1];var j=o[2];var f=parseInt(o[3]);var h=null;if(!MadCap.String.IsNullOrEmpty(j)){h=j.split(d.DATA_SEPARATOR);for(var p=0,g=h.length;p0?v:null,f)}}else{if(m=="response"){if(d._MessageInfos[f]!=null){d._MessageInfos[f](h)}}}};if(window.postMessage!="undefined"){$(window).bind("message",d.OnMessage)}else{}MadCap.Utilities.LoadScript=function(i,h,g){var f=document.createElement("script");f.src=i;f.type="text/javascript";if(f.addEventListener){$(f).error(g);$(f).load(h)}else{if(f.readyState){f.onreadystatechange=function(){if(f.readyState=="loaded"||f.readyState=="complete"){h()}}}}document.getElementsByTagName("head")[0].appendChild(f)};MadCap.Utilities.AsyncForeach=function(i,g,h){i=i.slice(0);function f(){var j=i.shift();g(j,function(k){if(i.length>0){f()}else{h()}})}if(i.length>0){f()}else{h()}};MadCap.Utilities.AsyncForeachParallel=function(l,j,k){var h=0;if(l.length===0){k()}var f=l.length;for(var g=0;gthis.length){throw"Index out of bounds."}this.splice(a,1)};Array.prototype.RemoveValue=function(b){for(var a=this.length-1;a>=0;a--){if(this[a]==b){this.Remove(a)}}};/* * Copyright MadCap Software * http://www.madcapsoftware.com/ * * v9.0.0.0 */ (function(){MadCap.Utilities.Xhr=function(d,b,c){var e=this;this._XmlDoc=null;this._XmlHttp=null;this._Args=d;this._LoadFunc=b;this._LoadContextObj=c;this.OnreadystatechangeLocal=function(){if(e._XmlDoc.readyState==4){e._XmlDoc.onreadystatechange=a._Noop;var f=null;if(e._XmlDoc.documentElement!=null){f=e._XmlDoc}if(e._LoadContextObj==null){e._LoadFunc(f,e._Args)}else{e._LoadFunc.call(e._LoadContextObj,f,e._Args)}}};this.OnreadystatechangeRemote=function(){if(e._XmlHttp.readyState==4){e._XmlHttp.onreadystatechange=a._Noop;var f=null;if(e._XmlHttp.responseXML!=null&&e._XmlHttp.responseXML.documentElement!=null){f=e._XmlHttp.responseXML}if(e._LoadContextObj==null){e._LoadFunc(f,e._Args)}else{e._LoadFunc.call(e._LoadContextObj,f,e._Args)}}}};var a=MadCap.Utilities.Xhr;a.prototype._LoadLocal=function(b,c){if(window.ActiveXObject){this._XmlDoc=a._GetMicrosoftXmlDomObject();this._XmlDoc.async=c;if(this._LoadFunc){this._XmlDoc.onreadystatechange=this.OnreadystatechangeLocal}try{if(!this._XmlDoc.load(b)){this._XmlDoc=null}}catch(d){this._XmlDoc=null}}else{if(window.XMLHttpRequest){this._LoadRemote(b,c)}}return this._XmlDoc};a.prototype._LoadRemote=function(b,c){this._XmlHttp=a._GetXhrObject();if(this._LoadFunc){this._XmlHttp.onreadystatechange=this.OnreadystatechangeRemote}try{this._XmlHttp.open("GET",b,c);this._XmlHttp.send(null);if(!c&&(this._XmlHttp.status==0||this._XmlHttp.status==200)){this._XmlDoc=this._XmlHttp.responseXML}}catch(d){this._XmlHttp.abort();if(this._LoadFunc){if(this._LoadContextObj==null){this._LoadFunc(null,this._Args)}else{this._LoadFunc.call(this._LoadContextObj,null,this._Args)}}}return this._XmlDoc};a.prototype.Load=function(b,d){var e=null;var c=document.location.protocol;if(c=="file:"||c=="mk:"||c=="ms-its:"||c=="app:"){e=this._LoadLocal(b,d)}else{if(c=="http:"||c=="https:"){e=this._LoadRemote(b,d)}}return e};a.LoadXmlString=function(c){var b=null;if(window.ActiveXObject){b=a._GetMicrosoftXmlDomObject();b.async=false;b.loadXML(c)}else{if(DOMParser){var d=new DOMParser();b=d.parseFromString(c,"text/xml")}}return b};a.CreateXmlDocument=function(b){var c="<"+b+" />";var d=a.LoadXmlString(c);return d};a.GetOuterXml=function(d){var b=null;if(window.ActiveXObject){b=d.xml}else{if(window.XMLSerializer){var c=new XMLSerializer();b=c.serializeToString(d)}}return b};a.ImportNode=function(c,b){if(typeof(c.importNode)=="function"){return c.importNode(b,true)}return b.cloneNode(true)};a.CallWebService=function(e,d,f,b){var c=new a(b,f,null);var g=c.Load(e,d);return g};a._MicrosoftXmlDomProgIDs=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument","Microsoft.XMLDOM"];a._MicrosoftXmlHttpProgIDs=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];a._MicrosoftXmlDomProgID=null;a._MicrosoftXmlHttpProgID=null;a._FilePathToXmlStringMap=new MadCap.Utilities.Dictionary();a._LoadingFilesPathMap=new MadCap.Utilities.Dictionary();a._LoadingFromQueue=false;a.ForceUseJS=false;a.Load=function(g,e,b,h,c){function l(){a._LoadingFilesPathMap.Remove(j.FullPath);var n=a._FilePathToXmlStringMap.GetItem(j.Name);if(n!=null){a._FilePathToXmlStringMap.Remove(j.Name);m=a.LoadXmlString(n)}a._LoadingFilesPathMap.ForEach(function(q,r){var p=new MadCap.Utilities.Url(q);var o=r;if(p.Name==f&&p.FullPath!=j.FullPath){a._LoadingFilesPathMap.Remove(p.FullPath);a._LoadingFromQueue=true;a.Load(p.FullPath,o.async,o.LoadFunc,o.args,o.loadContextObj);return false}return true});if(c==null){b(m,h)}else{b.call(c,m,h)}}var m=null;if(a.ForceUseJS||(Boolean(window.chrome||window.opera)&&MadCap.String.StartsWith(document.location.protocol,"file"))){var i=new MadCap.Utilities.Url(g);var j=i.ToExtension("js");var f=j.Name;a._LoadingFilesPathMap.Add(j.FullPath,{async:e,LoadFunc:b,args:h,loadContextObj:c});var k=false;a._LoadingFilesPathMap.ForEach(function(p,q){var o=new MadCap.Utilities.Url(p);var n=q;if(o.Name==f&&o.FullPath!=j.FullPath){k=true;return false}return true});if(a._LoadingFromQueue||!k){a._LoadingFromQueue=false;MadCap.Utilities.LoadScript(j.FullPath,l,l)}}else{var d=new a(h,b,c);m=d.Load(g,e)}return m};a._Noop=function(){};a._GetMicrosoftXmlDomObject=function(){var e=null;if(a._MicrosoftXmlDomProgID==null){for(var c=0;co){var x=t-d;if((m+h)>x){p=l;var n=parseInt(j.css("border-top-width"));var g=parseInt(j.css("border-bottom-width"));var u=parseInt(j.css("padding-top"));var i=parseInt(j.css("padding-bottom"));j.css("height",(o-n-g-u-i)+"px");j.css("overflow","auto")}else{j.addClass("MCTextPopupBodyBottom");p=t-m-h}}else{j.removeClass("MCTextPopupBodyBottom")}j.css("top",p+"px");if(v>=b+s){c+=(v-b-s)}if(f");f.addClass("MCTopicPopupContainer needs-pie");var b=MadCap.Dom.GetAttribute(this._hotSpotEl,"href");var i=document.createElement("iframe");$(i).addClass("MCTopicPopupBody");i.setAttribute("src",b);i.setAttribute("name","MCPopup");f.append(i);f.appendTo(document.body);var g=$(this._rootEl);var c=g.attr("data-mc-width");var m=g.attr("data-mc-height");if(c!=null||m!=null){f.css({top:"50%",left:"50%",width:c,height:m});var e=f.width();var h=f.height();var d=$(window);var l=d.width()-100;var k=d.height()-100;if(e>l){f.css({width:l+"px"});e=l}if(h>k){f.css({height:k+"px"});h=k}f.css({"margin-top":(-h/2)+"px","margin-left":(-e/2)+"px"})}$(i).css("height",f.height());f.animate({opacity:1},200);var j=a.AddBackgroundTint("dark");$(j).animate({opacity:0.5},200)};a.TopicPopupControl.prototype.Close=function(){this.base.Close.call(this);var b=$(".MCTopicPopupContainer");b.remove();a.RemoveBackgroundTint()};a.CreateLinkListPopup=function(k,h,p,g,w,t){a.RemoveLinkListPopups();if(!t){t=""}var j=$("");var q=j.children("ul");var x=$(w).attr("target");for(var u=0,f=k.length;u").appendTo(q);var e=$("a",m);e.attr("target",x);if(x=="_popup"){e.click(MadCap.TopicHelpers.TopicPopup_Click)}e.text(v.Title);var l=v.Link;e.attr("href",t+l);m.click(a.Item_Click)}j.appendTo(h);var o=j.closest(".popup-container");if(o.length==0){o=$(window)}var b=o.width();var d=o.height();var c=o.scrollTop();var s=o.scrollLeft();var r=j[0].offsetWidth;var n=j[0].offsetHeight;p=Math.min(p,c+d-n);p=Math.max(p,c);g=Math.min(g,s+b-r);g=Math.max(g,s);j.css("top",p);j.css("left",g);j.hide().fadeIn(200);$([document,w]).click(function(i){j.remove();$([document,w]).off("click",arguments.callee)})};a.Item_Click=function(d){var c=$("a",this);var b=c.attr("href");var f=c.attr("target");if(b&&!MadCap.String.IsNullOrEmpty(b)){if(f){window.open(b,f)}else{document.location.href=b}}d.preventDefault()};a.RemoveLinkListPopups=function(){$(".link-list-popup").remove()};a.AddBackgroundTint=function(c){var b=$("
");b.addClass(c);b.appendTo(document.body);return b[0]};a.RemoveBackgroundTint=function(){$("#mc-background-tint").remove()}})();/* * Copyright MadCap Software * http://www.madcapsoftware.com/ * * v9.0.0.0 */ (function(){MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.FeedbackController=function(i){if(MadCap.WebHelp.FeedbackController.Shared!=null){return MadCap.WebHelp.FeedbackController.Shared}MadCap.WebHelp.FeedbackController.Shared=this;var d=false;var h=false;var f=new Array();var k=0;var b=this;var g=3000;this.Server=i;this.FeedbackServer=j(i);this.Version=-1;this.FeedbackActive=false;this.PulseServer=null;this.PulseEnabled=false;this.PulseActive=false;this.PulseUserGuid=null;function c(){for(var m=0;mu){var v=q.length-u;var E={ExceedAmount:v};var C=new MadCap.FeedbackException(-1,"URL limit exceeded.",E);throw C}}var r=2048;var t=q.indexOf("?");var m=q.substring(t+1).length;if(m>r){var v=m-r;var E={ExceedAmount:v};var C=new MadCap.FeedbackException(-1,"Query string limit exceeded.",E);throw C}D.id=w;D.setAttribute("type","text/javascript");D.setAttribute("src",q);p.appendChild(D);return w}function e(m){window.setTimeout(function(){var n=document.getElementById(m);n.parentNode.removeChild(n)},10)}this.Init=function(m){if(d){m(this);return}if(m!=null){f.push(m)}if(h){return}h=true;b.GetVersion(function(){if(b.PulseEnabled){b.GetPulseServerActivated(function(n){b.PulseActive=n&&n.toLowerCase()==="true";c()})}else{c()}});window.setTimeout(function(){if(!d){c()}},g)};this.GetUserGuid=function(){return b.PulseEnabled?b.PulseUserGuid:MadCap.Utilities.Store.getItem("LiveHelpUserGuid")};this.LogTopic=function(n,o,m){this.LogTopicOnComplete=function(p){if(m!=null){m()}e(p);this.LogTopicOnComplete=null};this.GetVersion(function(p){if(p==1){l("LogTopic","MadCap.WebHelp.FeedbackController.Shared.LogTopicOnComplete",[["TopicID",n]])}else{l("LogTopic2","MadCap.WebHelp.FeedbackController.Shared.LogTopicOnComplete",[["TopicID",n],["CSHID",o]])}})};this.LogSearch=function(m,p,n,q,o){this.LogSearchOnComplete=function(r){e(r);this.LogSearchOnComplete=null};l("LogSearch","MadCap.WebHelp.FeedbackController.Shared.LogSearchOnComplete",[["ProjectID",m],["UserGuid",p],["ResultCount",n],["Language",q],["Query",o]])};this.AddComment=function(o,q,p,n,s,r,m){this.AddCommentOnComplete=function(t){if(m!=null){m()}e(t);this.AddCommentOnComplete=null};l("AddComment","MadCap.WebHelp.FeedbackController.Shared.AddCommentOnComplete",[["TopicID",o],["UserGuid",q],["Username",p],["Subject",n],["Comment",s],["ParentCommentID",r]])};this.GetAverageRating=function(o,m,n){this.GetAverageRatingOnComplete=function(r,q,p){if(m!=null){m(q,p,n)}e(r);this.GetAverageRatingOnComplete=null};l("GetAverageRating","MadCap.WebHelp.FeedbackController.Shared.GetAverageRatingOnComplete",[["TopicID",o]])};this.SubmitRating=function(o,p,r,m,n){this.SubmitRatingOnComplete=function(s){if(m!=null){m(n)}e(s);this.SubmitRatingOnComplete=null};var q=l("SubmitRating","MadCap.WebHelp.FeedbackController.Shared.SubmitRatingOnComplete",[["TopicID",o],["Rating",p],["Comment",r]])};this.GetTopicComments=function(o,q,p,m,n){this.GetTopicCommentsOnComplete=function(t,s){if(m!=null){m(s,n)}e(t);this.GetTopicCommentsOnComplete=null};var r=l("GetTopicComments","MadCap.WebHelp.FeedbackController.Shared.GetTopicCommentsOnComplete",[["TopicID",o],["UserGuid",q],["Username",p]])};this.GetAnonymousEnabled=function(n,m,o){this.GetAnonymousEnabledOnComplete=function(q,p){if(m!=null){m(p,o)}e(q);this.GetAnonymousEnabledOnComplete=null};l("GetAnonymousEnabled","MadCap.WebHelp.FeedbackController.Shared.GetAnonymousEnabledOnComplete",[["ProjectID",n]])};this.StartActivateUser=function(r,w,u){this.StartActivateUserOnComplete=function(F,E){if(w!=null){w(E,u)}e(F);this.StartActivateUserOnComplete=null};var D=FMCGetChildNodeByAttribute(r.documentElement,"Name","Username");var o=FMCGetAttribute(D,"Value");var s=FMCGetChildNodeByAttribute(r.documentElement,"Name","EmailAddress");var n=FMCGetAttribute(s,"Value");var y=FMCGetChildNodeByAttribute(r.documentElement,"Name","FirstName");var m=FMCGetAttribute(y,"Value");var C=FMCGetChildNodeByAttribute(r.documentElement,"Name","LastName");var x=FMCGetAttribute(C,"Value");var B=FMCGetChildNodeByAttribute(r.documentElement,"Name","Country");var A=FMCGetAttribute(B,"Value");var z=FMCGetChildNodeByAttribute(r.documentElement,"Name","PostalCode");var t=FMCGetAttribute(z,"Value");var p=FMCGetChildNodeByAttribute(r.documentElement,"Name","Gender");var v=FMCGetAttribute(p,"Value");var q="";l("StartActivateUser","MadCap.WebHelp.FeedbackController.Shared.StartActivateUserOnComplete",[["Username",o],["EmailAddress",n],["FirstName",m],["LastName",x],["Country",A],["Zip",t],["Gender",v],["UILanguageOrder",q]])};this.StartActivateUser2=function(p,m,o,q){var n=MadCap.Utilities.Xhr.GetOuterXml(p);this.StartActivateUser2OnComplete=function(s,r){if(m!=null){if(q!=null){m.call(q,r,o)}else{m(r,o)}}e(s);this.StartActivateUser2OnComplete=null};l("StartActivateUser2","MadCap.WebHelp.FeedbackController.Shared.StartActivateUser2OnComplete",[["Xml",n]])};this.UpdateUserProfile=function(p,q,m,o,r){var n=MadCap.Utilities.Xhr.GetOuterXml(q);this.UpdateUserProfileOnComplete=function(t,s){if(m!=null){if(r!=null){m.call(r,s,o)}else{m(s,o)}}e(t);this.UpdateUserProfileOnComplete=null};l("UpdateUserProfile","MadCap.WebHelp.FeedbackController.Shared.UpdateUserProfileOnComplete",[["Guid",p],["Xml",n]])};this.GetUserProfile=function(o,m,n,p){this.GetUserProfileOnComplete=function(r,q){if(m!=null){if(p!=null){m.call(p,q,n)}else{m(q,n)}}e(r);this.GetUserProfileOnComplete=null};l("GetUserProfile","MadCap.WebHelp.FeedbackController.Shared.GetUserProfileOnComplete",[["Guid",o]])};this.CheckUserStatus=function(o,m,n){this.CheckUserStatusOnComplete=function(q,p){if(m!=null){m(p,n)}e(q);this.CheckUserStatusOnComplete=null};l("CheckUserStatus","MadCap.WebHelp.FeedbackController.Shared.CheckUserStatusOnComplete",[["PendingGuid",o]])};this.GetSynonymsFile=function(n,p,m,o){this.GetSynonymsFileOnComplete=function(r,q){if(m!=null){m(q,o)}e(r)};l("GetSynonymsFile","MadCap.WebHelp.FeedbackController.Shared.GetSynonymsFileOnComplete",[["ProjectID",n],["UpdatedSince",p]])};this.GetVersion=function(m,n,o){this.GetVersionOnComplete=function(q,p){if(p==null){b.Version=1}else{if(b.Version==-1&&p>4){b.FeedbackServer=j(b.Server,"Feedback/");b.PulseServer=b.Server;b.PulseEnabled=true}b.FeedbackActive=true;b.Version=p}if(m!=null){if(o!=null){m.call(o,b.Version,n)}else{m(b.Version,n)}}if(q!=null){e(q)}this.GetVersionOnComplete=null};if(b.Version==-1){l("GetVersion","MadCap.WebHelp.FeedbackController.Shared.GetVersionOnComplete")}else{this.GetVersionOnComplete(null,b.Version)}};this.GetPulseServerActivated=function(n,m,o){this.GetPulseServerActivatedOnComplete=function(q,p){if(n!=null){if(o!=null){n.call(o,p,m)}else{n(p,m)}}if(q!=null){e(q)}this.GetPulseServerActivatedOnComplete=null};l("GetPulseServerActivated","MadCap.WebHelp.FeedbackController.Shared.GetPulseServerActivatedOnComplete")};this.GetPulseStreamID=function(n,o,m,p){this.GetPulseStreamIDOnComplete=function(r,q){if(o!=null){if(p!=null){o.call(p,q,m)}else{o(q,m)}}if(r!=null){e(r)}this.GetPulseStreamIDOnComplete=null};l("GetPulseStreamID","MadCap.WebHelp.FeedbackController.Shared.GetPulseStreamIDOnComplete",[["TopicID",n]])};this.GetTopicPathByStreamID=function(o,n,m,p){this.GetTopicPathByStreamIDOnComplete=function(q,r){if(n!=null){if(p!=null){n.call(p,r,m)}else{n(r,m)}}if(q!=null){e(q)}this.GetTopicPathByStreamIDOnComplete=null};l("GetTopicPathByStreamID","MadCap.WebHelp.FeedbackController.Shared.GetTopicPathByStreamIDOnComplete",[["StreamID",o]])};this.GetTopicPathByPageID=function(m,o,n,p){this.GetTopicPathByPageIDOnComplete=function(q,r){if(o!=null){if(p!=null){o.call(p,r,n)}else{o(r,n)}}if(q!=null){e(q)}this.GetTopicPathByPageIDOnComplete=null};l("GetTopicPathByPageID","MadCap.WebHelp.FeedbackController.Shared.GetTopicPathByPageIDOnComplete",[["PageID",m]])};this.GetPulseSearchResults=function(o,r,n,m,q,p,s){this.GetPulseSearchResultsOnComplete=function(u,t){if(q!=null){if(s!=null){q.call(s,t,p)}else{q(t,p)}}if(u!=null){e(u)}this.GetPulseSearchResultsOnComplete=null};l("GetPulseSearchResults","MadCap.WebHelp.FeedbackController.Shared.GetPulseSearchResultsOnComplete",[["ProjectID",o],["SearchQuery",r],["PageSize",n],["PageIndex",m]])}};MadCap.WebHelp.FeedbackController.Shared=null;MadCap.CreateNamespace("Feedback");MadCap.Feedback.LoginDialog=function(c,b){this._FeedbackController=c;this._TimeoutID=-1;this._Mode=b;this._UserGuid=null;this._El=null};var a=MadCap.Feedback.LoginDialog;a.prototype._Init=function(){var c=this;this._El=$(".login-dialog");$(".login-dialog-buttons .submit-button").click(function(d){c.Submit()});$(".login-dialog-buttons .cancel-button").click(function(d){c.Hide(false)});if(this._Mode=="edit"){this._UserGuid=this._FeedbackController.GetUserGuid();this._FeedbackController.GetUserProfile(this._UserGuid,function(f,d){var e=MadCap.Utilities.Xhr.LoadXmlString(f);$(e.documentElement).children("Item").each(function(h,i){var k=$(this);var g=k.attr("Name");var j=k.attr("Value");var m=$(".login-dialog input[name='"+g+"']");if(m.attr("type")=="checkbox"){var l=MadCap.String.ToBool(j,false);m.prop("checked",l)}else{m.val(j)}})},null,this)}else{if(this._Mode=="pulse"){var b=$("#pulse-login-frame");if(b.length==0){c._El.addClass("pulse");c._El.empty();c._El.append('');c._El.append('');$(".close-dialog",c._El).click(function(d){c.Hide(true)});$("#pulse-login-frame").attr("src",c._FeedbackController.PulseServer+"Login")}}}};a.prototype._Cleanup=function(){$(".login-dialog-buttons .submit-button").off("click");$(".login-dialog-buttons .cancel-button").off("click");$(".submit-button").attr("disabled",null);$(".status-message-box").hide();$(".profile-item-wrapper.error").removeClass("error");window.clearTimeout(this._TimeoutID)};a.prototype.Show=function(){this._Init();var b=MadCap.TopicHelpers.AddBackgroundTint("light");$(b).animate({opacity:0.5},200);this._El.fadeIn(200)};a.prototype.Hide=function(b){this._Cleanup();MadCap.TopicHelpers.RemoveBackgroundTint();if(b){this._El.fadeOut()}else{this._El.hide()}$(this).trigger("closed")};a.prototype.Submit=function(){$(".status-message-box").hide();$(".profile-item-wrapper.error").removeClass("error");if(this._CheckErrors()){this._SetStatusMessage("required-fields-missing-message","error");return}var c=this._LoginItemsToXml();var b=this;if(this._Mode=="new"){this._FeedbackController.StartActivateUser2(c,function(d){b._CheckUserStatus(d)});this._SetStatusMessage("verification-email-sent-message")}else{if(this._Mode=="edit"){this._FeedbackController.UpdateUserProfile(this._UserGuid,c,function(d){if(d=="00000000-0000-0000-0000-000000000000"){b.Hide(true)}else{b._CheckUserStatus(d);b._SetStatusMessage("verification-email-sent-message")}})}}$(".submit-button").attr("disabled","disabled")};a.prototype._CheckUserStatus=function(c){var b=this;this._FeedbackController.CheckUserStatus(c,function(d){if(d=="Pending"){b._TimeoutID=setTimeout(function(){b._CheckUserStatus(c)},5000)}else{MadCap.Utilities.Store.setItem("LiveHelpUserGuid",d);b.Hide(true)}})};a.prototype._CheckErrors=function(){var e=false;var d=$(".login-dialog .profile-item-wrapper input, .login-dialog .profile-item-wrapper select");for(var c=0,f=d.length;c0){for(var aa=0;aa0&&Q[0].getElementsByTagName("Url").length>0){var W=X.getElementsByTagName("Subsystems")[0].getElementsByTagName("Url");for(var O=0;O0)};this.LoadConcepts=function(I){if(A){I();return}MadCap.Utilities.Xhr.Load(e+"Data/Concepts.xml",true,function(S){A=new MadCap.Utilities.Dictionary();var L=S.documentElement;for(var N=0;N0){P.n[S].previous=P.n[S-1]}}}P=B(P)}var O=[];var R=false;for(var S=0;S0){I=I.n[I.n.length-1]}}else{if(typeof J.parent!="undefined"){I=J.parent}}return I}function y(M){var L="";var K=-1;var J=null;if(M.n&&M.n.length>0){L=M.toc.entries[M.i].title;K=0}else{K=M.parent.n.indexOf(M)+1}if(L.length>0){L+="|"}L+=("_____"+K);for(var I=M.parent;I&&typeof I.i!=="undefined";I=I.parent){if(L==null){L=""}if(L.length>0){L="|"+L}L=I.toc.entries[I.i].title+L}return L}function i(J,K,I){K.GetToc(J.type,function(O){if(typeof O=="undefined"){I();return}var N=K.IsAutoMerged?J.automerge:K.MergeNode;var V=O.tree;if(typeof V.n!=="undefined"){var M=N.r==1||(K.IsAutoMerged&&N.a=="replace");var T=M||(K.IsAutoMerged&&(N.a=="before-head"||N.a=="after-head"));var P=M||(K.IsAutoMerged&&(N.a=="before-head"||N.a=="after-tail"));var U=P?N.parent:N;if(typeof U.n=="undefined"){U.n=[]}var Q=P?U.n.indexOf(N)+(T?0:1):T?0:U.n.length;var L=V.n.length;for(var R=0;R0){U.n[Q].previous=U.n[Q-1];U.n[Q-1].next=U.n[Q]}var S=Q+L-(M?1:0)-1;if(S>=0&&S+10){MadCap.Utilities.AsyncForeach(l,function(W,X){W.FindNode(I,K,J,function(Y){if(typeof Y!=="undefined"){L(Y);return}X()})},function(){L(M)})}else{L(M)}})})};this.LoadGlossary=function(K,I){var J=this;this.GetGlossary(function(L){J.Glossary=L;K.call(I,L)})};this.GetGlossary=function(I){require([this.GlossaryUrl],function(J){function L(){N++;if(N==O){I(J)}}if(typeof J=="undefined"){I(J);return}var N=0;var O=0;J.chunks=[];var M=new MadCap.Utilities.Url(d.GlossaryUrl).ToFolder();for(var Q=0;QM?1:0});J.f=L.join("; ")}}if(I.e){if(typeof J.e=="undefined"){J.e={}}$.each(I.e,function(M,N){if(typeof J.e[M]!=="undefined"){d.MergeIndexEntries(J.e[M],N)}else{J.e[M]=N}})}};this.FindIndexEntry=function(J,I){d.LoadIndex(function(K){if(!K.entries){K.entries={};$.each(K.terms,function(O,P){K.entries[P.t]=P})}var M=J.split(":");var N=M.length;var L=K.entries[M[0]];if(L){d.LoadRootIndexEntry(L,function(P){var Q=P;for(var O=1;OL?1:0});return I};this.GetSearchDBs=function(I){var J=new Array();MadCap.Utilities.Xhr.Load(e+"Data/Search.xml",true,function(O){function L(Q){if(Q!=null){for(var P=0;PQ.toLowerCase()){L.c+=J.numchunks;J.terms.splice(O,0,L);M++}else{O++}}}for(;ML.toLowerCase()||(M.toLowerCase()==L.toLowerCase()&&S.t.toLowerCase()>R.t.toLowerCase())){R.c+=K.numchunks;K.terms.splice(O,0,R);N++}else{O++}}}for(;N0){var z=F[F.length-1];if(MadCap.String.StartsWith(z,"_____")){B=parseInt(z.substring("_____".length));F.splice(F.length-1,1)}}var H=i;for(var D=0,A=F.length;D=0){if(B==0){C=H}else{C=$(H).children("TocEntry")[B-1]}}else{var E=k(H);var G=t.ToRelative(new MadCap.Utilities.Url(E.GetPath()));var C=s(H,G.FullPath.toLowerCase(),true);if(!C){C=s(H,G.PlainPath.toLowerCase(),false)}}j=null;o=null;x(C)}function y(z){var A=MadCap.Dom.GetAttribute(z,"Chunk");if(A!=null){b.LoadChunk(z,A,function(B){b.GetTocNode(j,o,x)});return true}return false}function u(z){var A=$(z).attr("MergeHint")||-1;if(A>=0){b.LoadMerge(z,function(B){b.GetTocNode(j,o,x)});return true}return false}};this.GetEntrySequenceIndex=function(u,t,w){this.GetTocNode(u,t,v);function v(y){var x=-1;if(y!=null){x=f(y)}w(x)}};this.GetIndexTotalForEntry=function(u,t,w){this.GetTocNode(u,t,v);function v(y){var z=-1;if(y!=null){var x=y;while(x.parentNode!=i){x=x.parentNode}z=MadCap.Dom.GetAttributeInt(x,"DescendantCount",-1)}w(z)}};function g(){for(var t=0,u=n.length;t=0){b.LoadMerge(C,B);return true}return false}}function p(t,w){var v=$(t).children(w+":last")[0];if(v!=null){var u=p(v,w);if(u!=null){return u}return v}return null}function k(u){var w=null;var t=u;while(true){if(t==t.ownerDocument.documentElement){w=h;break}var v=MadCap.Dom.GetAttributeInt(t,"ownerHelpSystemIndex",-1);if(v>=0){w=a[v];break}t=t.parentNode}return w}function m(u){var x="";var w=-1;var v=$(u).children("TocEntry")[0];if(v!=null){x=MadCap.Dom.GetAttribute(u,"Title");w=0}else{w=$(u).index()+1}if(x.length>0){x+="|"}x+=("_____"+w);for(var t=u.parentNode;t!=null&&t.parentNode.nodeType==1;t=t.parentNode){if(x==null){x=""}if(x.length>0){x="|"+x}x=MadCap.Dom.GetAttribute(t,"Title")+x}return x}function f(w){if(w.parentNode==w.ownerDocument.documentElement){return 0}var v=0;var z=MadCap.Dom.GetAttribute(w,"Link");if(z!=null){v++}for(var t=w.previousSibling;t!=null;t=t.previousSibling){if(t.nodeType!=1){continue}var y=MadCap.Dom.GetAttributeInt(t,"DescendantCount",0);v+=y;var z=MadCap.Dom.GetAttribute(t,"Link");if(z!=null){var u=new MadCap.Utilities.Url(z);var x=u.Extension.toLowerCase();if(x=="htm"||x=="html"){v++}}}return v+f(w.parentNode)}};MadCap.WebHelp.TocFile.TocType={Toc:0,BrowseSequence:1};MadCap.WebHelp.AliasFile=function(h,a,e){var d=null;var f=a;var i=null;var g=null;(function(){})();this.Load=function(j){MadCap.Utilities.Xhr.Load(h,true,function k(l){if(l){d=l.documentElement}j()})};this.GetIDs=function(){var j=new Array();c();g.ForEach(function(k,l){j[j.length]=k;return true});return j};this.GetNames=function(){var j=new Array();c();i.ForEach(function(k,l){j[j.length]=k;return true});return j};this.LookupID=function(o){var l=false;var j=null;var m=null;if(o){if(typeof(o)=="string"&&o.indexOf(".")!=-1){var k=o.indexOf("|");if(k!=-1){j=o.substring(0,k);m=o.substring(k+1)}else{j=o}l=true}else{var n=b(o);if(n!=null){l=true;j=n.Topic;m=n.Skin}}}else{l=true}if(j){j=f.ContentFolder+j}return{Found:l,Topic:j,Skin:m}};function b(k){var j=null;c();if(i!=null){if(typeof(k)=="string"){j=i.GetItem(k);if(j==null){j=g.GetItem(k)}}else{if(typeof(k)=="number"){j=g.GetItem(k.toString())}}}return j}function c(){if(i==null){if(d){i=new MadCap.Utilities.Dictionary();g=new MadCap.Utilities.Dictionary();var p=d.getElementsByTagName("Map");for(var m=0;m1){d()}else{g(J.DefaultStartTopic)}O(J.DefaultSkin);J.LoadMergedSearchFilters(function(ar){if(ar==null||ar.GetLength()==0){if(window.PIE){$(".search-submit-wrapper").each(function(){PIE.attach(this)})}return}$(".search-filter-wrapper").show();if(window.PIE){$(".search-filter, .search-submit-wrapper").each(function(){PIE.attach(this)})}var ao=[];ar.ForEach(function(at,au){ao.push(at);return true});ao.sort();for(var ap=0,aq=ao.length;ap").text(ao[ap]))}})})}function c(ai){MadCap.DEBUG.Log.AddLine(window.name+"onhashchange: "+document.location.hash);if(document.location.hash.length>1){d()}else{g(J.DefaultStartTopic)}}function y(){$(".star-buttons").click(ad);U();$(".buttons").on("click",".login-button",function(ai){f=new MadCap.Feedback.LoginDialog(b,b.PulseEnabled?"pulse":"new");if(!b.PulseEnabled){$(f).bind("closed",function(){U()})}f.Show()});$(".buttons").on("click",".edit-user-profile-button",function(ai){if(b.PulseEnabled){document.location.hash="pulse-#!streams/"+b.PulseUserGuid+"/settings"}else{f=new MadCap.Feedback.LoginDialog(b,"edit");$(f).bind("closed",function(){U()});f.Show()}})}function ab(){var ai=$("#search-field").val();if(MadCap.String.IsNullOrEmpty(ai)){return}document.location.hash="search-"+ai}function a(al,ao,am,an,aj){var ai=$.trim($(".search-filter span").text());var ak=$.trim($(".search-filter li").first().text());if(typeof ao=="undefined"){ao=true}if(typeof am=="undefined"){am=J.DisplayCommunitySearchResults}if(typeof an=="undefined"){an=J.CommunitySearchResultsCount}if(typeof aj=="undefined"){aj=0}if(ai==ak){ai=null}$("#resultList").remove();e("search");if(ao){x(al,ai,function(ap){if(am){F(al,ai,an,aj,function(aq){m(al,ap,aq)})}else{m(al,ap,null)}})}else{if(am){F(al,ai,an,aj,function(ap){m(al,null,ap)})}}}function x(al,aj,ai){if(ac==null){ac=new MadCap.WebHelp.SearchPane(J)}var ak=$("#searchPane").addClass("loading");ac.Init(function(){ac.StartSearch(al,aj,function(an){var am=l(an);ak.removeClass("loading");if(ai!=null){ai(am)}},null)})}function F(an,al,ak,aj,ai){if(ac==null){ac=new MadCap.WebHelp.SearchPane(J)}var am=$("#searchPane").addClass("loading");ac.Init(function(){ac.StartPulseSearch(an,ak,aj,function(ao){am.removeClass("loading");if(ai!=null){ai(ao)}})})}function l(ar){var ax=[];for(var aw=0,aq=ar.GetLength();aw0){var aB=document.createElement("li");aB.setAttribute("id","community-results");aC.appendChild(aB);var at=document.createElement("h3");at.setAttribute("class","title");var aF=document.createElement("a");aF.setAttribute("href","#communitysearch-"+aM);aF.appendChild(document.createTextNode("Community Results"));at.appendChild(aF);var am=document.createElement("span");am.appendChild(document.createTextNode(" ("+ar.TotalRecords+")"));at.appendChild(am);var aw=document.createElement("ul");aw.setAttribute("id","communityResultList");aB.appendChild(at);aB.appendChild(aw);var ak=new Date();var al=new Date(ak.getUTCFullYear(),ak.getUTCMonth(),ak.getUTCDate(),ak.getUTCHours(),ak.getUTCMinutes(),ak.getUTCSeconds());for(var aK=0;aK(window.innerWidth*0.85)){return}}else{if(ai=="right"){if(aj<(window.innerWidth*0.15)||aj>(window.innerWidth-175)){return}}}r(aj);$("#navigationResizeBar").css(ai,aj+"px");$("#navigation").css("width",aj+"px");$("#contentBody").css(ai,(aj+5)+"px")}function r(al){var ak=$(".tabs-nav li");$.each(ak,function(an,ao){var am=$(ao);if(am.hasClass("tab-collapsed")){am.removeClass("tab-collapsed")}});if(al=0;aj--){var ai=$(ak[aj]);ai.addClass("tab-collapsed");if(al>Y()+18){break}}}}function Y(){var aj=0;var ai=$(".tabs-nav li");ai.each(function(al,ak){var am=$(ak);aj+=parseInt(am.css("width"))});return aj}function E(ai){var aj=$("#navigation");if(!aj.hasClass("nav-closed")){N("hide")}else{N("show")}}function N(ak){var ai=$(document.documentElement).hasClass("left-layout")?"left":$(document.documentElement).hasClass("right-layout")?"right":"left";var am=$("#navigation");var aj=$("#navigationResizeBar");var al=$("#contentBody");if(ak=="show"){al.css(ai,al.attr("data-mc-last-width"));aj.css(ai,aj.attr("data-mc-last-width"));am.removeClass("nav-closed");aj.removeClass("nav-closed");al.removeClass("nav-closed")}else{if(ak=="hide"){al.attr("data-mc-last-width",al.css(ai));al.css(ai,"5px");aj.attr("data-mc-last-width",aj.css(ai));aj.css(ai,0);am.addClass("nav-closed");aj.addClass("nav-closed");al.addClass("nav-closed")}}}function d(){if(document.location.hash.length==0){return}if(MadCap.String.Contains(document.location.hash,"javascript:")||MadCap.String.Contains(document.location.hash,"data:")||MadCap.String.Contains(document.location.hash,"