/*
* 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;a<c;a++){var b=d[a];if(b=="MadCap"){continue}if(typeof(e[b])!="undefined"){e=e[b];continue}e[b]={};e=e[b]}return e};if(!Object.create){Object.create=function(b){if(arguments.length>1){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<e.length){return false}var d=f;var b=e;if(!c){d=d.toLowerCase();b=b.toLowerCase()}if(d.substring(0,b.length)==b){return true}else{return false}};a.EndsWith=function(f,e,c){if(e==null){return false}if(f.length<e.length){return false}var d=f;var b=e;if(!c){d=d.toLowerCase();b=b.toLowerCase()}if(d.substring(d.length-b.length)==b){return true}else{return false}};a.Contains=function(h,g,c){var d=c?h:h.toLowerCase();if($.isArray(g)){for(var e=0,f=g.length;e<f;e++){var b=c?g[e]:g[e].toLowerCase();if(d.indexOf(b)!=-1){return true}}return false}var b=c?g:g.toLowerCase();return d.indexOf(b)!=-1};a.Trim=function(b){return a.TrimRight(a.TrimLeft(b))};a.TrimLeft=function(d){var b=0;var c=d.length;for(b=0;b<c&&d.charAt(b)==" ";b++){}return d.substring(b,d.length)};a.TrimRight=function(c){var b=0;for(b=c.length-1;b>=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;e<h;e++){var f=j[e];if($(f).hasClass(g)){d[d.length]=f}}return d};a.GetElementsByAttribute=function(h,k,l,j){l=l||"*";j=j||document;var c=new Array();var b=j.getElementsByTagName(l);for(var g=0,e=b.length;g<e;g++){var d=b[g];var f=a.GetAttribute(d,h);if(f==k){c[c.length]=d}}return c};a.GetChildNodeByTagName=function(d,f,e){var c=null;var g=-1;for(var b=d.firstChild;b!=null;b=b.nextSibling){if(b.nodeName.toLowerCase()==f.toLowerCase()){g++;if(g==e){c=b;break}}}return c};a.GetAncestorNodeByTagName=function(d,e,f){f=f||document.body;var c=null;var b=d.parentNode;while(b!=null&&b!=f){if(b.nodeName.toLowerCase()==e.toLowerCase()){c=b;break}b=b.parentNode}return c};a.GetAttribute=function(b,e){var d=b.getAttribute(e);if(d==null){d=b.getAttribute(e.toLowerCase());if(d==null){var c=e.indexOf(":");if(c!=-1){d=b.getAttribute(e.substring(c+1,e.length))}}}return d};a.GetAttributeInt=function(e,c,b){var d=b;var f=a.GetAttribute(e,c);if(f!=null){d=parseInt(f)}return d};a.GetAttributeBool=function(e,d,c){var b=null;var f=a.GetAttribute(e,d);if(f!=null){b=MadCap.String.ToBool(f,c)}return b};a.GetScrollPosition=function(){var b=0;var c=0;if(typeof(window.pageYOffset)!="undefined"){b=window.pageXOffset;c=window.pageYOffset}else{if(typeof(document.documentElement.scrollTop)!="undefined"&&document.documentElement.scrollTop>0){b=document.documentElement.scrollLeft;c=document.documentElement.scrollTop}}return{X:b,Y:c}}})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.1.2.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<g;k++){var o=h[k];var l=j(o.Key,o.Value);if(l!=undefined&&!l){return}}};a.prototype.GetItem=function(g){if(this._IgnoreCase){g=g.toLowerCase()}var h=null;if(typeof(this._Map[g])=="function"){var f=this.GetItemOverflowIndex(g);if(f>=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<h;f++){if(j[f].Key==g){return f}}return -1};a.prototype.Remove=function(g){if(this._IgnoreCase){g=g.toLowerCase()}if(typeof(this._Map[g])=="function"){var f=this.GetItemOverflowIndex(g);if(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<y;A++){var z=C[A];var B=z.indexOf("=");var E=null;var D=null;if(B>=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.StripInvalidCharacters=function(f){return f.replace(/(javascript:|data:|[<>])/gi,"")};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;h<f;h++){var g=k[h];if(o.length>1&&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(;k<l;k++){var g=this._Segments[k];var f=n._Segments[k];if(g!=f){break}}var m="";var o=MadCap.String.EndsWith(n.FullPath,"/")?0:1;for(var h=0;h<l-k-o;h++){m+="../"}for(var h=k;h<this._Segments.length;h++){if(h>k){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;g<j;g++){if(g>0){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;g<j;g++){if(g>0){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;p<g;p++){if(h[p]=="null"){h[p]=null}}}if(m=="request"){var k=false;var x=true;var v=new Array();for(var p=0,g=d._MessageHandlerFuncs.length;p<g;p++){var w=d._MessageHandlerFuncs[p];var u=w.HandlerFunc;var q=w.ContextObj;var r=null;if(q!=null){r=u.call(q,l,h,v,s.source,f)}else{r=u(l,h,v,s.source,f)}k=r.Handled;x=r.FireResponse;if(k){break}}if(!k){if(l=="DEBUG-AddLine"){var l=h[0];MadCap.DEBUG.Log.AddLine(l);k=true}else{if(l=="url"){v[v.length]=document.location.href;k=true}else{if(l=="get-title"){v[v.length]=document.title;k=true}else{if(l=="navigate"){var n=h[0];document.location.href=n;k=true}}}}}if(x){d._PostMessageResponse(s.source,l,v.length>0?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;g<f;g++){j(l[g],function(){h++;if(h===l.length){k()}})}};MadCap.Utilities.Store=(function(){if(window.localStorage){return window.localStorage}var g="MadCap";var h=document.createElement("div");h.style.display="none";document.getElementsByTagName("head")[0].appendChild(h);if(h.addBehavior){h.addBehavior("#default#userdata");h.load(g);return{getItem:function(i){return h.XMLDocument.documentElement.getAttribute(i)},setItem:function(i,j){h.XMLDocument.documentElement.setAttribute(i,j);h.save(g)},removeItem:function(i){h.removeAttribute(i);h.save(g)}}}var f="data-"+g+"-";return{getItem:function(i){var j=h.getAttribute(f+i);return j?decodeURIComponent(j):j},setItem:function(i,j){h.setAttribute(f+i,j?encodeURIComponent(j):null)},removeItem:function(i){h.removeAttribute(f+i)}}})()})();Array.prototype.Remove=function(a){if(a<0||a>this.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.1.2.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.ActiveXObject)&&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;c<a._MicrosoftXmlDomProgIDs.length;c++){var d=a._MicrosoftXmlDomProgIDs[c];try{e=new ActiveXObject(d);a._MicrosoftXmlDomProgID=d;break}catch(b){}}}else{e=new ActiveXObject(a._MicrosoftXmlDomProgID)}return e};a._GetXhrObject=function(){if(window.XMLHttpRequest){return function(){return new window.XMLHttpRequest()}}else{if(window.ActiveXObject){return function(){var e=null;if(a._MicrosoftXmlHttpProgID==null){for(var c=0;c<a._MicrosoftXmlHttpProgIDs.length;c++){var d=a._MicrosoftXmlHttpProgIDs[c];try{e=new ActiveXObject(d);a._MicrosoftXmlHttpProgID=d;break}catch(b){}}}else{e=new ActiveXObject(a._MicrosoftXmlHttpProgID)}return e}}}}()})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){MadCap.CreateNamespace("TopicHelpers");var a=MadCap.TopicHelpers;a.TextEffectControl=function(d,c){if(this._rootEl==null){this._rootEl=d}this._hotSpotEl=null;this._bodyEls=null;this._className=c;a.TextEffectControl.Controls[a.TextEffectControl.Controls.length]=this;var b=this;(function(){b._hotSpotEl=MadCap.Dom.GetElementsByClassName(b._className+"HotSpot",null,b._rootEl)[0];b._bodyEls=MadCap.Dom.GetElementsByClassName(b._className+"Body",null,b._rootEl);$(b._hotSpotEl).click(function(f){b.Toggle.call(b)})})()};a.TextEffectControl.Controls=new Array();a.TextEffectControl.FindControl=function(c){for(var b=0;b<a.TextEffectControl.Controls.length;b++){if(a.TextEffectControl.Controls[b]._rootEl==c){return a.TextEffectControl.Controls[b]}}return null};a.TextEffectControl.ExpandAll=function(b){for(var c=0,d=a.TextEffectControl.Controls.length;c<d;c++){var e=a.TextEffectControl.Controls[c];if(b=="open"){e.Open()}else{if(b=="close"){e.Close(true)}}}};a.TextEffectControl.prototype.Open=function(){var b=$(this._rootEl);b.removeClass(this._className+"_Closed");b.addClass(this._className+"_Open");b.attr("data-mc-state","open")};a.TextEffectControl.prototype.Close=function(){var b=$(this._rootEl);b.removeClass(this._className+"_Open");b.addClass(this._className+"_Closed");b.attr("data-mc-state","closed")};a.TextEffectControl.prototype.Toggle=function(){var d=$(this._rootEl);var b=d.attr("data-mc-state")||"closed";var c=null;if(b=="open"){this.Close(true)}else{if(b=="closed"){this.Open()}}};$(function(){var c=$(".MCExpanding");for(var b=0,d=c.length;b<d;b++){var f=c[b];var e=new MadCap.TopicHelpers.ExpandingControl(f);e.Init()}});a.ExpandingControl=function(b){a.TextEffectControl.call(this,b,"MCExpanding")};MadCap.Extend(a.TextEffectControl,a.ExpandingControl);a.ExpandingControl.prototype.Init=function(){this.Close(false)};a.ExpandingControl.prototype.Open=function(){this.base.Open.call(this);$(this._bodyEls[0]).css({"white-space":"nowrap"}).hide().animate({width:"show"},function(){$(this).css({"white-space":"normal"})})};a.ExpandingControl.prototype.Close=function(c){if(!c){$(this._bodyEls[0]).hide();this.base.Close.call(this);return}var b=this;$(this._bodyEls[0]).css({"white-space":"nowrap"}).animate({width:"hide"},function(){$(this).css({"white-space":"normal"});b.base.Close.call(b)})};$(function(){var d=$(".MCDropDown");for(var c=0,e=d.length;c<e;c++){var b=d[c];var f=new MadCap.TopicHelpers.DropDownControl(b);f.Init(false)}});a.DropDownControl=function(b){a.TextEffectControl.call(this,b,"MCDropDown")};MadCap.Extend(a.TextEffectControl,a.DropDownControl);a.DropDownControl.prototype.Init=function(){this.Close(false)};a.DropDownControl.prototype.Open=function(){this.base.Open.call(this);$(this._bodyEls[0]).hide().slideDown()};a.DropDownControl.prototype.Close=function(c){if(!c){this.base.Close.call(this);return}var b=this;$(this._bodyEls[0]).slideUp(function(){b.base.Close.call(b)})};$(function(){var d=$(".MCToggler");for(var b=0,c=d.length;b<c;b++){var f=d[b];var e=new MadCap.TopicHelpers.TogglerControl(f);e.Init()}});a.TogglerControl=function(c){this._rootEl=c;this._hotSpotEl=c;this._bodyEls=new Array();this._className="MCToggler";a.TextEffectControl.Controls[a.TextEffectControl.Controls.length]=this;var b=this;(function(){var h=MadCap.Dom.Dataset(b._rootEl,"mcTargets");var d=h.split(";");for(var f=0,g=d.length;f<g;f++){var j=d[f];var e=MadCap.Dom.GetElementsByAttribute("data-mc-target-name",j,null,document.body);b._bodyEls=b._bodyEls.concat(e)}$(b._hotSpotEl).click(function(i){b.Toggle.call(b)})})()};MadCap.Extend(a.TextEffectControl,a.TogglerControl);a.TogglerControl.prototype.Init=function(){this.Close(false)};a.TogglerControl.prototype.Open=function(){this.base.Open.call(this);for(var b=0,c=this._bodyEls.length;b<c;b++){$(this._bodyEls[b]).css({opacity:0,display:""});$(this._bodyEls[b]).animate({opacity:1},200)}};a.TogglerControl.prototype.Close=function(c){this.base.Close.call(this);function f(g){$(g).css("display","none")}for(var d=0,e=this._bodyEls.length;d<e;d++){var b=this;if(c){$(this._bodyEls[d]).animate({opacity:0},200,function(){f(this)})}else{f(this._bodyEls[d])}}};$(function(){var b=$(".MCTextPopup");for(var c=0,e=b.length;c<e;c++){var f=b[c];var d=new MadCap.TopicHelpers.TextPopupControl(f);d.Init()}});a.TextPopupControl=function(c){this._rootEl=c;this._hotSpotEl=c;this._bodyEls=null;this._className="MCTextPopup";var b=this;(function(){b._bodyEls=$("."+b._className+"Body",b._rootEl).toArray();$(b._hotSpotEl).mouseover(function(d){b.Open()});$(b._hotSpotEl).mouseleave(function(d){b.Close()})})()};MadCap.Extend(a.TextEffectControl,a.TextPopupControl);a.TextPopupControl.prototype.Init=function(){this.Close(false)};a.TextPopupControl.prototype.Open=function(){this.base.Open.call(this);var w=$(this._rootEl);var j=$(this._bodyEls[0]);var e=$(".MCTextPopupArrow",w);var q=$(window);j.css("height","auto");var h=13;var t=w.offset().top;var k=w.offset().left;var l=t+this._rootEl.offsetHeight;var r=j[0].offsetWidth;var m=j[0].offsetHeight;var y=k+(w[0].offsetWidth/2);var f=y-(r/2);var v=f+r;var p=l+h;var d=q.scrollTop();var s=q.scrollLeft();var c=-e[0].offsetWidth/2;var b=q.width();var o=d+q.height()-l;if((m+h)>o){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<s){c+=(f-s)}f=Math.min(f,s+b-r);f=Math.max(f,s);j.css("left",f+"px");e.css("margin-left",c+"px");j.animate({opacity:1},200)};a.TextPopupControl.prototype.Close=function(){this.base.Close.call(this);var b=$(this._bodyEls[0]);b.css("opacity",0)};$(function(){var f=$(".MCTopicPopup");for(var c=0,d=f.length;c<d;c++){var b=f[c];var e=new MadCap.TopicHelpers.TopicPopupControl(b);e.Init()}});a.TopicPopupControl=function(c){this._rootEl=c;this._hotSpotEl=c;this._bodyEls=null;this._className="MCTopicPopup";var b=this;(function(){b._bodyEls=$("."+b._className+"Body",b._rootEl).toArray();$(b._hotSpotEl).click(function(d){b.Open();$(document.documentElement).click(function(f){b.Close();$(document.documentElement).off("click",arguments.callee)});d.stopPropagation();d.preventDefault()})})()};MadCap.Extend(a.TextEffectControl,a.TopicPopupControl);a.TopicPopupControl.prototype.Init=function(){this.Close(false)};a.TopicPopupControl.prototype.Open=function(){this.base.Open.call(this);var f=$("<div></div>");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=$("<div class='link-list-popup needs-pie'><ul></ul></div>");var q=j.children("ul");var x=$(w).attr("target");for(var u=0,f=k.length;u<f;u++){var v=k[u];var m=$("<li><a></a></li>").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=$("<div id='mc-background-tint'></div>");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;m<f.length;m++){f[m](b)}d=true}function j(o,n){if(o==null){return null}if(typeof n=="undefined"){n=""}var m=new MadCap.Utilities.Url(o);m=m.CombinePath(n+"Service.FeedbackExplorer/FeedbackJsonService.asmx/");return m.FullPath}function l(A,z,s,o){var D=document.createElement("script");var p=document.getElementsByTagName("head")[0];var w="MCLiveHelpScript_"+k++;var q=b.FeedbackServer+A+"?";q+="OnComplete="+z+"&ScriptID="+w+"&UniqueID="+(new Date()).getTime();if(s!=null){for(var B=0,n=s.length;B<n;B++){var x=s[B];var F=x[0];var y=encodeURIComponent(x[1]);q+=("&"+F+"="+y)}}if(document.body.currentStyle!=null){var u=2083;if(q.length>u){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('<iframe id="pulse-login-frame" name="pulse-login-html5" style="visibility:hidden;" onload="this.style.visibility=\'visible\';"></iframe>');c._El.append('<button class="close-dialog"></button>');$(".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;c<f;c++){var b=d[c];var j=$(b);var g=j.val();var h=MadCap.String.ToBool(MadCap.Dom.Dataset(b,"required"),false);if(h&&MadCap.String.IsNullOrEmpty(g)){j.closest(".profile-item-wrapper").addClass("error");e=true}}return e};a.prototype._LoginItemsToXml=function(){var m=MadCap.Utilities.Xhr.CreateXmlDocument("FeedbackUserProfile");var h=m.documentElement;var b=$(".login-dialog .profile-item-wrapper input");for(var e=0,d=b.length;e<d;e++){var j=b[e];var g=$(j);var c=g.attr("name");var f=g.attr("type");var k=f=="checkbox"?j.checked:g.val();var l=m.createElement("Item");l.setAttribute("Name",c);l.setAttribute("Value",k.toString());h.appendChild(l)}return m};a.prototype._SetStatusMessage=function(b,c){var d=$(".status-message-box");if(c=="error"){d.addClass("error")}else{d.removeClass("error")}$(".message").hide();$("."+b).show();d.fadeIn()};MadCap.FeedbackException=function(c,b,d){MadCap.Exception.call(this,c,b);this.Data=d};MadCap.FeedbackException.prototype=new MadCap.Exception();MadCap.FeedbackException.prototype.constructor=MadCap.FeedbackException;MadCap.FeedbackException.prototype.base=MadCap.Exception.prototype})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.1.0.0
*/
MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.HelpSystem=function(v,m,n,b,D){var d=this;var r=v;var e=new MadCap.Utilities.Url(n).ToFolder().ToFolder().FullPath;var o=null;var l=new Array();var w=b;var k=D;var q=null;var t=new MadCap.Utilities.Dictionary();var A=null;var F=new MadCap.Utilities.Dictionary();var c=false;var p=new MadCap.WebHelp.AliasFile(e+"Data/Alias.xml",this);var G=new MadCap.WebHelp.TocFile(this,MadCap.WebHelp.TocFile.TocType.Toc);var h=null;var s=new MadCap.WebHelp.TocFile(this,MadCap.WebHelp.TocFile.TocType.BrowseSequence);var u=new MadCap.Utilities.Dictionary();this.TargetType=null;this.DefaultStartTopic=null;this.InPreviewMode=null;this.LiveHelpOutputId=null;this.LiveHelpServer=null;this.LiveHelpEnabled=false;this.IsWebHelpPlus=false;this.ContentFolder=null;this.UseCustomTopicFileExtension=false;this.CustomTopicFileExtension=null;this.GlossaryUrl=null;this.SearchFilterSetUrl=null;this.SyncTOC=null;this.DefaultSkin=null;this.IsAutoMerged=false;(function(){})();this.Load=function(I){MadCap.Utilities.Xhr.Load(n,true,function(X){var P=0;function L(){P++;if(P==l.length){I()}}function Y(ab,Z){if(l.length>0){for(var aa=0;aa<l.length;aa++){l[aa].Load(ab)}}else{Z()}}c=X!=null;if(!c){I();return}this.TargetType=X.documentElement.getAttribute("TargetType");this.DefaultStartTopic=X.documentElement.getAttribute("DefaultUrl");this.InPreviewMode=MadCap.Dom.GetAttributeBool(X.documentElement,"InPreviewMode",false);this.LiveHelpOutputId=X.documentElement.getAttribute("LiveHelpOutputId");this.LiveHelpServer=X.documentElement.getAttribute("LiveHelpServer");this.LiveHelpEnabled=this.LiveHelpOutputId!=null;this.MoveContentToRoot=MadCap.Dom.GetAttributeBool(X.documentElement,"MoveOutputContentToRoot",false);var N=MadCap.Dom.GetAttributeBool(X.documentElement,"ServerEnabled",false);this.IsWebHelpPlus=(this.TargetType=="WebHelpPlus"||N)&&MadCap.String.StartsWith(document.location.protocol,"http",false);var V=MadCap.Dom.GetAttributeBool(X.documentElement,"MakeFileLowerCase",false);var J="";if(!this.MoveContentToRoot){J="Content/"}if(V){J=J.toLowerCase()}this.ContentFolder=J;this.UseCustomTopicFileExtension=MadCap.Dom.GetAttributeBool(X.documentElement,"UseCustomTopicFileExtension",false);this.CustomTopicFileExtension=MadCap.Dom.GetAttribute(X.documentElement,"CustomTopicFileExtension");this.GlossaryUrl=E(X,"Glossary");this.TocUrl=E(X,"Toc");this.BrowseSequencesUrl=E(X,"BrowseSequence");this.IndexUrl=E(X,"Index");this.SearchFilterSetUrl=E(X,"SearchFilterSet");this.HasBrowseSequences=X.documentElement.getAttribute("BrowseSequence")!=null;this.HasToc=X.documentElement.getAttribute("Toc")!=null;H.call(this,X);this.DefaultSkin=this.GetSkin($(X.documentElement).attr("SkinName"));this.SyncTOC=MadCap.String.ToBool(this.DefaultSkin.AutoSyncTOC,false);this.DisplayCommunitySearchResults=MadCap.String.ToBool(this.DefaultSkin.DisplayCommunitySearchResults,true);this.CommunitySearchResultsCount=MadCap.String.ToInt(this.DefaultSkin.CommunitySearchResultsCount,3);var Q=X.getElementsByTagName("Subsystems");if(Q.length>0&&Q[0].getElementsByTagName("Url").length>0){var W=X.getElementsByTagName("Subsystems")[0].getElementsByTagName("Url");for(var O=0;O<W.length;O++){var S=W[O];if(!S){continue}var K=S.getAttribute("Source");var M=K.substring(0,K.lastIndexOf("/")+1);var U=S.getAttribute("TocPath");var R=S.getAttribute("BrowseSequencePath");var T=new MadCap.WebHelp.HelpSystem(this,e+M,e+M+"Data/HelpSystem.xml",U,R);l.push(T)}}if(!d.IsAutoMerged&&this.IsWebHelpPlus){MadCap.Utilities.Xhr.CallWebService(this.GetPath()+"Service/Service.asmx/GetSubsystems",true,function(aa,Z){$.each(aa.documentElement.childNodes,function(ab,ac){if(ac.nodeName=="Subsystems"){$.each(ac.childNodes,function(ag,ah){if(ah.nodeName=="Url"){var af=ah.getAttribute("Source");var ad=af.substring(0,af.lastIndexOf("/")+1);if(ad){var ae=new MadCap.WebHelp.HelpSystem(d,e+ad,e+ad+"Data/HelpSystem.xml",null,null);ae.IsAutoMerged=true;l.push(ae)}}})}});Y(L,I)})}else{Y(L,I)}},null,this)};this.GetExists=function(){return c};this.GetMasterHelpsystem=function(){var I=this;for(var J=I.GetParentSubsystem();J!=null;J=J.GetParentSubsystem()){I=J}return I};this.GetParentSubsystem=function(){return r};this.GetPath=function(){return e};this.GetAbsolutePath=function(){if(o==null){var I=new MadCap.Utilities.Url(e);o=I.IsAbsolute?I.FullPath:new MadCap.Utilities.Url(document.location.href).Path}return o};this.GetContentPath=function(){return e+this.ContentFolder};this.GetSkin=function(I){return u.GetItem(I)};this.GetTocPath=function(I){return I=="toc"?w:k};this.GetFullTocPath=function(I,K){var L=this.GetHelpSystem(K);if(L==null){return null}var J=new Object();J.tocPath=this.GetTocPath(I);L.ComputeTocPath(I,J);return J.tocPath};this.ComputeTocPath=function(I,J){if(r){var K=this.GetTocPath(I);if(!MadCap.String.IsNullOrEmpty(K)){J.tocPath=J.tocPath?K+"|"+J.tocPath:K}r.ComputeTocPath(I,J)}};this.GetHelpSystem=function(J){var K=null;for(var I=0;I<l.length;I++){K=l[I].GetHelpSystem(J);if(K!=null){return K}}if(MadCap.String.StartsWith(J,e,false)){return this}return null};this.GetSubsystem=function(I){return l[I]};this.GetMergedAliasIDs=function(I){p.Load(function(){function O(Q){for(var P=0,R=Q.length;P<R;P++){N[N.length]=Q[P]}L++;if(L==M+1){I(N)}}var N=new Array();var M=l.length;var L=0;var K=p.GetIDs();O(K);for(var J=0;J<M;J++){l[J].GetMergedAliasIDs(O)}})};this.GetMergedAliasNames=function(I){p.Load(function(){function N(Q){for(var P=0,R=Q.length;P<R;P++){J[J.length]=Q[P]}L++;if(L==M+1){I(J)}}var J=new Array();var M=l.length;var L=0;var O=p.GetNames();N(O);for(var K=0,M=l.length;K<M;K++){l[K].GetMergedAliasNames(N)}})};this.LookupCSHID=function(J,I){p.Load(function(){function K(Q){if(P){return}M++;if(Q.Found){P=true;I(Q);return}if(M==N){I(O)}}var O=p.LookupID(J);if(O.Found){O.Topic=d.GetPath()+O.Topic;I(O);return}if(l.length==0){I(O);return}var P=false;var M=0;for(var L=0,N=l.length;L<N;L++){l[L].LookupCSHID(J,K)}})};this.GetTocFile=function(){return G};this.GetBrowseSequenceFile=function(){return s};this.IsMerged=function(){return(l.length>0)};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;N<L.childNodes.length;N++){var Q=L.childNodes[N];if(Q.nodeType!=1){continue}var K=Q.getAttribute("Term").toLowerCase();var R=new Array();for(var M=0;M<Q.childNodes.length;M++){var O=Q.childNodes[M];if(O.nodeType!=1){continue}var P=O.getAttribute("Title");var J=O.getAttribute("Link");J=e+((J.charAt(0)=="/")?J.substring(1,J.length):J);R[R.length]={Title:P,Link:J}}A.Add(K,R)}I()},null,null)};this.LoadAllConcepts=function(I){function N(){K++;if(K==L+1){I()}}var K=0;var L=l.length;this.LoadConcepts(N);for(var J=0;J<L;J++){var M=l[J];if(!M.GetExists()){N();continue}M.LoadConcepts(N)}};this.GetConceptsLinks=function(M,I,L){if(this.IsWebHelpPlus){function N(W,T){var V=new Array();var P=W.documentElement.getElementsByTagName("Url");var R=P.length;for(var S=0;S<R;S++){var Q=P[S];var U=Q.getAttribute("Title");var O=Q.getAttribute("Source");O=e+((O.charAt(0)=="/")?O.substring(1,O.length):O);V[V.length]={Title:U,Link:O}}I(V,L)}MadCap.Utilities.Xhr.CallWebService(e+"Service/Service.asmx/GetTopicsForConcepts?Concepts="+M,true,N)}else{var J=null;M=M.replace("\\;","%%%%%");if(M==""){J=new Array();I(J,L)}var K=M.split(";");this.GetConceptsLinksLocal(K,function(O){I(O,L)})}};this.GetConceptsLinksLocal=function(P,I){function L(R){for(var Q=0;Q<R.length;Q++){J[J.length]=R[Q]}M++;if(M==O){I(J)}}var M=0;var O=P.length;var J=new Array();for(var K=0;K<P.length;K++){var N=P[K];N=N.replace("%%%%%",";");N=N.toLowerCase();this.GetConceptLinksLocal(N,L)}};this.GetConceptLinksLocal=function(J,I){this.LoadConcepts(function(){function N(R){z(K,R);O++;if(O==P){F.Add(J,K);var S=$.extend(true,[],K);I(S)}}var K=F.GetItem(J);if(K!=null){var M=$.extend(true,[],K);I(M);return}K=A.GetItem(J);if(!K){K=new Array(0)}var O=0;var P=0;for(var L=0;L<l.length;L++){var Q=l[L];if(!Q.GetExists()){continue}P++}if(P==0){I(K);return}for(var L=0;L<l.length;L++){var Q=l[L];if(!Q.GetExists()){continue}Q.GetConceptLinksLocal(J,N)}})};this.LoadToc=function(K,L,I){var J=this;var M=J[K];if(typeof M!=="undefined"){L.call(I,M)}else{this.GetToc(K,function(N){L.call(I,N)})}};this.GetToc=function(L,I){var J=this;var K=this[L+"Url"];require([K],function(Q){if(typeof Q=="undefined"){I(Q);return}J[L]=Q;Q.type=L;Q.helpSystem=J;Q.chunks=[];Q.entries=[];Q.nodes={};var N=new MadCap.Utilities.Url(K).ToFolder();for(var T=0;T<Q.numchunks;T++){Q.chunks[T]={path:N.AddFile(Q.prefix+T+".js").FullPath,loaded:false}}var P=Q.tree;var U={};Q.automerge=Q.tree;while(P!=null){P.toc=Q;P.childrenLoaded=false;Q.nodes[P.i]=P;if(typeof P.m!=="undefined"){U[P.m]=P}if(typeof P.a!=="undefined"){Q.automerge=P}if(typeof P.n!=="undefined"){for(var S=0;S<P.n.length;S++){P.n[S].parent=P;if(S<P.n.length-1){P.n[S].next=P.n[S+1]}if(S>0){P.n[S].previous=P.n[S-1]}}}P=B(P)}var O=[];var R=false;for(var S=0;S<l.length;S++){var M=l[S];if(M.GetExists()){if(!M.IsAutoMerged){M.MergeNode=U[S]}else{R=true}if(M.IsAutoMerged||typeof M.MergeNode!=="undefined"){O.push(M)}}else{f(U[S])}}if(!R&&Q.automerge.a=="replace"){f(Q.automerge)}if(O.length==0){I(Q);return}MadCap.Utilities.AsyncForeach(O,function(V,W){i(Q,V,W)},function(){I(Q)})})};function f(M){var K=M.parent;var L=M.previous;var J=M.next;if(L){L.next=J;M.previous=null}if(J){J.previous=L;M.next=null}if(K){var I=M.parent.n.indexOf(M);K.n.splice(I,1);M.parent=null}}function B(J){var I=null;if(typeof J.n!="undefined"){I=J.n[0]}else{if(typeof J.next!="undefined"){I=J.next}else{I=J;while(typeof I.parent!="undefined"){if(typeof I.parent.next!="undefined"){I=I.parent.next;break}else{I=I.parent}}if(typeof I.parent=="undefined"){I=null}}}return I}function j(J){var I=null;if(typeof J.previous!="undefined"){I=J.previous;while(typeof I.n!=="undefined"&&I.n.length>0){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;R<L;R++){V.n[R].parent=U;U.n.splice(Q+R,0,V.n[R])}if(M){U.n.splice(Q+L,1)}if(Q>0){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+1<U.n.length){U.n[S].next=U.n[S+1];U.n[S+1].previous=U.n[S]}if(K.IsAutoMerged){J.automerge=U.n[Q+L-1];J.automerge.a="after-tail"}}I()})}this.LoadTocChunk=function(K,I,J){require([K.chunks[I].path],function(L){if(!K.chunks[I].loaded){for(var N in L){for(var M=0;M<L[N].i.length;M++){K.entries[L[N].i[M]]={link:N,title:L[N].t[M],bookmark:L[N].b[M]}}}K.chunks[I].loaded=true}if(J){J(L)}})};this.GetTocEntryHref=function(T,M){var L=T.toc;var P=L.entries[T.i];var S=P.link+P.bookmark;var K=null;if(typeof T.m=="undefined"&&S!="___"){var J=null;var O=new MadCap.Utilities.Url(S);var I=L.helpSystem;var N=I.GetPath();var R=I.GetMasterHelpsystem().GetContentPath();if(!O.IsAbsolute){if(!MadCap.String.IsNullOrEmpty(N)){var O=new MadCap.Utilities.Url(N).CombinePath(S);J=O.ToRelative(R)}else{J=O.ToRelative("/"+R)}}else{J=O}if(typeof T.f!="undefined"){if(J.IsAbsolute){K=J.FullPath}else{K=R+J.FullPath}}else{K="#"+J.FullPath}}if(K!=null&&M){var Q=y(T);K+=encodeURIComponent("?"+M+"Path="+Q)}return K};this.FindTocNode=function(K,I,J){d.FindNode("Toc",K,I,J)};this.FindBrowseSequenceNode=function(K,I,J){d.FindNode("BrowseSequences",K,I,J)};this.FindNode=function(I,K,J,L){d.LoadToc(I,function(R){var N=new MadCap.Utilities.Url(d.GetMasterHelpsystem().GetContentPath());var O=J;var Q=0;var M;if(!J.IsAbsolute){var O=!MadCap.String.IsNullOrEmpty(N.FullPath)?N.CombinePath(J):J;O=O.ToRelative(d.GetPath());O=new MadCap.Utilities.Url("/"+O.FullPath)}for(var P=1;P<R.chunkstart.length;P++){if(R.chunkstart[P]<=O.PlainPath){Q++}}d.LoadTocChunk(R,Q,function(S){var U=S[O.PlainPath];if(typeof U!=="undefined"){var V=null;if(!M){M=R.nodes[U.i[0]]}if(K){for(var T=0;T<U.i.length;T++){if(y(R.nodes[U.i[T]])==K){V=U.i[T];break}}}else{for(var T=0;T<U.i.length;T++){if(U.b[T].toLowerCase()==O.Fragment.toLowerCase()){V=U.i[T];break}}}if(V!=null){L(R.nodes[V]);return}}if(l.length>0){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;Q<J.numchunks;Q++){J.chunks.push(M.AddFile(J.prefix+Q+".js").FullPath)}for(var K=0;K<l.length;K++){var P=l[K];if(!P.GetExists()){continue}O++}if(O==0){I(J);return}for(var K=0;K<l.length;K++){var P=l[K];if(!P.GetExists()){continue}a(J,P,L)}})};this.LoadIndex=function(K,I){if(typeof this.Index!=="undefined"){K.call(I,this.Index);return}var J=this;this.GetIndex(function(L){J.Index=L;K.call(I,L)})};this.GetIndex=function(I){require([this.IndexUrl],function(K){function J(){N++;if(N==O){I(K)}}if(typeof K=="undefined"){I(K);return}var N=0;var O=0;K.chunks=[];var M=new MadCap.Utilities.Url(d.IndexUrl).ToFolder().ToRelative(document.location.href);for(var Q=0;Q<K.numchunks;Q++){K.chunks.push(M.AddFile(K.prefix+Q+".js").FullPath)}for(var L=0;L<l.length;L++){var P=l[L];if(!P.GetExists()){continue}O++}if(O==0){I(K);return}for(var L=0;L<l.length;L++){var P=l[L];if(!P.GetExists()){continue}C(K,P,J)}})};this.LoadRootIndexEntry=function(I,J){if(I.loaded){if(J){J(I)}return}this.LoadIndex(function(K){var L=typeof I.c=="number"?[I.c]:I.c;MadCap.Utilities.AsyncForeach(L,function(O,N){var M=K.chunks[O];require([M],function(P){var R=P[I.t];var Q=new MadCap.Utilities.Url(M).ToFolder().ToFolder().FullPath;if(MadCap.String.EndsWith(Q,"/")){Q=Q.slice(0,-1)}d.SetIndexEntryRoot(R,Q);d.MergeIndexEntries(I,R);N()})},function(){d.LoadIndexEntry(I);if(J){J(I)}})})};this.SetIndexEntryRoot=function(J,I){if(J.l){$.each(J.l,function(K,L){L.root=I})}if(J.e){$.each(J.e,function(K,L){d.SetIndexEntryRoot(L,I)})}};this.LoadIndexEntry=function(J){if(J.l){var I=[];$.each(J.l,function(L,K){var M={Title:K.t,Link:d.GetIndexLinkPath(K)};I[I.length]=M});J.linkList=d.SortLinkList(I)}if(J.e){$.each(J.e,function(K,L){d.LoadIndexEntry(L)})}J.loaded=true};this.GetIndexLinkPath=function(J){var L=J.root+J.u;if(MadCap.String.StartsWith(L,"/")){L=L.substring(1)}var I=new MadCap.Utilities.Url(d.GetMasterHelpsystem().GetAbsolutePath());var K=new MadCap.Utilities.Url(document.location.href);if(I.Path.toLowerCase()==K.Path.toLowerCase()){L=I.AddFile(L).ToRelative(I.Path+d.GetMasterHelpsystem().GetContentPath()).FullPath}return L};this.MergeIndexEntries=function(J,I){if(I.l){if(typeof J.l=="undefined"){J.l=I.l}else{J.l=J.l.concat(I.l)}}if(I.r){if(typeof J.r=="undefined"){J.r=I.r}else{if(J.r=="SeeAlso"||I.r=="SeeAlso"){J.r="SeeAlso"}}if(typeof J.f=="undefined"){J.f=I.f}else{var L=J.f.split(";");var K=I.f.split(";");$.each(K,function(N,M){if($.inArray(L,M)){L.push(M)}});L.sort(function(P,N){var O=P.toLowerCase();var M=N.toLowerCase();return O<M?-1:O>M?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;O<N;O++){Q=Q.e[M[O]];if(!Q){break}}if(I){I(P,Q)}})}else{if(I){I()}}})};this.SortLinkList=function(I){I.sort(function(K,J){var M=K.Title.toLowerCase();var L=J.Title.toLowerCase();return M<L?-1:M>L?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;P<Q.length;P++){J[J.length]=Q[P]}}M++;if(M==N){I(J)}}var M=0;var N=l.length;var K=new MadCap.WebHelp.Search.SearchDB(this);J[J.length]=K;K.Load("Data/Search.xml",function(){var P=MadCap.Dom.GetAttributeBool(O.documentElement,"PreMerged",false);if(P||N==0){I(J)}else{for(var Q=0;Q<N;Q++){var R=l[Q];if(!R.GetExists()){L(null);continue}R.GetSearchDBs(L)}}})},null,this)};this.GetConcepts=function(){return A};this.GetSearchFilters=function(){return q};this.ParseSearchFilterDoc=function(R){filterMap=new MadCap.Utilities.Dictionary();if(R!=null){var K=R.getElementsByTagName("SearchFilter");for(var O=0;O<K.length;O++){var J=K[O];var I=J.getAttribute("Name");if(!J.getAttribute("Concepts")){continue}var L=J.getAttribute("Concepts").split(";");var Q=new MadCap.Utilities.Dictionary();filterMap.Add(I,Q);for(var N=0,P=L.length;N<P;N++){var M=MadCap.String.Trim(L[N]).toLowerCase();Q.Add(M,true)}}}return filterMap};this.LoadSearchFilters=function(I){function J(K){q=this.ParseSearchFilterDoc(K);I(q)}if(this.SearchFilterSetUrl==null||q!=null){I(q);return}MadCap.Utilities.Xhr.Load(this.SearchFilterSetUrl,true,J,null,this)};this.LoadMergedSearchFilters=function(I){function P(Q){if(Q!=null){Q.ForEach(function(S,T){var R=J.GetItem(S);if(R!=null){T.ForEach(function(V,U){R.AddUnique(V,U)})}else{J.Add(S,T)}return true})}M++;if(M==N+1){I(J)}}var J=new MadCap.Utilities.Dictionary();if(!this.IsWebHelpPlus){var M=0;var N=l.length;this.LoadSearchFilters(P);for(var L=0;L<N;L++){var O=l[L];if(!O.GetExists()){P(null);continue}O.LoadSearchFilters(P)}}else{var K=this;MadCap.Utilities.Xhr.CallWebService(e+"Service/Service.asmx/GetSearchFilters",true,function(R,Q){var S=K.ParseSearchFilterDoc(R);I(S)})}};this.AdvanceTopic=function(I,N,M,J,K){var L=null;d.FindNode(I,M,J,function(P){if(P){function O(R,Q){R=Q=="next"?B(R):j(R);if(R&&typeof R.i!=="undefined"){d.LoadTocChunk(R.toc,R.c,function(S){var U=R.toc.entries[R.i];var T=d.GetTocEntryHref(R,I);if(T){if(MadCap.String.StartsWith(T,"#")){T=T.substring(1)}K(T)}else{O(R,Q)}})}}O(P,N)}})};this.SetBrowseSequencePath=function(J,I){var K=$(".current-topic-index-button");if(J!=null){this.FindBrowseSequenceNode(J,I,function(L){if(L&&L.parent){K.removeClass("disabled");$(".sequence-index").text(L.parent.n.indexOf(L)+1);$(".sequence-total").text(L.parent.n.length)}else{K.addClass("disabled")}})}else{K.addClass("disabled")}};function E(L,J){var K=L.documentElement.getAttribute(J);if(K==null){return null}var I=new MadCap.Utilities.Url(e);if(!I.IsAbsolute){return e+K}return I.AddFile(K).ToRelative(document.location.href).FullPath}function H(X){var Y=$("CatapultSkin",X.documentElement);for(var T=0,O=Y.length;T<O;T++){var U=Y[T];var P=$(U);var R=P.attr("Name");var W={};for(var S=0,M=U.attributes.length;S<M;S++){var V=U.attributes[S];W[V.name]=V.value}var N=P.children();for(var S=0,M=N.length;S<M;S++){var I=N[S];var K=I.nodeName;var L={};W[K]=L;for(var Q=0,J=I.attributes.length;Q<J;Q++){var V=I.attributes[Q];L[V.name]=V.value}}u.Add(R,W)}}function x(K,L){if(K.nodeName.toLowerCase()=="madcap:glossarychunkref"){var N=$(K);var I=N.attr("src");if(!MadCap.String.IsNullOrEmpty(I)){var J=new MadCap.Utilities.Url(L).CombinePath("../../Data/").CombinePath(I);N.attr("src","../"+J.FullPath)}}else{var M=K.getElementsByTagName("a")[0];var I=$(M).attr("href");if(!MadCap.String.IsNullOrEmpty(I)){var J=new MadCap.Utilities.Url(L).CombinePath("../../Content/").CombinePath(I);$(M).attr("href","../"+J.FullPath)}}}function g(M){for(var K=0;K<M.childNodes.length;K++){var I=M.childNodes[K];if(I.nodeName=="Entries"){for(var J=0;J<I.childNodes.length;J++){g(I.childNodes[J])}}else{if(I.nodeName=="Links"){for(var J=0;J<I.childNodes.length;J++){if(I.childNodes[J].nodeType==1){var L=MadCap.Dom.GetAttribute(I.childNodes[J],"Link");L=e+((L.charAt(0)=="/")?L.substring(1,L.length):L);I.childNodes[J].setAttribute("Link",L)}}}}}}function z(J,I){if(!I){return}for(var K=0;K<I.length;K++){J[J.length]=I[K]}}function a(J,K,I){K.GetGlossary(function(P){if(typeof P=="undefined"){I();return}J.chunks=J.chunks.concat(P.chunks);for(var O=0,M=0;O<J.terms.length&&M<P.terms.length;){var N=J.terms[O];var L=P.terms[M];var S=N.t;var Q=L.t;if(S.toLowerCase()==Q.toLowerCase()){O++;M++}else{if(S.toLowerCase()>Q.toLowerCase()){L.c+=J.numchunks;J.terms.splice(O,0,L);M++}else{O++}}}for(;M<P.terms.length;M++){var R=P.terms[M];R.c+=J.numchunks;J.terms.push(R)}J.numchunks=J.chunks.length;I()})}function C(K,J,I){J.GetIndex(function(Q){if(typeof Q=="undefined"){I();return}K.chunks=K.chunks.concat(Q.chunks);for(var O=0,N=0;O<K.terms.length&&N<Q.terms.length;){var S=K.terms[O];var R=Q.terms[N];var M=S.s||S.t;var L=R.s||R.t;if(M==L&&S.t==R.t){if(typeof S.c=="number"){S.c=[S.c]}var P=R.c;if(typeof R.c=="number"){P=[R.c]}$.each(P,function(V,U){S.c.push(U+K.numchunks)});S.$=(S.$===1&&R.$===1)?1:0;O++;N++}else{if(M.toLowerCase()>L.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(;N<Q.terms.length;N++){var T=Q.terms[N];T.c+=K.numchunks;K.terms.push(T)}K.numchunks=K.chunks.length;I()})}};(function(){var a=null;MadCap.WebHelp.HelpSystem.GetHelpSystem=function(){return a};MadCap.WebHelp.HelpSystem.LoadHelpSystem=function(c,b){a=new MadCap.WebHelp.HelpSystem(null,null,c,null,null);a.Load(function(){b(a)})}})();MadCap.WebHelp.TocFile=function(r,l){var b=this;var h=r;var e=l;var c=false;var i=null;var n=new Array();var j=null;var o=null;var a=new Array();(function(){})();this.Init=function(t){if(c){if(t!=null){t()}return}if(t!=null){n.push(t)}var v=null;if(l==MadCap.WebHelp.TocFile.TocType.Toc){v="Toc.xml"}else{if(l==MadCap.WebHelp.TocFile.TocType.BrowseSequence){v="BrowseSequences.xml"}}this.LoadToc(h.GetPath()+"Data/"+v,u);function u(w){c=true;i=w.documentElement;g()}};this.LoadToc=function(u,t){if(e==MadCap.WebHelp.TocFile.TocType.Toc&&h.IsWebHelpPlus){MadCap.Utilities.Xhr.CallWebService(h.GetPath()+"Service/Service.asmx/GetToc",true,w,null)}else{if(e==MadCap.WebHelp.TocFile.TocType.BrowseSequence&&h.IsWebHelpPlus){MadCap.Utilities.Xhr.CallWebService(h.GetPath()+"Service/Service.asmx/GetBrowseSequences",true,w,null)}else{var v=(u.indexOf("/")==-1)?h.GetPath()+"Data/"+u:u;MadCap.Utilities.Xhr.Load(v,false,w,null,null)}}function w(y,x){if(!y||!y.documentElement){if(t!=null){t(y)}return}if(t!=null){t(y)}}};this.LoadChunk=function(u,v,t){var w=(v.indexOf("/")==-1)?h.GetPath()+"Data/"+v:v;MadCap.Utilities.Xhr.Load(v,true,x,null,null);function x(E,z){if(!E||!E.documentElement){if(t!=null){t(u)}return}u.removeAttribute("Chunk");var y=E.documentElement;for(var B=0,D=y.childNodes.length;B<D;B++){var A=y.childNodes[B];if(A.nodeType!=1){continue}var C=null;if(typeof(E.importNode)=="function"){C=E.importNode(A,true)}else{C=A.cloneNode(true)}u.appendChild(C)}if(t!=null){t(u)}}};this.LoadMerge=function(y,t){var x=MadCap.Dom.GetAttributeInt(y,"MergeHint",-1);if(x==-1){t(y,false,null,null);return}y.removeAttribute("MergeHint");var A=k(y);var u=A.GetSubsystem(x);var v=MadCap.Dom.GetAttributeBool(y,"ReplaceMergeNode",false);if(!v){y.setAttribute("ownerHelpSystemIndex",a.length)}a[a.length]=u;var z=u.GetPath()+"Data/"+(e==MadCap.WebHelp.TocFile.TocType.Toc?"Toc.xml":"BrowseSequences.xml");var B=MadCap.Utilities.Xhr.Load(z,true,w);function w(N,K){if(!N||!N.documentElement){if(t!=null){t(y,false,null,null)}return}var G=N.documentElement;var J=null;var H=true;var D=null;var E=null;var L=y.ownerDocument;for(var I=0,F=G.childNodes.length;I<F;I++){var C=G.childNodes[I];if(C.nodeType!=1){continue}var M=null;if(typeof(L.importNode)=="function"){M=L.importNode(C,true)}else{M=C.cloneNode(true)}if(v){M.setAttribute("ownerHelpSystemIndex",a.length-1);if(H){H=false;y.parentNode.replaceChild(M,y);D=M;E=D}else{J.parentNode.insertBefore(M,J.nextSibling);E=M}J=M}else{y.appendChild(M)}}if(t!=null){t(y,v,D,E)}}};this.AdvanceTopic=function(x,w,u,v){this.GetTocNode(w,u,t);function t(y){if(y==null){v(null);return}var z=null;q(x,y,A);function A(E){var B=null;if(E!=null){B=MadCap.Dom.GetAttribute(E,"Link");B=B.substring("/".length);var H=new MadCap.Utilities.Url(B);var G=null;if(e==MadCap.WebHelp.TocFile.TocType.Toc){G="TocPath"}else{if(e==MadCap.WebHelp.TocFile.TocType.BrowseSequence){G="BrowseSequencePath"}}var D=m(E);var C=H.ToQuery(G+"="+encodeURIComponent(D));B=C.FullPath;var F=k(E);B=F.GetPath()+B;v(B)}else{v(B)}}}};this.GetRootNode=function(u){this.Init(t);function t(){u(i)}};this.GetTocNode=function(v,t,x){this.Init(w);function w(){j=v;o=t;var F=(v=="")?new Array(0):v.split("|");var B=-1;if(F.length>0){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<A;D++){if(y(H)){return}if(u(H)){return}H=d(H,F[D])}if(H==null){x(null);return}if(y(H)){return}if(u(H)){return}if(B>=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<u;t++){n[t]()}}function d(u,w){var t=null;for(var v=0;v<u.childNodes.length;v++){if(u.childNodes[v].nodeName=="TocEntry"&&MadCap.Dom.GetAttribute(u.childNodes[v],"Title")==w){t=u.childNodes[v];break}}return t}function s(v,t,x){var y=null;var B=MadCap.Dom.GetAttribute(v,"Link");if(B!=null){B=B.substring("/".length);B=B.replace(/%20/g," ");B=B.toLowerCase()}if(B==t){y=v}else{for(var w=0;w<v.childNodes.length;w++){var z=v.childNodes[w];if(z.nodeType!=1){continue}var A=MadCap.Dom.GetAttribute(z,"Link");if(A==null){continue}A=A.substring("/".length);A=A.replace(/%20/g," ");A=A.toLowerCase();if(!x){var C=A.indexOf("#");if(C!=-1){A=A.substring(0,C)}var u=A.indexOf("?");if(u!=-1){A=A.substring(0,u)}}if(A==t){y=z;break}}}return y}function q(w,t,x){if(w=="previous"){v(t)}else{if(w=="next"){z(t)}}function A(F){var B=null;if(F!=null){var E=MadCap.Dom.GetAttribute(F,"Link");if(E==null){q(w,F,x);return}var C=new MadCap.Utilities.Url(E);var D=C.Extension.toLowerCase();var G=h.GetMasterHelpsystem();if(G.UseCustomTopicFileExtension){if(D!=G.CustomTopicFileExtension){q(w,F,x);return}}else{if(D!="htm"&&D!="html"){q(w,F,x);return}}B=F}x(B)}function v(E){function F(H){var G=p(H,"TocEntry");if(G==null){D=H}else{D=G;if(y(G,F)){return}if(u(G,C)){return}}A(D)}function C(H,I,J,G){if(I){F(G)}else{F(H)}}var D=null;for(var B=E.previousSibling;B!=null;B=B.previousSibling){if(B.nodeName=="TocEntry"){D=B;break}}if(D!=null){if(y(D,F)){return}if(u(D,C)){return}F(D);return}else{if(E.parentNode.nodeType==1){D=E.parentNode}}A(D)}function z(D){function E(H){var G=$(H).children("TocEntry")[0];for(var F=H;F!=null&&G==null;F=F.parentNode){G=$(F).next("TocEntry")[0]}A(G)}function C(G,H,I,F){if(H){A(I);return}E(G)}var B=null;if(y(D,E)){return}if(u(D,C)){return}E(D)}function y(C,B){var D=MadCap.Dom.GetAttribute(C,"Chunk");if(D!=null){b.LoadChunk(C,D,B);return true}return false}function u(C,B){var D=$(C).attr("MergeHint")||-1;if(D>=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;m<p.length;m++){var k=p[m].getAttribute("Link");var o=p[m].getAttribute("Skin");var l={Topic:k,Skin:o};var j=p[m].getAttribute("Name");if(j!=null){i.Add(j,l)}var n=p[m].getAttribute("ResolvedId");if(n!=null){g.Add(n,l)}}}}}};MadCap.WebHelp.IndexEntry=function(g,f){var e=MadCap.Dom.GetChildNodeByTagName(g,"Links",0).childNodes;var d=e.length;var b=0;this.Term=MadCap.Dom.GetAttribute(g,"Term");this.IndexLinks=new Array();this.Level=f;this.GeneratedReferenceType=MadCap.Dom.GetAttribute(g,"GeneratedReferenceType");for(var c=0;c<d;c++){var a=e[c];if(a.nodeType!=1){continue}this.IndexLinks[b]=new MadCap.WebHelp.IndexLink(a);b++}};MadCap.WebHelp.IndexLink=function(a){this.Title=MadCap.Dom.GetAttribute(a,"Title");this.Link=MadCap.Dom.GetAttribute(a,"Link")};/*
 * Copyright MadCap Software
 * http://www.madcapsoftware.com/
 *
 * v9.1.2.0
 */
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}function P(ak){MadCap.DEBUG.Log.AddLine(window.name+"onload");MadCap.DEBUG.Log.AddLine(window.name+"hash: "+document.location.hash);MadCap.DEBUG.Log.AddLine(window.name+"search: "+document.location.search);if($.browser.msie&&$.browser.version<=9){var ai=$("#search-field");if(ai.css("direction")=="rtl"){ai.css({"border-top-left-radius":ai.css("border-top-right-radius"),"border-top-right-radius":ai.css("border-top-left-radius"),"border-bottom-left-radius":ai.css("border-bottom-right-radius"),"border-bottom-right-radius":ai.css("border-bottom-left-radius")})}var am=$("#contentBody");if(am.css("direction")=="rtl"){am.css({"border-top-left-radius":am.css("border-top-right-radius"),"border-top-right-radius":am.css("border-top-left-radius")})}}$("input, textarea").placeholder();$(".tabs .tabs-nav li").click(Q);$(".search-submit").click(function(an){ab()});$("#search-field").keypress(function(an){if(an.which!=13){return}ab();an.preventDefault()});$(".search-filter").click(function(ao){$(this).addClass("open");if(window.PIE){$(".search-submit-wrapper").each(function(){PIE.detach(this);PIE.attach(this)})}var an=$(".search-filter-content",this);an.fadeIn(200);an.css("max-height",$(window).height()-an.offset().top)});var al=null;$(".search-filter").mouseenter(function(an){clearTimeout(al)});$(".search-filter").mouseleave(function(ao){var an=$(this);var ap=$(".search-filter-content",this);al=setTimeout(function(){ap.fadeOut(200,function(){an.removeClass("open")})},500)});$(".search-filter-content").click(function(ao){var ap=$(ao.target).text();$(this).prev().text(ap);if($("#searchPane").is(":visible")){var an=$("#search-field").val();if(MadCap.String.IsNullOrEmpty(an)){return}a(an)}});$("#navigationResizeBar").mousedown(Z);$("#show-hide-navigation").click(E);r(parseInt($("#navigation").css("width")));var aj=$("title");aj.attr("data-title",document.title);$("#topic").load(function(){p(0);MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"get-title",null,function(ao){var an=aj.attr("data-title");var ap=an;if(!MadCap.String.IsNullOrEmpty(an)){ap+=" - "}document.title=ap+ao[0]});MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"get-topic-id",null,function(an){u=an[0];if(u!=null){t()}})});$(".print-button").click(function(an){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"print")});$(".expand-all-button").click(function(ao){var an=$(this);if(an.hasClass("expand-all-button")){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"expand-all")}else{if(an.hasClass("collapse-all-button")){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"collapse-all")}}D(this)});$(".remove-highlight-button").click(function(an){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"remove-highlight")});$(".previous-topic-button").click(function(an){A()});$(".next-topic-button").click(function(an){L()});MadCap.WebHelp.HelpSystem.LoadHelpSystem("Data/HelpSystem.xml",function(an){J=an;if(J.LiveHelpEnabled){b=new MadCap.WebHelp.FeedbackController(J.LiveHelpServer);b.Init(function(){if(b.PulseActive){$(document.documentElement).addClass("pulse-active")}if(b.FeedbackActive){$(document.documentElement).addClass("feedback-active");y()}})}if(!MadCap.String.IsNullOrEmpty(J.DefaultSkin.Tabs)){ae()}if(document.location.hash.length>1){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<aq;ap++){$(".search-filter-content ul").append($("<li></li>").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=MadCap.Utilities.Url.StripInvalidCharacters($("#search-field").val());if(!MadCap.String.IsNullOrEmpty(ai)){document.location.hash="search-"+ai}else{document.location.hash=""}}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();aw<aq;aw++){var at=ar.GetResult(aw);var ai=at.SearchDB;var aA=null;var av=null;var al=null;if(!J.IsWebHelpPlus){var an=at.Entry;var aj=an.TopicID;var ao=MadCap.WebHelp.SearchPane.SearchDBs[ai];aA=ao.URLTitles[aj]?ao.URLTitles[aj]:"";al=ao.URLAbstracts[aj];var au=ao.HelpSystem.GetPath();var ay=ao.URLSources[aj];var am=MadCap.String.StartsWith(ay,"/subsystems/",false);var az=!MadCap.String.IsNullOrEmpty(au)||am;if(az&&!J.MoveContentToRoot){au="../"+au}if(!am){au+="Data/"}av=new MadCap.Utilities.Url(au).CombinePath(ay);if(!az&&!J.MoveContentToRoot){av=av.ToRelative(J.ContentFolder)}}else{aA=at.Title;al=at.AbstractText;var ap=new MadCap.Utilities.Url(at.Link);var ak=new MadCap.Utilities.Url(document.location.pathname);if(!MadCap.String.EndsWith(document.location.pathname,"/")){ak=ak.ToFolder()}ak=ak.CombinePath(J.ContentFolder);av=ap.ToRelative(ak)}ax[ax.length]={Title:aA,Link:av.FullPath,AbstractText:al}}return ax}function m(aM,aG,ar){var ap=$("#results-heading")[0];var ao=(aG!=null?aG.length:0);var az=ao+(ar!=null?ar.TotalRecords:0);$(".query",ap).text('"'+aM+'"');$(".total-results",ap).text(az);var aC=document.createElement("ul");aC.setAttribute("id","resultList");if(aG==null){aC.setAttribute("class","communitySearch")}if(ar!=null&&ar.Activities.length>0){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<ar.Activities.length;aK++){var aP=ar.Activities[aK];var av=document.createElement("li");aw.appendChild(av);var aD=document.createElement("a");aD.setAttribute("class","activityText");aD.setAttribute("href","#pulse-#!streams/"+aP.FeedId+"/activities/"+aP.Id);aD.appendChild(document.createTextNode(aP.Text));var aL=document.createElement("div");aL.setAttribute("class","activityInfo");var aq=document.createElement("a");aq.setAttribute("class","activityCreator");aq.setAttribute("href","#pulse-#!streams/"+aP.CreatedBy+"/activities");aq.appendChild(document.createTextNode(aP.CreatedByDisplayName));var aI=document.createElement("span");aI.appendChild(document.createTextNode(" to "));var ay=aP.FeedUrl!=null?"#"+aP.FeedUrl:"#pulse-#!streams/"+aP.FeedId+"/activities";var aA=document.createElement("a");aA.setAttribute("class","activityFeed");aA.setAttribute("href",ay);aA.appendChild(document.createTextNode(aP.FeedName));var aN=new MadCap.Utilities.DateTime(aP.PostedUtc);var aE=new MadCap.Utilities.TimeSpan(aN.Date,al);var aH=document.createElement("span");aH.setAttribute("class","activityTime");aH.appendChild(document.createTextNode(aE.ToDurationString()));aL.appendChild(aq);aL.appendChild(aI);aL.appendChild(aA);aL.appendChild(aH);av.appendChild(aD);av.appendChild(aL)}}if(aG!=null){for(var aK=0;aK<aG.length;aK++){var ax=aG[aK];var aQ=ax.Title;var au=ax.Link;var ai=ax.AbstractText;var aB=document.createElement("li");aC.appendChild(aB);var at=document.createElement("h3");$(at).addClass("title");aB.appendChild(at);var aO=document.createElement("a");aO.setAttribute("href","#"+au+"?Highlight="+aM);aO.appendChild(document.createTextNode(aQ));at.appendChild(aO);if(ai!=null){var aJ=document.createElement("div");$(aJ).addClass("description");aJ.appendChild(document.createTextNode(ai));aB.appendChild(aJ)}var aj=document.createElement("div");$(aj).addClass("url");aB.appendChild(aj);var an=document.createElement("cite");an.appendChild(document.createTextNode(au));aj.appendChild(an)}}$(aC).appendTo($("#searchPane"));if(J.LiveHelpEnabled){b.LogSearch(J.LiveHelpOutputId,null,ao,null,aM)}}function Z(aj){MadCap.DEBUG.Log.AddLine("nav resizeBar : mousedown");if($(aj.target).attr("id")=="show-hide-navigation"){return}if($(this).hasClass("nav-closed")){return}var ai=document.createElement("div");ai.setAttribute("id","mousemove-sheet");document.body.appendChild(ai);$(document).mousemove(ah);$(document).mouseup(V);$(document).bind("selectstart",af);aj.preventDefault()}function af(ai){return false}function ah(ak){MadCap.DEBUG.Log.AddLine("nav resizeBar : mousemove : "+ak.pageX);var ai=$(document.documentElement).hasClass("left-layout")?"left":$(document.documentElement).hasClass("right-layout")?"right":"left";var aj=ak.pageX;if(ai=="right"){aj=window.innerWidth-ak.pageX}H(aj)}function V(aj){MadCap.DEBUG.Log.AddLine("nav resizeBar : mouseup");$(document).off("mousemove",ah);$(document).off("mouseup",V);$(document).off("selectstart",af);var ai=$("#mousemove-sheet")[0];window.setTimeout(function(){ai.parentNode.removeChild(ai)},1)}function H(aj){var ai=$(document.documentElement).hasClass("left-layout")?"left":$(document.documentElement).hasClass("right-layout")?"right":"left";if(ai=="left"){if(aj<175||aj>(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<Y()+4){for(var aj=ak.length-1;aj>=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}var ak=MadCap.Utilities.Url.StripInvalidCharacters(document.location.hash);if(MadCap.String.IsNullOrEmpty(ak)){document.location.hash="";return}var al=ak.substring(1);al=unescape(al);if(MadCap.String.Contains(al,"cshid=")||MadCap.String.Contains(al,"searchQuery=")||MadCap.String.Contains(al,"skinName=")){S();return}else{if(MadCap.String.StartsWith(al,"search-")){var aj=al.substring("search-".length);$("#search-field").val(aj);a(aj);return}else{if(MadCap.String.StartsWith(al,"communitysearch-")){var aj=al.substring("communitysearch-".length);$("#search-field").val(aj);a(aj,false,true,-1,0);return}else{if(MadCap.String.StartsWith(al,"pulse-")){var ai=al.substring("pulse-".length);n(ai);return}}}}j(al)}function j(ai){var aj=new MadCap.Utilities.Url(ai).ToNoQuery();if(aj.IsAbsolute){ai=aj.FullPath}else{ai=J.ContentFolder+aj.FullPath}g(ai)}function g(am){$(document.documentElement).addClass("has-topic");e("topic");if($.browser.msie){document.getElementById("topic").src=am}else{frames.topic.location.replace(am)}var aj=new MadCap.Utilities.Url(unescape(document.location.href));var ai=null,ak=null,al=null;if(!MadCap.String.IsNullOrEmpty(aj.Fragment)&&aj.Fragment.length>1){ak=aj.QueryMap.GetItem("TocPath");if(ak!=null){ai="Toc"}else{al=aj.QueryMap.GetItem("BrowseSequencesPath");if(al!=null){ai="BrowseSequences"}}if(aj.HashMap.GetItem("cshid")==null){aj=new MadCap.Utilities.Url(aj.Fragment.substr(1))}}else{aj=new MadCap.Utilities.Url(J.DefaultStartTopic).ToRelative(J.GetContentPath())}J.SetBrowseSequencePath(al,aj);if(J.SyncTOC){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"sync-toc",[ai,ai=="Toc"?ak:al,aj.FullPath],null)}}function n(ai){$(document.documentElement).removeClass("has-topic");e("pulse");var aj=ai.substring(ai.indexOf("#"));MadCap.Utilities.CrossFrame.PostMessageRequest(frames["community-frame-html5"],"pulse-hash-changed",[aj]);b.Init(function(){if(b.PulseActive){frames.pulse.location.replace(b.PulseServer+aj)}})}function S(){var ao=document.location.hash.substring(1);var ap=new MadCap.Utilities.Dictionary();var al=ao.split("&");$(al).each(function(ar,at){var aq=al[ar].split("=");ap.Add(aq[0].toLowerCase(),aq[1])});var ak=ap.GetItem("searchQuery".toLowerCase());if(ak!=null){$("#search-field").val(ak);var aj=MadCap.String.ToBool(ap.GetItem("firstPick".toLowerCase()),false);if(aj){x(ak,null,function(aq){if(aq.length>=1){j(aq[0].Link)}})}else{a(ak)}}else{var an=ap.GetItem("cshid");if(an!=null){aa=an;J.LookupCSHID(an,function(ar){if(ar.Found){g(ar.Topic)}else{g(J.DefaultStartTopic)}var aq=ap.GetItem("skinName".toLowerCase())||ar.Skin;if(aq!=null){var at=J.GetSkin(aq);M(at)}});return}else{g(J.DefaultStartTopic)}}var ai=ap.GetItem("skinName".toLowerCase());if(ai!=null){var am=J.GetSkin(ai);M(am)}}function i(){if(document.location.hash.indexOf("#pulse-")!=0){return""}return document.location.hash.substring("#pulse-".length)}function M(au){O(au);if(MadCap.String.IsNullOrEmpty(au.Tabs)){$("#navigation").remove();$("#navigationResizeBar").remove();$(document.documentElement).removeClass("left-layout").removeClass("right-layout")}else{if(au.WebHelpOptions!=null&&au.WebHelpOptions.HideNavigationOnStartup!=null&&(MadCap.String.ToBool(au.WebHelpOptions.HideNavigationOnStartup,false))){N("hide")}if(au.NavigationPanePosition!=null&&au.NavigationPanePosition=="Right"){$(document.documentElement).removeClass("left-layout").addClass("right-layout")}if(au.NavigationPaneWidth!=null){var at=MadCap.String.ToInt(au.NavigationPaneWidth,300);H(at)}var ap=au.Tabs.split(",");var an=["TOC","Index","Glossary","BrowseSequences","Community"];var al=$(".tabs");for(var am=0,aj=an.length;am<aj;am++){var ak=an[am];if($.inArray(ak,ap)>=0){continue}if(ak=="TOC"){ak="Toc"}var ar=$("#"+ak+"Tab");if(ar.length==0){continue}var ai=al.children(".tabs-nav").children("li").index(ar);var aq=al.children(".tabs-panels").children(":eq("+ai+")");ar.remove();aq.remove()}var ao=au.DefaultTab;if(ao=="TOC"){ao="Toc"}h(ao,al);G(ao)}if(au.Toolbar!=null&&MadCap.String.IsNullOrEmpty(au.Toolbar.Buttons)){$(".buttons").remove();$("#contentBody").addClass("no-buttons")}if(au.DisplaySearchBar=="false"){$(".search-bar").hide()}}function e(ai){$("#topic").css("display",ai=="topic"?"block":"none");$("#pulse").css("display",ai=="pulse"?"block":"none");$("#searchPane").css("display",ai=="search"?"block":"none")}function Q(ak){var ai=$(this).attr("id");var aj=ai.substring(0,ai.length-"Tab".length);h(aj,$(this).closest(".tabs"));G(aj)}function h(ak,ao){var aj=$(".tabs-nav-active",ao);aj.removeClass("tabs-nav-active");var al=$("#"+ak+"Tab");al.addClass("tabs-nav-active");var an=$(".tabs-panel-active",ao);an.removeClass("tabs-panel-active");var ai=ao.children(".tabs-nav").children("li").index(al);var am=ao.children(".tabs-panels").children(":eq("+ai+")");am.addClass("tabs-panel-active")}function ae(){var ai=J.DefaultSkin.DefaultTab;if(ai=="TOC"){G("Toc")}else{G(ai)}}function G(ai){if(ai=="Toc"){ag()}else{if(ai=="Index"){o()}else{if(ai=="Glossary"){q()}else{if(ai=="BrowseSequences"){B()}else{if(ai=="Community"){X()}}}}}}function ag(){if(C!=null){return}var ai=$("#toc");ai.addClass("loading");C=new MadCap.WebHelp.TocPane("Toc",J,ai[0]);C.Init(function(){ai.removeClass("loading")})}function o(){if(K!=null){return}var ai=$("#index");ai.addClass("loading");K=new MadCap.WebHelp.IndexPane(J);K.Init($("#index .index-wrapper")[0],function(){ai.removeClass("loading")})}function q(){if(R!=null){return}var ai=$("#glossary");ai.addClass("loading");R=new MadCap.WebHelp.GlossaryPane(J);R.Init(ai[0],function(){ai.removeClass("loading")})}function B(){if(T!=null){return}var ai=$("#browseSequences");ai.addClass("loading");T=new MadCap.WebHelp.TocPane("BrowseSequences",J,ai[0]);T.Init(function(){ai.removeClass("loading")})}function X(){if(z){return}z=true;var ai=$("#community-frame-html5");b.Init(function(){if(b.PulseActive){ai.attr("src",b.PulseServer+"streams/my")}})}function O(aw){var ax=MadCap.String.ToBool(aw.UseBrowserDefaultSize,false);if(ax){return}var al=MadCap.String.ToInt(aw.Top,0);var au=MadCap.String.ToInt(aw.Left,0);var av=MadCap.String.ToInt(aw.Bottom,0);var aj=MadCap.String.ToInt(aw.Right,0);var am=MadCap.String.ToInt(aw.Width,800);var an=MadCap.String.ToInt(aw.Height,600);var ai=aw.Anchors;if(ai){var ap=(ai.indexOf("Top")>-1)?true:false;var ak=(ai.indexOf("Left")>-1)?true:false;var at=(ai.indexOf("Bottom")>-1)?true:false;var ao=(ai.indexOf("Right")>-1)?true:false;var aq=(ai.indexOf("Width")>-1)?true:false;var ar=(ai.indexOf("Height")>-1)?true:false}if(ak&&ao){am=screen.availWidth-(au+aj)}else{if(!ak&&ao){au=screen.availWidth-(am+aj)}else{if(aq){au=(screen.availWidth/2)-(am/2)}}}if(ap&&at){an=screen.availHeight-(al+av)}else{if(!ap&&at){al=screen.availHeight-(an+av)}else{if(ar){al=(screen.availHeight/2)-(an/2)}}}if(window==top){window.resizeTo(am,an);window.moveTo(au,al)}}function t(){$(".star-buttons").addClass("loading");b.GetAverageRating(u,function(aj,ai){$(".star-buttons").removeClass("loading");p(aj)})}function p(am){var ai=$(".star-buttons");var ap=$(".star-button",ai);var ao=ap.length;var an=Math.ceil(am*ao/100);ap.css("opacity",0);for(var ak=0;ak<ao;ak++){var al=ap[ak];var aj=$(al);window.setTimeout((function(ar,aq){return function(){if(ar<=an-1){k(aq[0],2)}else{k(aq[0],1)}aq.animate({opacity:1})}})(ak,aj),ak*50)}}function ad(al){var ai=$(al.target);if(ai.hasClass("star-button")){var ak=$(".star-button",this).length;var aj=(ai.index()+1)*100/ak;b.SubmitRating(u,aj,null,function(){t()})}}function W(ai){s(ai,function(aj){if(aj){document.location.hash=aj}})}function A(){W("previous")}function L(){W("next")}function s(aj,ai){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"get-topic-url",null,function(ap){var am=new MadCap.Utilities.Url(unescape(ap[0]));var al=new MadCap.Utilities.Url(unescape(document.location.href));var an=al.QueryMap.GetItem("TocPath");var ao=al.QueryMap.GetItem("BrowseSequencesPath");al=al.ToPlainPath();if(!al.IsFolder){al=al.ToFolder()}var ak=al.CombinePath(J.GetMasterHelpsystem().GetContentPath());am=am.ToRelative(ak);if(ao!=null){J.AdvanceTopic("BrowseSequences",aj,ao,am,ai)}else{J.AdvanceTopic("Toc",aj,an,am,ai)}})}function w(){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"get-bs-path",null,function(ap){function am(aq){var ar=$(".current-topic-index-button");if(aq==-1){ar.addClass("disabled");return}ar.removeClass("disabled");$(".sequence-index").text(aq);aj.GetIndexTotalForEntry(al,ai,function(at){$(".sequence-total").text(at)})}var al=ap[0];var ai=new MadCap.Utilities.Url(unescape(ap[1]));var ao=new MadCap.Utilities.Url(unescape(document.location.href));ao=new MadCap.Utilities.Url(ao.PlainPath);var ak=MadCap.String.EndsWith(ao.FullPath,"/")?ao:ao.ToFolder();ai=ai.ToRelative(ak);if(al!=null){var an=J.GetFullTocPath("browsesequences",ai.FullPath);if(an){al=al?an+"|"+al:an}}if(MadCap.String.IsNullOrEmpty(al)||MadCap.String.StartsWith(al,"_____")){am(-1);return}var aj=J.GetBrowseSequenceFile();aj.GetEntrySequenceIndex(al,ai,am)})}function D(ai){var al=$(ai);var aj=al.attr("data-current-state")||"1";var ak=aj=="1"?2:1;k(ai,ak)}function k(aj,am){var an=$(aj);var ak=am==1?2:1;var al=an.attr("data-state"+am+"-class");var ai=an.attr("data-state"+ak+"-class");an.attr("data-current-state",am);an.removeClass(ai).addClass(al);an.attr("title",an.attr("data-state"+am+"-title"))}function U(){I=b.GetUserGuid();var ai=$(".login-button");if(ai.length==0){ai=$(".edit-user-profile-button")}k(ai[0],I==null?1:2)}function v(){if(f!=null){f.Hide(true)}}MadCap.Utilities.CrossFrame.AddMessageHandler(function(aq,an,aC,aD,ai){var ax={Handled:false,FireResponse:true};if(aq=="get-href"){aC[aC.length]=document.location.href;ax.Handled=true;ax.FireResponse=true}if(aq=="get-return-url"){var am=new MadCap.Utilities.Url(document.location.href);var aB=null;if(am.Fragment.length>1){var aA=new MadCap.Utilities.Url(am.Fragment.substring(1));aB=am.QueryMap.GetItem("returnUrl")}aC[aC.length]=aB;ax.Handled=true;ax.FireResponse=true}else{if(aq=="navigate"){var aw=an[0];if(aw){document.location.hash=MadCap.Utilities.Url.StripInvalidCharacters(aw)}ax.Handled=true;ax.FireResponse=true}else{if(aq=="navigate-topic"){var aw=an[0];var aA=new MadCap.Utilities.Url(aw);if(aA.IsAbsolute){var al=new MadCap.Utilities.Url(document.location.href);al=new MadCap.Utilities.Url(al.PlainPath);var av=MadCap.String.EndsWith(al.FullPath,"/")?al:al.ToFolder();var ar=av.CombinePath(J.ContentFolder);aA=aA.ToRelative(ar)}if(aA.FullPath){document.location.hash=MadCap.Utilities.Url.StripInvalidCharacters(aA.FullPath)}ax.Handled=true}else{if(aq=="navigate-home"){var am=new MadCap.Utilities.Url(document.location.href);document.location.href=am.PlainPath;ax.Handled=true}else{if(aq=="navigate-pulse"){var aw=an[0];if(document.location.hash.length>1&&aw){var az=aw.toLowerCase();if(az==="feedback/account/register"||aw.toLowerCase()==="forgotpassword"){var am=new MadCap.Utilities.Url(document.location.hash.substring(1));var aB=am.QueryMap.GetItem("returnUrl");if(aB!=null){aB=escape(aB)}else{aB=document.location.hash.substring(1)}aw+="?returnUrl="+aB}}if(aw){document.location.hash="pulse-"+MadCap.Utilities.Url.StripInvalidCharacters(aw)}ax.Handled=true}else{if(aq=="navigate-previous"){A();ax.Handled=true}else{if(aq=="navigate-next"){L();ax.Handled=true}else{if(aq=="login-user"||aq=="login-pulse"){if(I==null){var au=aq=="login-pulse"?"pulse":"new";f=new MadCap.Feedback.LoginDialog(b,au);if(au=="new"){$(f).bind("closed",function(){U();aC[aC.length]=I;MadCap.Utilities.CrossFrame._PostMessageResponse(aD,aq,aC.length>0?aC:null,ai)})}f.Show();ax.Handled=true;ax.FireResponse=false}else{aC[aC.length]=I;ax.Handled=true;ax.FireResponse=true}}else{if(aq=="get-csh-id"){aC[aC.length]=aa;ax.Handled=true;ax.FireResponse=true}else{if(aq=="get-user-guid"){aC[aC.length]=I;ax.Handled=true;ax.FireResponse=true}else{if(aq=="get-topic-path-by-stream-id"){var ao=an[0];b.GetTopicPathByStreamID(ao,function(aF){aC[aC.length]=aF;MadCap.Utilities.CrossFrame._PostMessageResponse(aD,aq,aC.length>0?aC:null,ai)},null,null);ax.Handled=true;ax.FireResponse=false}else{if(aq=="get-topic-path-by-page-id"){var ak=an[0];b.GetTopicPathByPageID(ak,function(aF){aC[aC.length]=aF;MadCap.Utilities.CrossFrame._PostMessageResponse(aD,aq,aC.length>0?aC:null,ai)},null,null);ax.Handled=true;ax.FireResponse=false}else{if(aq=="hash-changed"){var at=an[0];at=at.substring(1);history.pushState(null,null,document.location.pathname+document.location.hash+"$"+at);ax.Handled=true;ax.FireResponse=false}else{if(aq=="forward-ajax-open-success"){var aE=an[0];var ay=parseInt(an[1]);var ap=an[2];e("pulse");MadCap.Utilities.CrossFrame.PostMessageRequest(frames.pulse,"ajax-open-success",[aE,ay,ap]);ax.Handled=true;ax.FireResponse=false}else{if(aq=="get-pulse-hash"){var aj="";if(document.location.hash.indexOf("#pulse-")==0){aj=document.location.hash.substring("#pulse-".length)}aC[aC.length]=aj;ax.Handled=true;ax.FireResponse=true}else{if(aq=="login-complete"||aq=="logout-complete"){MadCap.Utilities.CrossFrame.PostMessageRequest(frames.pulse,"reload");MadCap.Utilities.CrossFrame.PostMessageRequest(frames["community-frame-html5"],"reload");MadCap.Utilities.CrossFrame.PostMessageRequest(frames.topic,"reload-pulse");v();U();ax.Handled=true;ax.FireResponse=false}else{if(aq=="close-login-dialog"){v();ax.Handled=true;ax.FireResponse=false}else{if(aq=="set-pulse-login-id"){if(b!=null){b.PulseUserGuid=an[0]}U();ax.Handled=true;ax.FireResponse=false}}}}}}}}}}}}}}}}}}return ax},null);$(P);$(window).hashchange(c);var C=null;var K=null;var ac=null;var R=null;var T=null;var z=null;var J=null;var b=null;var u=null;var I=null;var aa=null;var f=null})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.1.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.TocPane=function(c,g,f){var d=this;this._Init=false;this._RuntimeFileType=c;this._HtmlNodeID=c=="Toc"?"toc":"browseSequences";this._ContainerEl=f;this._HelpSystem=g;this._TocFile=this._RuntimeFileType=="Toc"?this._HelpSystem.GetTocFile():this._HelpSystem.GetBrowseSequenceFile();this._LoadedNodes=[];var e=null;var b=null;MadCap.Utilities.CrossFrame.AddMessageHandler(this.OnMessage,this);this._Initializing=false;this._InitOnCompleteFuncs=new Array();this.TreeNode_Click=function(l){var m=l.target;var o=$(m).closest("li")[0];if(o==null){return}var n=$(o);if(!n.hasClass("tree-node-leaf")){n.toggleClass("tree-node-expanded").toggleClass("tree-node-collapsed")}var p=n.find("> div a");if(p[0]!=null){var h=p.attr("href");if(!MadCap.String.IsNullOrEmpty(h)){d._SelectNode(o)}if(p[0]!=m){var k=p.attr("target");if(!MadCap.String.IsNullOrEmpty(h)){if(k!=null){window.open(h,k)}else{document.location.href=h}}}}var i=d._LoadedNodes[n.attr("data-mc-id")];if(!i.childrenLoaded){var j=$("<ul/>");j.addClass("tree inner");d.LoadTocChildren(i,j,function(){n.append(j)})}}};var a=MadCap.WebHelp.TocPane;a.prototype.OnMessage=function(h,e,g){var f={Handled:false,FireResponse:true};if(h=="sync-toc"){var b=e[0];var d=e[1];var c=new MadCap.Utilities.Url(e[2]);if(b==null||b==this._RuntimeFileType){this.SyncTOC(d,c);f.Handled=true}}return f};a.prototype.Init=function(b){if(this._Init){if(b!=null){b()}return}if(b!=null){this._InitOnCompleteFuncs.push(b)}if(this._Initializing){return}this._Initializing=true;var c=$(this._ContainerEl);c.click(this.TreeNode_Click);var d=this;c.attr("data-mc-chunk","Data/"+this._RuntimeFileType+".xml");this.CreateToc(this._ContainerEl,function(){d._Init=true;for(var e=0;e<d._InitOnCompleteFuncs.length;e++){d._InitOnCompleteFuncs[e]()}})};a.prototype.CreateToc=function(d,b){var e=true;if(this._RuntimeFileType=="Toc"){e=this._HelpSystem.HasToc}else{e=this._HelpSystem.HasBrowseSequences}if(!e){if(b!=null){b()}return}var c=this;c._HelpSystem.LoadToc(this._RuntimeFileType,function(h,g){var f=$("<ul/>");f.addClass("tree");c.LoadTocChildren(h.tree,f,function(){var i=$(c._ContainerEl);i.append(f);this._Init=true;if(b!=null){b()}})},null)};a.prototype.LoadTocChildren=function(h,f,b){var g=typeof h.n!=="undefined"?h.n.length:0;var c=0;if(g==0){h.childrenLoaded=true}if(h.childrenLoaded){if(b){b()}return}for(var e=0;e<g;e++){var d=h.n[e];var j=$("<li/>");j.addClass("tree-node tree-node-collapsed");f.append(j);this.LoadTocNode(d,j,function(){c++;if(c==g){h.childrenLoaded=true;if(b!=null){b()}}})}};a.prototype.LoadTocNode=function(e,d,b){var c=this;var f=e.toc;this._HelpSystem.LoadTocChunk(f,e.c,function(j){var h=$("<div/>");if(typeof e.w!=="undefined"&&e.w==1){h.append("<span class='new-indicator'></span>")}var g=$('<span class="label" />');var l=f.entries[e.i];var k=typeof e.f!="undefined";var i=c._HelpSystem.GetTocEntryHref(e,k?null:c._RuntimeFileType);if(i!=null){var m=$("<a/>");if(k){m.attr("target",e.f)}m.attr("href",i);m.text(l.title);g.append(m)}else{g.append(l.title)}h.append(g);if(typeof e.s!="undefined"){d.addClass(e.s)}if(typeof e.n=="undefined"||e.n.length==0){d.removeClass("tree-node-collapsed");d.addClass("tree-node-leaf")}e.el=d;d.append(h);d.attr("data-mc-id",c._LoadedNodes.length);c._LoadedNodes.push(e);if(b!=null){b()}})};a.prototype.SyncTOC=function(d,c){var b=this;var e=$(".tree-node-selected a",this._ContainerEl);if(e.length>0){var f=e[0];if(f.href===document.location.href){return}}this.Init(function(){function i(k){if(typeof k!=="undefined"&&k!=null){var j=[];var l=k;while(typeof l!=="undefined"&&!l.childrenLoaded){j.unshift(l);l=l.parent}MadCap.Utilities.AsyncForeach(j,function(p,o){var n=$(p.el);var m=$("<ul/>");m.addClass("tree inner");b.LoadTocChildren(p,m,function(){n.append(m);o()})},function(){var m=k.el[0];b._UnhideNode(m);b._SelectNode(m)})}}function g(j){b._HelpSystem.FindNode(b._RuntimeFileType,d,j,function(l){if(!l){if(!MadCap.String.IsNullOrEmpty(j.Fragment)||!MadCap.String.IsNullOrEmpty(j.Query)){var k=new MadCap.Utilities.Url(j.PlainPath);b._HelpSystem.FindNode(b._RuntimeFileType,d,k,i)}}else{i(l)}})}var h=c.HashMap.GetItem("cshid");if(h!=null){b._HelpSystem.LookupCSHID(h,function(k){var j=k.Found?new MadCap.Utilities.Url(k.Topic).ToRelative(b._HelpSystem.GetContentPath()):new MadCap.Utilities.Url(b._HelpSystem.DefaultStartTopic);g(j)})}else{g(c)}})};a.prototype._UnhideNode=function(b){var d=MadCap.Dom.GetAncestorNodeByTagName(b,"li",this._ContainerEl);while(d!=null){var c=$(d);c.removeClass("tree-node-collapsed");c.addClass("tree-node-expanded");d=MadCap.Dom.GetAncestorNodeByTagName(d,"li",this._ContainerEl)}};a.prototype.NavigateTopic=function(e){var f=$(".tree-node-selected",this._ContainerEl)[0];if(f==null){f=$(".tree-node",this._ContainerEl)[0]}if(this.NeedsCreateToc(f)){var d=this;this.CreateToc(f,function(){d.NavigateTopic(e)});return}var b=e=="previous"?this._GetPrevious(f):this._GetNext(f);if(b==null){return}this._SelectNode(b);var c=$("> div a",b)[0];if(c!=null){document.location.href=$(c).attr("href")}this._UnhideNode(b)};a.prototype._SelectNode=function(c){var b=$(c);$(".tree-node-selected",this._ContainerEl).removeClass("tree-node-selected");b.addClass("tree-node-selected");b.scrollintoview()};a.prototype._GetNext=function(d){var c=$(d);if(c.find(".tree-node").length>0){return c.find(".tree-node")[0]}if(c.next(".tree-node").length>0){return c.next(".tree-node")[0]}var b=c;while(true){var e=$(b.parent().closest(".tree-node",this._ContainerEl));if(e.length==0){break}if(e.next(".tree-node").length>0){return e.next(".tree-node")[0]}b=e}return null};a.prototype._GetPrevious=function(d){var c=$(d);var b=c.prev(".tree-node");if(b.length==0){if(c.parent().closest(".tree-node",this._ContainerEl).length>0){return c.parent().closest(".tree-node",this._ContainerEl)[0]}else{return null}}if(b.find(".tree-node").length>0){return b.find(".tree-node").last()[0]}return b[0]}})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.IndexPane=function(c){var b=this;this._Init=false;this._ContainerEl=null;this._HelpSystem=c;this._EntryHeight=-1;this._IndexEntryCount=0;this._IndexEntries={};this._IndexDivs=new Array();this._XmlDoc=null;this._Chunks=null;this._AlphaMap=new MadCap.Utilities.Dictionary();this._LiCached=null;this._SeePrefix=null;this._SeeAlsoPrefix=null;this.GetPath=function(d,e){return MadCap.String.IsNullOrEmpty(d)?new MadCap.Utilities.Url(e).ToRelative("/Content/").FullPath:"../"+new MadCap.Utilities.Url(d+e).FullPath};this.LoadRootEntry=function(e,d){var g=$(e);var f=g.data("entry");b._HelpSystem.LoadRootIndexEntry(f,function(i){if(i.e&&!i.childrenLoaded){var h=$("<ul/>");h.addClass("tree inner");b.LoadEntries(h,i.e);g.append(h)}i.childrenLoaded=true;g.data("entry",i);if(d){d(i,g)}})};this.LoadEntries=function(g,d){var f=this;if(!$.isArray(d)){var e=[];$.each(d,function(h,i){if(!i.t){i.t=h}e.push(i)});e.sort(function(i,h){var k=(i.s||i.t).toLowerCase();var j=(h.s||h.t).toLowerCase();return k<j?-1:k>j?1:0});d=e}$.each(d,function(q,v){var s=$("<li/>");s.addClass("IndexEntry tree-node tree-node-collapsed");var l=v.t;var o=v.r=="See";var h=v.r=="SeeAlso";var j=$("<div/>");j.addClass("IndexTerm");var r=$("<span/>").addClass("label");j.append(r);var u=true;if(o){l=f._SeePrefix+": "+v.f;j.addClass("see");v.seeAlsoLinks=[v.f]}else{if(h){l=f._SeeAlsoPrefix+": ";v.seeAlsoLinks=[];seeAlsoLinks=v.f.split("; ");if(seeAlsoLinks.length>1){var k=$("<a/>").text(l);j.append(k);for(var n=0;n<seeAlsoLinks.length;n++){var t=seeAlsoLinks[n];var p=$("<a/>").addClass("seeAlsoLink").text(t);j.append(p);v.seeAlsoLinks.push(t);if(n<seeAlsoLinks.length-1){j.append("; ")}}u=false}else{l+=v.f;v.seeAlsoLinks.push(v.f)}j.addClass("see-also")}}if(u){var k=$("<a/>").text(l);j.append(k)}s.append(j);v.isRoot=typeof v.$!=="undefined";if(v.e){var m=$("<ul/>");m.addClass("tree inner");f.LoadEntries(m,v.e);s.append(m)}else{if(v.$===1||!v.isRoot){s.addClass("tree-node-leaf")}}g.append(s);v.el=s[0];s.data("entry",v);if(!o&&!h){if(typeof f._IndexEntries[l]=="undefined"){f._IndexEntries[l]=[v]}else{f._IndexEntries[l].push(v)}}})};this.FindEntry=function(e,d){b._HelpSystem.FindIndexEntry(e,function(f,g){if(!g){return}b.LoadRootEntry(f.el,function(){if(d){d(g)}})})};this.SelectEntry=function(h,l,i,j,m){$(".tree-node-selected",b._ContainerEl).removeClass("tree-node-selected");i.addClass("tree-node-selected");var k=h.pageY-j.offset().top;var d=h.pageX-j.offset().left;if(l.r&&!m){var g=$(".seeAlsoLink",i).index(h.target);var f=l.seeAlsoLinks[0];if(g>=0){f=l.seeAlsoLinks[g]}f=f.replace(", ",":");this.FindEntry(f,function(e){i=$(e.el);$container=$(b._ContainerEl).parent();b._UnhideNode(i[0]);b.SelectEntry(h,e,i,j,true);$container.animate({scrollTop:$container.scrollTop()+i.offset().top-$container.offset().top})});return}else{if(l.linkList&&l.linkList.length>1&&!m){MadCap.TopicHelpers.CreateLinkListPopup(l.linkList,b._ContainerEl,k,d,this,"#");h.preventDefault();h.stopPropagation()}else{if(l.linkList&&l.linkList.length==1){document.location.href="#"+l.linkList[0].Link}}}if(i.hasClass("tree-node-expanded")&&!m){i.removeClass("tree-node-expanded");i.addClass("tree-node-collapsed")}else{if(i.hasClass("tree-node-collapsed")){i.removeClass("tree-node-collapsed");i.addClass("tree-node-expanded")}}};this.TreeNode_Click=function(h){var d=MadCap.Dom.GetAncestorNodeByTagName(h.target,"li");if(d==null){return}if($(h.target).closest(".link-list-popup").length>0){return}var g=$(this);var i=$(d);h.preventDefault();var f=i.data("entry");if(!f||f.isRoot){b.LoadRootEntry(d,function(e,j){b.SelectEntry(h,e,j,g)})}else{b.SelectEntry(h,f,i,g)}};this.Search=function(){var d=this.value.toLowerCase();b._Terms.each(function(){var e=$(this);var f=e.parent().parent();var g=e.text().toLowerCase().indexOf(d)!=-1;f.css("display",g?"block":"none");e.removeHighlight("highlightIndex");if(g){e.highlight(d,"highlightIndex")}})}};var a=MadCap.WebHelp.IndexPane;a.prototype.Init=function(e,b){if(this._Init){if(b!=null){b()}return}var d=this;d._ContainerEl=e;var c=$(this._ContainerEl.parentNode);this._SeePrefix=c.attr("data-see-prefix")||"See";this._SeeAlsoPrefix=c.attr("data-see-also-prefix")||"See Also";d._HelpSystem.LoadIndex(function(h,g){var f=$("<ul/>");f.addClass("tree");d.LoadEntries(f,h.terms);var j=$(d._ContainerEl);j.click(d.TreeNode_Click);j.append(f);var i=$("#search-index");i.bind("keyup",d.Search);d._Terms=$(".IndexEntry a",this._ContainerEl);d._Init=true;if(b!=null){b()}},null)};a.prototype._UnhideNode=function(c){var b=MadCap.Dom.GetAncestorNodeByTagName(c,"li",this._ContainerEl);while(b!=null){var d=$(b);d.removeClass("tree-node-collapsed");d.addClass("tree-node-expanded");b=MadCap.Dom.GetAncestorNodeByTagName(b,"li",this._ContainerEl)}}})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.GlossaryPane=function(c){var b=this;this._Init=false;this._ContainerEl=null;this._HelpSystem=c;MadCap.Utilities.CrossFrame.AddMessageHandler(this.OnMessage,this);this.TreeNode_Click=function(j){var d=MadCap.Dom.GetAncestorNodeByTagName(j.target,"li");if(d==null){return}var l=$(d);var i=$("a",l);var h=i.text();var k=l.attr("data-chunk");var f=b._HelpSystem.Glossary.chunks[k];var g=new MadCap.Utilities.Url(f).ToFolder().ToFolder().FullPath;if(MadCap.String.EndsWith(g,"/")){g=g.slice(0,-1)}j.preventDefault();require([f],function(n){var o=n[h];$(".tree-node-selected",b._ContainerEl).removeClass("tree-node-selected");l.addClass("tree-node-selected");var e=$(".GlossaryPageTerm",d);if(!MadCap.String.IsNullOrEmpty(o.d)&&!e.hasClass("MCDropDownHead")){e.addClass("MCDropDownHead MCDropDownHotSpot");var s=$("<div/>");s.addClass("GlossaryPageDefinition MCDropDownBody");s.append(o.d);l.append(e);l.append(s);var p=new MadCap.TopicHelpers.DropDownControl(l[0]);p.Init(false);p.Open()}if(!MadCap.String.IsNullOrEmpty(o.l)){var m=i.attr("href");if(MadCap.String.IsNullOrEmpty(m)){var q=MadCap.String.IsNullOrEmpty(g)?new MadCap.Utilities.Url(o.l).ToRelative("/Content/").FullPath:"../"+new MadCap.Utilities.Url(g+o.l).FullPath;m=encodeURI(q);i.attr("href",m)}document.location.href="#"+m}else{if(l.hasClass("tree-node-expanded")){l.removeClass("tree-node-expanded");l.addClass("tree-node-collapsed")}else{if(l.hasClass("tree-node-collapsed")){l.removeClass("tree-node-collapsed");l.addClass("tree-node-expanded");if($("li",l.parent()).last()[0]==l[0]){var r=$(b._ContainerEl);r.animate({scrollTop:r[0].scrollHeight},500)}}}}})};this.Search=function(){var d=this.value.toLowerCase();b._Terms.each(function(){var e=$(this);var f=e.parent().parent();var g=e.text().toLowerCase().indexOf(d)!=-1;f.css("display",g?"block":"none");e.removeHighlight("highlightGlossary");if(g){e.highlight(d,"highlightGlossary")}})}};var a=MadCap.WebHelp.GlossaryPane;a.prototype.OnMessage=function(e,b,d){var c={Handled:false,FireResponse:true};return c};a.prototype.Init=function(d,b){if(this._Init){if(b!=null){b()}return}var c=this;c._ContainerEl=d;c._HelpSystem.LoadGlossary(function(f,k){var h=$("<ul/>");h.addClass("tree");for(var g=0;g<f.terms.length;g++){var m=f.terms[g];var l=$("<li/>");l.addClass("GlossaryPageEntry tree-node tree-node-collapsed");l.attr("data-chunk",m.c);var e=$("<div/>");e.addClass("GlossaryPageTerm");e.append("<a>"+m.t+"</a>");l.append(e);h.append(l)}var n=$(c._ContainerEl);n.click(c.TreeNode_Click);n.append(h);var j=$("#search-glossary");j.bind("keyup",c.Search);c._Terms=$(".GlossaryPageTerm a",c._ContainerEl);c._Init=true;if(b!=null){b()}},null)};a.prototype._SelectNode=function(b){$(".tree-node-selected",this._ContainerEl).removeClass("tree-node-selected");$(b).addClass("tree-node-selected")}})();(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}var b=(function(){var j={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},g={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},k="[^aeiou]",m="[aeiouy]",d=k+"[^aeiouy]*",i=m+"[aeiou]*",h="^("+d+")?"+i+d,e="^("+d+")?"+i+d+"("+i+")?$",f="^("+d+")?"+i+d+i+d,l="^("+d+")?"+m;return function(s){s=s.toLowerCase();var n,u,t,v,q,p,o,c=s;if(s.length<3){return s.toLowerCase()}t=s.substr(0,1);if(t=="y"){s=t.toUpperCase()+s.substr(1)}v=/^(.+?)(ss|i)es$/;q=/^(.+?)([^s])s$/;if(v.test(s)){s=s.replace(v,"$1$2")}else{if(q.test(s)){s=s.replace(q,"$1$2")}}v=/^(.+?)eed$/;q=/^(.+?)(ed|ing)$/;if(v.test(s)){var r=v.exec(s);v=new RegExp(h);if(v.test(r[1])){v=/.$/;s=s.replace(v,"")}}else{if(q.test(s)){var r=q.exec(s);n=r[1];q=new RegExp(l);if(q.test(n)){s=n;q=/(at|bl|iz)$/;p=new RegExp("([^aeiouylsz])\\1$");o=new RegExp("^"+d+m+"[^aeiouwxy]$");if(q.test(s)){s=s+"e"}else{if(p.test(s)){v=/.$/;s=s.replace(v,"")}else{if(o.test(s)){s=s+"e"}}}}}}v=/^(.+?)y$/;if(v.test(s)){var r=v.exec(s);n=r[1];v=new RegExp(l);if(v.test(n)){s=n+"i"}}v=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;if(v.test(s)){var r=v.exec(s);n=r[1];u=r[2];v=new RegExp(h);if(v.test(n)){s=n+j[u]}}v=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;if(v.test(s)){var r=v.exec(s);n=r[1];u=r[2];v=new RegExp(h);if(v.test(n)){s=n+g[u]}}v=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;q=/^(.+?)(s|t)(ion)$/;if(v.test(s)){var r=v.exec(s);n=r[1];v=new RegExp(f);if(v.test(n)){s=n}}else{if(q.test(s)){var r=q.exec(s);n=r[1]+r[2];q=new RegExp(f);if(q.test(n)){s=n}}}v=/^(.+?)e$/;if(v.test(s)){var r=v.exec(s);n=r[1];v=new RegExp(f);q=new RegExp(e);p=new RegExp("^"+d+m+"[^aeiouwxy]$");if(v.test(n)||(q.test(n)&&!(p.test(n)))){s=n}}v=/ll$/;q=new RegExp(f);if(v.test(s)&&q.test(s)){v=/.$/;s=s.replace(v,"")}if(t=="y"){s=t.toLowerCase()+s.substr(1)}return s.toLowerCase()}})();var a=MadCap.CreateNamespace("WebHelp.Search");a.Stemmer=b})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}var a=MadCap.CreateNamespace("WebHelp.Search");a.Tokenizer=function(){var j="";var g=-1;var d=new Array();this.Tokenize=function(o){var n=null;j=o;g=-1;for(var m=0;n=l();m++){d[m]=n}return d};function i(m){if(!m){return false}else{if(m=='"'){return false}else{if(m=="+"){return false}else{if(m=="^"){return false}else{if(m=="|"){return false}else{if(m=="&"){return false}else{if(m=="("){return false}else{if(m==")"){return false}else{if(e(m)){return false}else{return true}}}}}}}}}}function e(m){if(!m){return false}else{if(m==" "){return true}else{if(m.charCodeAt(0)==12288){return true}else{return false}}}}function f(){return j.charAt(g+1)}function h(){g++}function k(){var m="";for(;;){var n=f();if(!n){return(m=="")?null:m}if(n=="\\"){h();if(!f()){return null}h();continue}if(n=='"'){h();break}else{h();m+=n}}return m}function l(){var q=f();var n=null;var m="";if(!q){n=null}else{if(e(q)){for(q=f();e(q);q=f()){h();m+=q}n=new a.Token(m,a.Token.WhiteSpace)}else{if(q=="("){h();n=new a.Token(q,a.Token.LeftParen)}else{if(q==")"){h();n=new a.Token(q,a.Token.RightParen)}else{if(q=="^"){h();n=new a.Token(q,a.Token.Subtract)}else{if(q=="+"||q=="&"){h();n=new a.Token(q,a.Token.And)}else{if(q=="|"){h();n=new a.Token(q,a.Token.Or)}else{if(q=="!"){h();n=new a.Token(q,a.Token.Not)}else{if(q=='"'){h();var p=k();if(MadCap.String.Contains(p,a.Tokenizer.Connectors)){p=p.replace(a.Tokenizer.ConnectorRegex," ");p=$.trim(p)}n=new a.Token(p,(p==null)?a.Token.Error:a.Token.Phrase)}else{for(q=f();i(q);q=f()){h();m+=q}if(m=="and"||m=="AND"){n=new a.Token(m,a.Token.And)}else{if(m=="or"||m=="OR"){n=new a.Token(m,a.Token.Or)}else{if(m=="not"||m=="NOT"){n=new a.Token(m,a.Token.Not)}else{var o=a.Token.Word;if(MadCap.WebHelp.SearchPane.SearchDBs[0].SearchType=="NGram"){o=a.Token.Phrase}if(MadCap.String.Contains(m,a.Tokenizer.Connectors)){m=m.replace(a.Tokenizer.ConnectorRegex," ");m=$.trim(m);n=new a.Token(m,a.Token.Phrase)}else{n=new a.Token(m,o)}}}}}}}}}}}}}return n}};a.Tokenizer.Connectors=[".",",","'","/","_",":",";","\\","-","*","<",">","!","@"];a.Tokenizer.ConnectorRegex=new RegExp("["+a.Tokenizer.Connectors.join("")+"]","g");a.Token=function(d,f){var e=d;var g=f;this.GetTokenText=function(){return e};this.GetType=function(){return g}};var c=a.Token;c.Eof=0;c.Error=1;c.WhiteSpace=2;c.Phrase=3;c.Word=4;c.RightParen=5;c.LeftParen=6;c.Not=7;c.Subtract=8;c.And=9;c.Or=10;c.ImplicitOr=11;a.Parser=function(h){var j=this;var l=h;var e=-1;var i=new a.Tokenizer();var d=i.Tokenize(l);this.GetStemMap=function(n){function r(){x++;if(x==p){for(var I=0;I<d.length;I++){var D=d[I];if(D.GetType()==a.Token.Word){var E=D.GetTokenText();var B=new MadCap.Utilities.Dictionary();z.Add(E,B);for(var H=0;H<MadCap.WebHelp.SearchPane.SearchDBs.length;H++){var C=MadCap.WebHelp.SearchPane.SearchDBs[H];if(C.SearchType=="NGram"){for(var G=0;G<E.length-C.NGramSize+1;G++){var A=E.substring(G,G+C.NGramSize);var F=a.Stemmer(A);C.LookupPhrases(F,B)}}else{var F=a.Stemmer(E);C.LookupPhrases(F,B)}}}else{if(D.GetType()==a.Token.Phrase){var E=D.GetTokenText();var B=new MadCap.Utilities.Dictionary();B.Add(E,true);z.Add(E,B)}}}n(z)}}var x=0;var p=0;var z=new MadCap.Utilities.Dictionary();for(var y=0;y<d.length;y++){var s=d[y];if(s.GetType()==a.Token.Word){var t=s.GetTokenText();for(var w=0;w<MadCap.WebHelp.SearchPane.SearchDBs.length;w++){var q=MadCap.WebHelp.SearchPane.SearchDBs[w];if(q.SearchType=="NGram"){for(var v=0;v<t.length-q.NGramSize+1;v++){p++}}else{p++}}}else{if(s.GetType()==a.Token.Phrase){p++}}}for(var y=0;y<d.length;y++){var s=d[y];if(s.GetType()==a.Token.Word){var t=s.GetTokenText();for(var w=0;w<MadCap.WebHelp.SearchPane.SearchDBs.length;w++){var q=MadCap.WebHelp.SearchPane.SearchDBs[w];if(q.SearchType=="NGram"){for(var v=0;v<t.length-q.NGramSize+1;v++){var o=t.substring(v,v+q.NGramSize);var u=a.Stemmer(o);q.LoadChunk(u,r)}}else{var u=a.Stemmer(t);q.LoadChunk(u,r)}}}else{if(s.GetType()==a.Token.Phrase){r()}}}};this.ParseExpression=function(){var o=k();g();if(f()==a.Token.Eof){return o}else{if(f()==a.Token.And||f()==a.Token.Or||f()==a.Token.Subtract){m();var n=new a.Node(d[e],o,this.ParseExpression());return n}else{if(f()==a.Token.Word||f()==a.Token.Phrase||f()==a.Token.Not||f()==a.Token.LeftParen){var n=new a.Node(new a.Token(o.GetToken().GetTokenText()+" "+d[e+1].GetTokenText(),a.Token.ImplicitOr),o,this.ParseExpression());return n}else{if(f()==a.Token.RightParen){return o}}}}throw gInvalidTokenLabel};function m(){e++}function k(){g();if(f()==a.Token.Word){m();return new a.Node(d[e],null,null)}else{if(f()==a.Token.Phrase){m();return new a.Node(d[e],null,null)}else{if(f()==a.Token.Not){m();return new a.Node(d[e],k(),null)}else{if(f()==a.Token.LeftParen){m();var n=d[e];var o=new a.Node(n,j.ParseExpression(),null);if(f()!=a.Token.RightParen){throw"Missing right paren ')'."}m();return o}}}}throw gInvalidTokenLabel}function f(){if(d[e+1]==null){return a.Token.Eof}else{return d[e+1].GetType()}}function g(){for(;f()==a.Token.WhiteSpace;){m()}}};a.Node=function(f,g,e){var d=f;var i=g;var h=e;this.Evaluate=function(m,l,j){var o=d.GetType();if(o==a.Token.Word){this.EvaluateWord(m,l,j);return}else{if(o==a.Token.Phrase){this.EvaluatePhrase(m,l,j);return}else{if(o==a.Token.And||o==a.Token.ImplicitOr||o==a.Token.Or||o==a.Token.Subtract){var p=d.GetType()==a.Token.ImplicitOr;var n=d.GetType()==a.Token.ImplicitOr||d.GetType()==a.Token.Or;i.Evaluate(p,n,function(q){h.Evaluate(false,false,function(r){if(d.GetType()==a.Token.And){j(q.ToIntersection(r,m,l))}else{if(d.GetType()==a.Token.ImplicitOr){r.PromotePhrases(q,d);q.ToUnion(r,m,l);j(q)}else{if(d.GetType()==a.Token.Or){q.ToUnion(r,m,l);j(q)}else{if(d.GetType()==a.Token.Subtract){j(q.ToDifference(r,m,l))}}}}})});return}else{if(o==a.Token.LeftParen){if(i){i.Evaluate(m,l,j);return}j(new a.QueryResultSet());return}else{if(o==a.Token.Not){function k(w){var q=w;var u=new a.QueryResultSet();for(var v=0;v<MadCap.WebHelp.SearchPane.SearchDBs.length;v++){var r=MadCap.WebHelp.SearchPane.SearchDBs[v];for(var t=0;t<r.URLSources.length;t++){var A=false;var y=null;for(var s=0;s<q.GetLength();s++){y=q.GetResult(s);if(y.Entry.TopicID==t&&y.SearchDB==v){A=true;break}}if(!A){var x=new a.Entry(0,t,-1);var z=new a.QueryResult(v,x,0,null);u.Add(z,m,l,false)}}}j(u)}if(i){i.Evaluate(m,l,k)}else{k(new a.QueryResultSet())}return}}}}}};this.EvaluateWord=function(t,u,k){function q(){s++;if(s==n){w.ForEach(function(D,E){for(var C=0;C<MadCap.WebHelp.SearchPane.SearchDBs.length;C++){var y=MadCap.WebHelp.SearchPane.SearchDBs[C];if(y.SearchType=="NGram"){for(var A=0;A<D.length-y.NGramSize+1;A++){var z=D.substring(A,A+y.NGramSize);y.LookupStem(v,z,C,t,u)}}else{y.LookupStem(v,D,C,t,u)}for(var A=0,B=v.GetLength();A<B;A++){var x=v.GetResult(A);if(x.ParentPhraseName==l){x.Ranking=x.Ranking+1000}else{if(x.ParentPhraseName.toLowerCase()==l.toLowerCase()){x.Ranking=x.Ranking+500}}if(w.GetLength()>0&&m==0){x.Ranking=x.Ranking+50}}m++}return true});k(v)}}var s=0;var n=0;var l=d.GetTokenText();var w=new MadCap.Utilities.Dictionary();var p=a.Stemmer(l);w.Add(l,true);w.Add(p,true);for(var r=0;r<MadCap.WebHelp.SearchPane.SearchDBs.length;r++){var o=MadCap.WebHelp.SearchPane.SearchDBs[r];if(o.SynonymFile!=null){o.SynonymFile.AddSynonymStems(l,p,w)}if(o.DownloadedSynonymFile!=null){o.DownloadedSynonymFile.AddSynonymStems(l,p,w)}}var v=new a.QueryResultSet();var m=0;w.ForEach(function(A,B){for(var z=0;z<MadCap.WebHelp.SearchPane.SearchDBs.length;z++){var x=MadCap.WebHelp.SearchPane.SearchDBs[z];if(x.SearchType=="NGram"){for(var y=0;y<A.length-x.NGramSize+1;y++){n++}}else{n++}}return true});w.ForEach(function(B,C){for(var A=0;A<MadCap.WebHelp.SearchPane.SearchDBs.length;A++){var x=MadCap.WebHelp.SearchPane.SearchDBs[A];if(x.SearchType=="NGram"){for(var z=0;z<B.length-x.NGramSize+1;z++){var y=B.substring(z,z+x.NGramSize);x.LoadChunk(y,q)}}else{x.LoadChunk(B,q)}}return true})};this.EvaluatePhrase=function(v,w,k){function p(){u++;if(u==m){for(var B=0;B<t.length;B++){var A=t[B];var z=new a.QueryResultSet();var D=new MadCap.Utilities.Dictionary();var C=a.Stemmer(A);D.Add(C,true);D.ForEach(function(I,J){for(var H=0;H<MadCap.WebHelp.SearchPane.SearchDBs.length;H++){var E=MadCap.WebHelp.SearchPane.SearchDBs[H];if(E.SearchType=="NGram"){for(var G=0;G<I.length-E.NGramSize+1;G++){var F=I.substring(G,G+E.NGramSize);E.LookupStem(z,F,H,true,w)}}else{E.LookupStem(z,I,H,true,w)}}return true});if(!y){y=z;continue}var j=y.ToPhrases(z,d,true,w);if(j.GetLength()==0){k(j);return}y=j}if(!y){y=new a.QueryResultSet()}k(y)}}var u=0;var m=0;var l=d.GetTokenText();var t=a.SplitPhrase(l);var y=null;for(var s=0;s<t.length;s++){var q=t[s];var x=new MadCap.Utilities.Dictionary();var o=a.Stemmer(q);x.Add(o,true);for(var r=0;r<MadCap.WebHelp.SearchPane.SearchDBs.length;r++){var n=MadCap.WebHelp.SearchPane.SearchDBs[r];if(n.SynonymFile!=null){n.SynonymFile.AddSynonymStems(l,o,x)}if(n.DownloadedSynonymFile!=null){n.DownloadedSynonymFile.AddSynonymStems(l,o,x)}}}for(var s=0;s<t.length;s++){var q=t[s];var x=new MadCap.Utilities.Dictionary();var o=a.Stemmer(q);x.Add(o,true);x.ForEach(function(C,D){for(var B=0;B<MadCap.WebHelp.SearchPane.SearchDBs.length;B++){var z=MadCap.WebHelp.SearchPane.SearchDBs[B];if(z.SearchType=="NGram"){for(var A=0;A<C.length-z.NGramSize+1;A++){m++}}else{m++}}return true})}for(var s=0;s<t.length;s++){var q=t[s];var x=new MadCap.Utilities.Dictionary();var o=a.Stemmer(q);x.Add(o,true);x.ForEach(function(D,E){for(var C=0;C<MadCap.WebHelp.SearchPane.SearchDBs.length;C++){var z=MadCap.WebHelp.SearchPane.SearchDBs[C];if(z.SearchType=="NGram"){for(var B=0;B<D.length-z.NGramSize+1;B++){var A=D.substring(B,B+z.NGramSize);z.LoadChunk(A,p)}}else{z.LoadChunk(D,p)}}return true})}};this.GetToken=function(){return d}};a.Entry=function(f,d,e){this.Rank=f;this.TopicID=d;this.Word=e};a.QueryResult=function(f,d,g,e){this.SearchDB=f;this.Entry=d;this.Ranking=g;this.ParentPhraseName=e};a.QueryResultSet=function(){this.mResults=new Array();this.mWordMap=new MadCap.Utilities.Dictionary();this.mPhraseMap=new MadCap.Utilities.Dictionary();this.mTopicMap=new MadCap.Utilities.Dictionary()};var b=a.QueryResultSet;b.prototype.Add=function(e,j,h,k){this.mResults[this.mResults.length]=e;var d=e.SearchDB;var i=e.Entry;if(j){var g=d+"_"+i.TopicID+"_"+i.Word;this.mWordMap.Add(g,e)}if(h){var g=e.ParentPhraseName+"_"+d+"_"+i.TopicID+"_"+i.Word;this.mPhraseMap.Add(g,true)}if(k){var g=d+"_"+i.TopicID;var f=this.mTopicMap.GetItem(g);if(!f){f=new Array();this.mTopicMap.Add(g,f)}f[f.length]=this.mResults.length-1}};b.prototype.AddAllUnique=function(h,l,n){var m=h.GetLength();for(var j=0;j<m;j++){var q=h.GetResult(j);var o=q.Entry;var f=q.SearchDB;var e=q.ParentPhraseName;var g=o.Rank;var k=o.TopicID;var d=o.Word;var p=e+"_"+f+"_"+k+"_"+d;if(this.mPhraseMap.GetItem(p)){continue}this.Add(q,l,n,false)}};b.prototype.Compact=function(){var e=new Array();for(var d=0;d<this.mResults.length;d++){if(this.mResults[d]){e[e.length]=this.mResults[d]}}this.mResults=e};b.prototype.GetLength=function(){return this.mResults.length};b.prototype.GetResult=function(d){return this.mResults[d]};b.prototype.GetWordMap=function(){return this.mWordMap};b.prototype.RemoveAt=function(d){this.mResults[d]=null};b.prototype.RemoveTopicId=function(n){var h=n.Entry.TopicID;var d=n.SearchDB;var j=d+"_"+h;var e=this.mTopicMap.GetItem(j);if(e){for(var f=0;f<e.length;f++){var m=this.mResults[e[f]];var k=m.Entry;var g=d+"_"+h+"_"+k.Word;var l=m.ParentPhraseName+"_"+d+"_"+h+"_"+k.Word;this.mWordMap.Remove(g);this.mPhraseMap.Remove(l);this.mTopicMap.Remove(j);this.RemoveAt(e[f])}}};b.prototype.ShallowClone=function(g,f,h){var e=new b();for(var d=0;d<this.mResults.length;d++){e.Add(this.mResults[d],g,f,h)}return e};b.prototype.SortByRank=function(){this.mResults.sort(this.CompareRank)};b.prototype.ToDifference=function(e,g,f){var h=this.ShallowClone(g,f,true);for(var d=0;d<e.GetLength();d++){h.RemoveTopicId(e.GetResult(d))}h.Compact();return h};b.prototype.ToIntersection=function(d,h,k){var f=new b();var j=new MadCap.Utilities.Dictionary();var g=new MadCap.Utilities.Dictionary();for(var e=0;e<this.mResults.length;e++){var m=this.mResults[e];var l=m.SearchDB+"_"+m.Entry.TopicID;j.Add(l,true)}for(var e=0;e<d.GetLength();e++){var m=d.GetResult(e);var l=m.SearchDB+"_"+m.Entry.TopicID;g.Add(l,true)}for(var e=0;e<this.mResults.length;e++){var m=this.mResults[e];var l=m.SearchDB+"_"+m.Entry.TopicID;if(g.GetItem(l)){f.Add(m,h,k,false)}}for(var e=0;e<d.GetLength();e++){var l=d.GetResult(e).SearchDB+"_"+d.GetResult(e).Entry.TopicID;if(j.GetItem(l)){f.Add(d.GetResult(e),h,k,false)}}return f};b.prototype.ToMerged=function(){var e=new b();var k=new MadCap.Utilities.Dictionary();for(var g=0,j=this.mResults.length;g<j;g++){var d=this.mResults[g];var f=d.SearchDB+"_"+this.mResults[g].Entry.TopicID;var h=k.GetItem(f);if(h){h.Ranking=h.Ranking+d.Ranking;continue}k.Add(f,d);e.Add(d,false,false,false)}return e};b.prototype.ToPhrases=function(e,d,i,g){if(!e){var f=new b();return f}var h=this.FindAdjacentEntries(e,d,i,g);return h};b.prototype.ToUnion=function(d,f,e){this.AddAllUnique(d,f,e)};b.prototype.CompareRank=function(e,d){var h=e.Ranking;var g=d.Ranking;var f=g-h;return f};b.prototype.FindAdjacentEntries=function(n,k,e,h){var p=new b();var d=a.SplitPhrase(k.GetTokenText());var l=new MadCap.Utilities.Dictionary();for(var q=0;q<d.length;q++){l.Add(d[q],true)}var v=n.GetWordMap();for(var r=0;r<this.mResults.length;r++){var m=this.mResults[r];var f=m.Entry;var g=m.SearchDB;var s=f.Rank;var o=f.TopicID;var t=f.Word;var w=g+"_"+o+"_"+(parseInt(t)+1);var u=v.GetItem(w);if(u){if(l.GetItem(u.ParentPhraseName)&&l.GetItem(m.ParentPhraseName)){u.Ranking=m.Ranking+10000}else{u.Ranking=m.Ranking+1000}p.Add(u,e,h,false)}}return p};b.prototype.PromotePhrases=function(m,h){var f=a.SplitPhrase(h.GetTokenText());var e=new MadCap.Utilities.Dictionary();for(var k=0;k<f.length;k++){e.Add(f[k],true)}var q=m.GetWordMap();for(var n=0;n<this.mResults.length;n++){var t=this.mResults[n];var r=t.Entry;var g=t.SearchDB;var l=r.Rank;var p=r.TopicID;var d=r.Word;var s=g+"_"+p+"_"+(parseInt(d)-1);var o=q.GetItem(s);if(o){if(e.GetItem(o.ParentPhraseName)&&e.GetItem(t.ParentPhraseName)){o.Ranking=t.Ranking+10000}else{o.Ranking=t.Ranking+1000}}}};a.SplitPhrase=function(g){var f=null;var d=MadCap.WebHelp.SearchPane.SearchDBs[0];if(d.SearchType=="NGram"){f=new Array(Math.max(0,g.length-(d.NGramSize+1)));for(var e=0;e<g.length-d.NGramSize+1;e++){f[e]=g.substring(e,e+d.NGramSize)}}else{f=g.split(" ")}return f}})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Default"){return}MadCap.WebHelp=MadCap.CreateNamespace("WebHelp");MadCap.WebHelp.SearchPane=function(f){this._Init=false;this._HelpSystem=f;this._FeedbackController=null;this._Parser=null;this._Filters=null;this._FullSet=null;this._MergedSet=null;this._FilteredSet=null;this._Highlight="";this._DownloadedSynonymXmlDocRootNode=null};var c=MadCap.WebHelp.SearchPane;c.SearchDBs=new Array();c.prototype.Init=function(f){if(this._Init){if(f){f()}return}var i=this;if(this._HelpSystem.LiveHelpEnabled){this._FeedbackController=new MadCap.WebHelp.FeedbackController(this._HelpSystem.LiveHelpServer);this._FeedbackController.Init(function(){if(i._FeedbackController.FeedbackActive){i._FeedbackController.GetSynonymsFile(i._HelpSystem.LiveHelpOutputId,null,function(l,j){var k=MadCap.Utilities.Xhr.LoadXmlString(l);if(k!=null){i._DownloadedSynonymXmlDocRootNode=k.documentElement}h()},null)}else{h()}})}else{h()}function h(){if(!i._HelpSystem.IsWebHelpPlus){i._HelpSystem.GetSearchDBs(g)}else{g(null)}}function g(j){c.SearchDBs=j;i._Filters=new b.Filters(i._HelpSystem);i._Filters.Load(function(){i._Init=true;if(f){f()}})}};c.prototype.ApplySearchFilter=function(g,f){if(!this._HelpSystem.IsWebHelpPlus){this._FilteredSet=this._Filters.ApplyFilter(this._MergedSet,g);if(this._FilteredSet!=null){this._FilteredSet.SortByRank()}if(f!=null){f(this._FilteredSet)}}};c.prototype.StartSearch=function(h,g,f){if(MadCap.String.IsNullOrEmpty(MadCap.String.Trim(h))){return}if(!this._HelpSystem.IsWebHelpPlus){this.DoSearch(h,g,f)}else{this.DoSearchWebHelpPlus(h,g,f)}};c.prototype.StartPulseSearch=function(i,h,g,f){if(MadCap.String.IsNullOrEmpty(MadCap.String.Trim(i))){return}if(this._FeedbackController&&this._FeedbackController.PulseActive){this._FeedbackController.GetPulseSearchResults(this._HelpSystem.LiveHelpOutputId,i,h,g,f)}else{if(f!=null){f()}}};c.prototype.DoSearch=function(k,i,f){this._Parser=new b.Parser(k);var g=null;try{g=this._Parser.ParseExpression()}catch(j){alert("Ensure that the search string is properly formatted.");f()}if(!g){return}if(this._DownloadedSynonymXmlDocRootNode!=null&&c.SearchDBs[0].DownloadedSynonymFile==null){c.SearchDBs[0].DownloadedSynonymFile=new b.SynonymFile(this._DownloadedSynonymXmlDocRootNode)}var h=this;g.Evaluate(false,false,function(l){h._FullSet=l;if(h._FullSet){h._MergedSet=h._FullSet.ToMerged();h.ApplySearchFilter(i,function(m){if(f!=null){f(m)}})}})};c.prototype.DoSearchWebHelpPlus=function(m,k,h){function g(y,t){var w=new b.SearchResultSet();var p=y.getElementsByTagName("Result");var s=p.length;for(var q=0;q<s;q++){var x=p[q];var o=MadCap.Dom.GetAttributeInt(x,"Rank",-1);var v=x.getAttribute("Title");var u=x.getAttribute("Link");var n=x.getAttribute("AbstractText");if(MadCap.String.IsNullOrEmpty(v)){v=x.getAttribute("Filename")}var r=new b.SearchResult(o,v,u,n);w.Add(r)}h(w)}MadCap.Utilities.Xhr.CallWebService("Service/Service.asmx/GetSearchResults?SearchString="+encodeURIComponent(m)+"&FilterName="+encodeURIComponent(k),true,g,null);var l=m.split(" ");var f=true;this._Highlight="?Highlight=";for(var j=0;j<l.length;j++){if(!f){this._Highlight+="||"}else{f=false}this._Highlight+=l[j]}};var b=MadCap.CreateNamespace("WebHelp.Search");MadCap.WebHelp.Search.SearchDB=function(f){this.URLSources=new Array();this.URLTitles=new Array();this.URLAbstracts=new Array();this.SearchDB=new MadCap.Utilities.Dictionary();this.HelpSystem=f;this.SearchType=null;this.NGramSize=0;this.SynonymFile=null;this.DownloadedSynonymFile=null};var a=b.SearchDB;a.prototype.Load=function(g,f){MadCap.Utilities.Xhr.Load(this.HelpSystem.GetPath()+"Data/Synonyms.xml",true,function(h){if(h!=null){this.SynonymFile=new b.SynonymFile(h.documentElement)}this._LoadSearchDB(this.HelpSystem.GetPath()+g,f)},null,this)};a.prototype.LookupPhrases=function(h,g){var f=this.SearchDB.GetItem(h);if(f){f.ForEach(function(i,j){g.Add(i,true);return true})}};a.prototype.LookupStem=function(h,k,j,i,g){var f=this.SearchDB.GetItem(k);if(f){f.ForEach(function(o,r){var m=r;for(var n=0,q=m.length;n<q;n++){var p=m[n];var l=new b.QueryResult(j,p,p.Rank,o);h.Add(l,i,g,false)}return true})}};a.prototype._LoadSearchDB=function(g,f){MadCap.Utilities.Xhr.Load(g,true,function(p){var H=MadCap.Dom.GetChildNodeByTagName(p.documentElement,"urls",0).getElementsByTagName("Url");var E=p.getElementsByTagName("stem");var B=p.documentElement;this.SearchType=B.getAttribute("SearchType");this.NGramSize=parseInt(MadCap.Dom.GetAttribute(B,"NGramSize",0));for(var F=0;F<H.length;F++){var m=H[F];this.URLSources[F]=MadCap.Dom.GetAttribute(m,"Source");this.URLTitles[F]=MadCap.Dom.GetAttribute(m,"Title");this.URLAbstracts[F]=MadCap.Dom.GetAttribute(m,"Abstract")}for(var F=0;F<E.length;F++){var o=E[F];var G=o.getAttribute("n");var u=o.getAttribute("chunk");if(u){this.SearchDB.Add(G,u)}else{var I=o.getElementsByTagName("phr");var h=new MadCap.Utilities.Dictionary();this.SearchDB.Add(G,h);for(var D=0;D<I.length;D++){var y=I[D];var A=y.getAttribute("n");var x=y.getElementsByTagName("ent");var q=new Array(x.length);h.Add(A,q);for(var C=0;C<x.length;C++){var n=x[C];var z=parseInt(n.getAttribute("r"));var v=parseInt(n.getAttribute("t"));var s=parseInt(n.getAttribute("w"));var l=new b.Entry(z,v,s);q[C]=l}}}}f()},null,this)};a.prototype.LoadChunk=function(g,f){if(typeof this.SearchDB.GetItem(g)=="string"){MadCap.Utilities.Xhr.Load(this.HelpSystem.GetPath()+"Data/"+this.SearchDB.GetItem(g),true,function(o){var B=o.getElementsByTagName("stem");for(var C=0;C<B.length;C++){var m=B[C];var D=m.getAttribute("n");var E=m.getElementsByTagName("phr");var h=new MadCap.Utilities.Dictionary();this.SearchDB.Add(D,h);for(var A=0;A<E.length;A++){var v=E[A];var y=v.getAttribute("n");var u=v.getElementsByTagName("ent");var p=new Array(u.length);h.Add(y,p);for(var z=0;z<u.length;z++){var n=u[z];var x=parseInt(n.getAttribute("r"));var s=parseInt(n.getAttribute("t"));var q=parseInt(n.getAttribute("w"));var l=new b.Entry(x,s,q);p[z]=l}}}f()},null,this)}else{f()}};b.SearchResult=function(i,h,g,f){this.Rank=i;this.Title=h;this.Link=g;this.AbstractText=f};b.SearchResultSet=function(){this._Results=new Array()};var e=b.SearchResultSet;e.prototype.Add=function(f){this._Results[this._Results.length]=f};e.prototype.GetResult=function(f){return this._Results[f]};e.prototype.GetLength=function(){return this._Results.length};b.Filters=function(g){var f=g;this.Load=function(h){f.LoadMergedSearchFilters(function(i){f.LoadAllConcepts(function(){h()})},null,null)};this.ApplyFilter=function(t,r){if(!t){return null}var l=new b.QueryResultSet();if(r==null){for(var s=0,n=t.GetLength();s<n;s++){l.Add(t.GetResult(s),false,false,false)}}else{for(var s=0,n=t.GetLength();s<n;s++){var v=t.GetResult(s);var o=v.SearchDB;var p=c.SearchDBs[o];var k=parseInt(v.Entry.TopicID);var j=p.URLSources[k];var q=p.HelpSystem.GetPath()+j.substring("../".length,j.length);var h=p.HelpSystem.GetSearchFilters();if(h==null){continue}var m=h.GetItem(r);if(m==null){continue}var u=p.HelpSystem.GetConcepts();m.ForEach(function(x,z){var i=u.GetItem(x);if(i!=null){for(var w=0,A=i.length;w<A;w++){var y=new MadCap.Utilities.Url(i[w].Link);if(y.PlainPath==q){l.Add(v,false,false,false);return false}}}return true})}}return l}};b.SynonymFile=function(f){this.WordToStem=new MadCap.Utilities.Dictionary();this.Directionals=new MadCap.Utilities.Dictionary();this.DirectionalStems=new MadCap.Utilities.Dictionary();this.DirectionalStemSources=new MadCap.Utilities.Dictionary();this.Groups=new MadCap.Utilities.Dictionary();this.GroupStems=new MadCap.Utilities.Dictionary();this.GroupStemSources=new MadCap.Utilities.Dictionary();this.LoadSynonymFile(f)};var d=b.SynonymFile;d.prototype.LoadSynonymFile=function(F){var E=MadCap.Dom.GetChildNodeByTagName(F,"Groups",0);var m=MadCap.Dom.GetChildNodeByTagName(F,"Directional",0);if(m!=null){var p=m.childNodes.length;for(var B=0;B<p;B++){var o=m.childNodes[B];if(o.nodeName=="DirectionalSynonym"){var z=MadCap.Dom.GetAttribute(o,"From");var n=MadCap.Dom.GetAttribute(o,"To");var s=MadCap.Dom.GetAttributeBool(o,"Stem",false);var h=MadCap.Dom.GetAttribute(o,"FromStem");var q=MadCap.Dom.GetAttribute(o,"ToStem");if(s){if(h==null){h=b.Stemmer(z)}}if(q==null){q=b.Stemmer(n)}if(z!=null&&n!=null){if(s){this.DirectionalStemSources.Add(z,q);this.DirectionalStems.Add(h,q);this.WordToStem.Add(z,h);this.WordToStem.Add(n,q)}else{this.Directionals.Add(z,q);this.WordToStem.Add(n,q)}}}}}if(E!=null){var p=E.childNodes.length;for(var B=0;B<p;B++){var o=E.childNodes[B];if(o.nodeName=="SynonymGroup"){var w=new Array();var x=new Array();var s=MadCap.Dom.GetAttributeBool(o,"Stem",false);var u=o.childNodes.length;for(var A=0;A<u;A++){var D=o.childNodes[A];if(D.nodeType!=1){continue}w.push(D.firstChild.nodeValue)}for(var A=0;A<u;A++){var D=o.childNodes[A];if(D.nodeType!=1){continue}var G=MadCap.Dom.GetAttribute(D,"Stem");if(G==null){G=b.Stemmer(D.firstChild.nodeValue)}this.WordToStem.Add(D.firstChild.nodeValue,G);x.push(G)}var v=w.length;for(var A=0;A<v;A++){var C=w[A];var g=x[A];for(var y=0;y<v;y++){var f=w[y];if(s){var t=this.GroupStemSources.GetItem(C);if(t==null){t=new MadCap.Utilities.Dictionary();this.GroupStemSources.Add(C,t)}t.Add(f,g)}else{var t=this.GroupStemSources.GetItem(C);if(t==null){t=new MadCap.Utilities.Dictionary();this.Groups.Add(C,t)}t.Add(f,g)}}}var r=x.length;for(var A=0;A<r;A++){var g=x[A];for(var y=0;y<r;y++){var l=x[y];var t=this.GroupStems.GetItem(g);if(t==null){t=new MadCap.Utilities.Dictionary();this.GroupStems.Add(g,t)}t.Add(l,g)}}}}}};d.prototype.AddSynonymStems=function(f,j,h){var g=this.Directionals.GetItem(f);if(g!=null){h.AddUnique(g)}g=this.DirectionalStems.GetItem(j);if(g!=null){h.AddUnique(g)}var i=this.Groups.GetItem(f);if(i!=null){i.ForEach(function(k,l){h.AddUnique(k);return true})}i=this.GroupStems.GetItem(j);if(i!=null){i.ForEach(function(k,l){h.AddUnique(k);return true})}}})();/*
* Copyright MadCap Software
* http://www.madcapsoftware.com/
*
* v9.0.0.0
*/
(function(){if(MadCap.Dom.Dataset(document.documentElement,"mcRuntimeFileType")!="Topic"){return}MadCap.CreateNamespace("TopicHelpers");var x=MadCap.TopicHelpers;x.Expand=function(B){var C=new x.ExpandingControl(B.parentNode);C.Toggle()};x.DropDown=function(B){var C=new x.DropDownControl(B.parentNode.parentNode);C.Toggle()};x.Toggle=function(B){var C=new x.TogglerControl(B);C.Toggle()};x.ThumbPopup_Click=function(B){var C=x.ShowThumbnailPopup(this,"click");if(B.preventDefault){B.preventDefault()}};x.ThumbPopup_Hover=function(B){var C=x.ShowThumbnailPopup(this,"mouseleave")};x.ShowThumbnailPopup=function(aa,X){var W=10;var S=1;var O=10;var F=$(aa).children("img")[0];var R=parseInt(MadCap.Dom.Dataset(F,"mcWidth"));var L=parseInt(MadCap.Dom.Dataset(F,"mcHeight"));var B=L/R;var Z=document.documentElement.clientWidth-((W+S+O)*2);var V=document.documentElement.clientHeight-((W+S+O)*2);if(L>V){L=V;R=L/B}if(R>Z){R=Z;L=R*B}var ae=MadCap.Dom.GetAttribute(aa,"href");var Q=L+((S+O)*2);var M=R+((S+O)*2);var N=(F.offsetTop+(F.offsetHeight/2))-(Q/2);var I=(F.offsetLeft+(F.offsetWidth/2))-(M/2);var H=MadCap.Dom.GetScrollPosition();var T=H.Y;var D=T+document.documentElement.clientHeight;var ab=H.X;var C=ab+document.documentElement.clientWidth;var J=T+W;var U=ab+W;var K=D-W;var E=C-W;if(N<J){N=J}if(I<U){I=U}if(N+Q>K){N=K-Q}if(I+M>E){I=E-M}var G=$("<div></div>");G.addClass("MCPopupContainer");var Y=document.createElement("img");$(Y).addClass("MCPopupFullImage");Y.setAttribute("src",ae);G.bind(X,function(){MadCap.DEBUG.Log.AddLine(X);G.animate({top:ad,left:P},200,function(){G.remove()});$(Y).animate({width:F.offsetWidth,height:F.offsetHeight},200);$(ac).animate({opacity:0},200,function(){x.RemoveBackgroundTint()})});G.append(Y);document.body.appendChild(G[0]);var ad=F.offsetTop-(S+O);var P=F.offsetLeft-(S+O);G.css({top:ad,left:P}).animate({top:N,left:I},200);$(Y).css({width:F.offsetWidth,height:F.offsetHeight}).animate({width:R,height:L},200);var ac=x.AddBackgroundTint();$(ac).animate({opacity:0.5},200)};x.HelpControl_Click=function(C){var B=this;x.GetHelpControlLinks(this,function(J){var D=new MadCap.Utilities.Url(document.location.href);for(var E=J.length-1;E>=0;E--){var H=J[E];var F=new MadCap.Utilities.Url(H.Link);if(F.FullPath==D.FullPath){J.Remove(E)}F=F.ToRelative(D);H.Link=F.FullPath}if(!$(B).hasClass("MCHelpControl-Related")){J.sort(function(L,K){return L.Title.localeCompare(K.Title)})}var G=new MadCap.Utilities.Dictionary();for(var E=J.length-1;E>=0;E--){var H=J[E];var F=H.Link;if(G.GetItem(F)){J.Remove(E);continue}G.Add(H.Link,true)}var I=x.CreateLinkListPopup(J,document.body,C.pageY,C.pageX,B)},null);C.preventDefault();C.stopPropagation()};x.GetHelpControlLinks=function(H,L){var K=new Array();var D=$(H);if(!r.InPreviewMode){if(g()){var G=D.attr("data-mc-keywords");if(G!=null){if(G==""){L(K)}var J=G.split(";");MadCap.Utilities.AsyncForeach(J,function(M,N){r.FindIndexEntry(M,function(O,P){if(P!=null&&P.linkList){K=K.concat(P.linkList)}N()})},function(){L(r.SortLinkList(K))});return}else{var F=D.attr("data-mc-concepts");if(F!=null){r.GetConceptsLinks(F,L);return}}}}var C=D.attr("data-mc-topics");if(C!=null){topicPairs=C.split("||");if(topicPairs==""){L(K)}for(var I=0,E=topicPairs.length;I<E;I++){var B=topicPairs[I].split("|");K[K.length]={Title:B[0],Link:B[1]}}}L(K)};x.Hyperlink_Onclick=function(F){var E=$(this);if(E.hasClass("MCTopicPopup")||E.hasClass("MCPopupThumbnailLink")||E.hasClass("MCHelpControl")||E.hasClass("reply-comment-button")){return}var B=MadCap.Dom.GetAttribute(this,"href");if(MadCap.String.StartsWith(B,"http:")||MadCap.String.StartsWith(B,"https:")){return}var D=MadCap.Dom.GetAttribute(this,"target");if(D!=null){return}if(g()){var C=new MadCap.Utilities.Url(document.location.href);if(MadCap.String.StartsWith(B,"#")){C=new MadCap.Utilities.Url(C.PlainPath+B)}else{C=C.ToFolder().CombinePath(B)}MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"navigate-topic",[C.FullPath],null);F.preventDefault()}};x.ScrollToBookmark=function(D){var B=$("#"+D);if(B.length==0){B=$("[name = '"+D+"']")}if(B.length>0){if(q(B[0])){var C=B.offset().top;$("html, body").animate({scrollTop:C})}}};$(i);$(window).hashchange(A);function i(J){$("input, textarea").placeholder();if(document.location.hash.length>0){var D=new MadCap.Utilities.Url(document.location.hash.substring(1));v(D.ToNoQuery().FullPath)}if(g()||b()){$(".MCWebHelpFramesetLink").hide()}$(document).on("click","a, area",MadCap.TopicHelpers.Hyperlink_Onclick);$(".MCPopupThumbnailPopup").click(MadCap.TopicHelpers.ThumbPopup_Click);$(".MCPopupThumbnailHover").mouseover(MadCap.TopicHelpers.ThumbPopup_Hover);var F=$("a.MCHelpControl").click(MadCap.TopicHelpers.HelpControl_Click);$(".print-button").click(function(L){window.print()});$(".expand-all-button").click(function(M){var L=$(this);if(L.hasClass("expand-all-button")){x.TextEffectControl.ExpandAll("open")}else{if(L.hasClass("collapse-all-button")){x.TextEffectControl.ExpandAll("close")}}u(this)});$(".remove-highlight-button").click(function(L){n()});$(".previous-topic-button").click(function(L){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"navigate-previous")});$(".next-topic-button").click(function(L){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"navigate-next")});if(MadCap.String.Contains(navigator.userAgent,"iphone",false)){window.scrollTo(0,1)}if(MadCap.IsIOS()){var C=$("<div id='ios-wrapper'></div>").appendTo(document.body);var I=C[0];for(var H=document.body.childNodes.length-2;H>=0;H--){var G=document.body.childNodes[H];I.insertBefore(G,I.firstChild)}}s();var K=parent;if(b()){K=parent.parent}var E=$(document.documentElement).attr("data-mc-path-to-help-system");var B=new MadCap.Utilities.Url(document.location.href).CombinePath(E).ToFolder().CombinePath("Data/HelpSystem.xml");r=new MadCap.WebHelp.HelpSystem(null,null,B.FullPath,null,null);r.Load(function(){w();if(r.LiveHelpEnabled){m=new MadCap.WebHelp.FeedbackController(r.LiveHelpServer);m.Init(function(){if(m.FeedbackActive){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"get-csh-id",null,function(L){var M=L!=null?L[0]:null;if(c!=null){m.LogTopic(c,M,function(){var N=$(".feedback-comments-wrapper");if(!b()){if(!m.PulseEnabled){N.removeClass("hidden");p=$("#new-comment-form").attr("data-comment-length-exceeded-message")||"The maximum comment length was exceeded by {n} characters.";m.GetAnonymousEnabled(r.LiveHelpOutputId,function(P){y=P;if(P){$(document.documentElement).addClass("feedback-anonymous-enabled")}});var O=MadCap.Utilities.Store.getItem("LiveHelpUsername");$(".username").val(O);$(".comment-submit").click(l);$(".feedback-comments-wrapper .comments").on("click",".reply-comment-button",j);a()}else{if(m.PulseActive){m.GetPulseStreamID(c,function(Q){N.empty();var R=m.PulseServer+"streams/"+Q+"/activities?frame=stream";var P=$("<iframe name='topiccomments-html5' class='pulse-frame' title='Topic Comments' frameborder='0'></iframe>");P.appendTo(N);P.css("height","1000px");if(!($.browser.msie&&parseInt($.browser.version,10)===7)){P.css("visibility","hidden");P.attr("onload","this.style.visibility='visible';")}P.attr("src",R);N.removeClass("hidden")})}}}})}})}})}})}function A(C){var B=new MadCap.Utilities.Url(document.location.href);if(!MadCap.String.IsNullOrEmpty(B.Fragment)){var D=B.Fragment.substring(1);x.ScrollToBookmark(D)}}function v(B){var C=$("[name='"+B+"']");if(C.length>0){q(C[0])}}function g(){return window.name=="topic"}function b(){return window.name=="MCPopup"}function u(B){var G=$(B);var E=G.attr("data-state1-class");var C=G.attr("data-state2-class");var D=G.attr("data-current-state")||"1";var F=D=="1"?"2":"1";G.attr("data-current-state",F);G.toggleClass(E).toggleClass(C);G.attr("title",G.attr("data-state"+F+"-title"))}function w(){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"get-href",null,function(E){if(E){var C=new MadCap.Utilities.Url(unescape(E[0]));var B=new MadCap.Utilities.Url(C.Fragment.substring(1));var D=C.QueryMap.GetItem("BrowseSequencesPath");r.SetBrowseSequencePath(D,B)}})}function l(E){var B=$(this).closest(".comment-form-wrapper");var D=null;var I=B.children(".username-field").val();var C=B.children(".subject-field").val();var H=B.find(".body-field").val();var F=null;var G=B.parent();if(G.hasClass("comment")){F=G.attr("data-mc-comment-id")}t(I,C,H,F)}function t(G,C,F,E){if(y){MadCap.Utilities.Store.setItem("LiveHelpUsername",G);try{m.AddComment(c,null,G,C,F,E,a)}catch(B){var D=p.replace(/{n}/g,B.Data.ExceedAmount);alert(D)}}else{MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"login-user",null,function(K){var J=K[0];if(J!=null){try{m.AddComment(c,J,G,C,F,E,a)}catch(H){var I=p.replace(/{n}/g,H.Data.ExceedAmount);alert(I)}}})}}function j(C){C.preventDefault();var D=$(this).closest(".comment");if(D.children(".comment-form-wrapper")[0]!=null){return}var B=$("#new-comment-form").clone();B.attr("id",null);B.children(".comment-submit").click(l);D.children(".buttons").after(B);B.hide().slideDown()}function a(){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"get-user-guid",null,function(C){var B=C[0];m.GetTopicComments(c,B,null,function(D){var F=MadCap.Utilities.Xhr.LoadXmlString(D);var E=$(".comments");E.children().not(".mc-template").remove();o(F.documentElement,E)})})}function o(M,J){var L=$(M).children("Comment");var B=$(".comments .comment.mc-template");for(var I=0,E=L.length;I<E;I++){var N=$(L[I]);var H=N.attr("User");var K=N.attr("DateUTC")||N.attr("Date");var F=N.attr("Subject");var D=N.attr("CommentID");var C=N.children("Body").text();var G=B.clone();G.removeClass("mc-template");G.attr("data-mc-comment-id",D);$(".username",G).text(H);$(".timestamp",G).text(K);$(".subject",G).text(F);$(".body",G).text(C);$(J).append(G);o(N.children("Comments")[0],G)}}function n(){for(var B=1;B<=10;B++){$("body").removeHighlight("mc-highlightSearch"+B)}}function s(){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"get-href",null,function(F){if(F){var D=new MadCap.Utilities.Url(unescape(F[0]));var B=D.QueryMap.GetItem("Highlight");if(MadCap.String.IsNullOrEmpty(B)){return}var E=B.split(" ");for(var C=0;C<E.length;C++){$("body").highlight(E[C],"mc-highlightSearch"+(C+1))}}})}function h(E,C,B,D){if(E==""){return}f(document.body,E,C,B,D);if(e&&e.offsetTop>document.documentElement.clientHeight){document.documentElement.scrollTop=e.offsetTop}}function d(E){for(var D=E.childNodes.length-1;D>=1;D--){var B=E.childNodes[D];var C=B.previousSibling;if(B.nodeType==3&&C.nodeType==3){C.nodeValue=C.nodeValue+B.nodeValue;E.removeChild(B)}}for(var D=0;D<E.childNodes.length;D++){d(E.childNodes[D])}}function f(N,E,F,L,K){var Q=null;if(K=="NGram"){Q=new RegExp(E,"g"+(L?"":"i"))}else{var C=E.replace(/([*^$+?.()[\]{}|\\])/g,"\\$1");Q=new RegExp("(^|\\s|[.,;!#$/:?'\"()[\\]{}|=+*_\\-\\\\])"+C+"($|\\s|[.,;!#$/:?'\"()[\\]{}|=+*_\\-\\\\])","g"+(L?"":"i"))}for(var I=N.childNodes.length-1;I>=0;I--){var D=N.childNodes[I];f(D,E,F,L,K);if(D.nodeType!=3||D.parentNode.nodeName=="SCRIPT"){continue}var H=D;var P=H.nodeValue;for(var J=Q.exec(P);J!=null;J=Q.exec(P)){var M=J.index+(K=="NGram"?0:J[1].length);var B=M+E.length;var O=document.createElement("span");O.className="highlight";O.style.fontWeight="bold";O.style.backgroundColor=F.split(",")[0];O.style.color=F.split(",")[1];var G=document.createElement("span");G.className="SearchHighlight"+(z+1);G.appendChild(document.createTextNode(P.substring(M,B)));O.appendChild(G);H.nodeValue=P.substring(0,M);H.parentNode.insertBefore(O,H.nextSibling);H.parentNode.insertBefore(document.createTextNode(P.substring(B,P.length)),O.nextSibling);H=H.nextSibling.nextSibling;P=H.nodeValue;if(e==null||O.offsetTop<e.offsetTop){e=O}q(O)}}}function q(C){var I=false;for(var H=C.parentNode;H.nodeName!="BODY";H=H.parentNode){var L=$(H);if(L.hasClass("MCExpanding")){var E=x.TextEffectControl.FindControl(L[0]);if(E==null){E=new MadCap.TopicHelpers.ExpandingControl(H)}E.Open();I=true}else{if(L.hasClass("MCDropDown")){var E=x.TextEffectControl.FindControl(L[0]);if(E==null){E=new MadCap.TopicHelpers.DropDownControl(H)}E.Open();I=true}else{var F=$(H).attr("data-mc-target-name");if(F!=null){var K=MadCap.Dom.GetElementsByClassName("MCToggler",null,document.body);for(var G=0,B=K.length;G<B;G++){var J=$(K[G]).attr("data-mc-targets").split(";");var M=false;for(var D=0;D<J.length;D++){if(J[D]==F){M=true;break}}if(!M){continue}var E=x.TextEffectControl.FindControl(K[G]);if(E==null){E=new MadCap.TopicHelpers.TogglerControl(K[G])}E.Open();I=true;break}}}}}return I}MadCap.Utilities.CrossFrame.AddMessageHandler(function(G,C,F){var E={Handled:false,FireResponse:true};if(G=="print"){window.focus();window.print();E.Handled=true}else{if(G=="expand-all"){x.TextEffectControl.ExpandAll("open");E.Handled=true}else{if(G=="collapse-all"){x.TextEffectControl.ExpandAll("close");E.Handled=true}else{if(G=="get-topic-id"){F[F.length]=c;E.Handled=true}else{if(G=="get-topic-url"){F[F.length]=document.location.href;E.Handled=true}else{if(G=="remove-highlight"){n();E.Handled=true}else{if(G=="get-bs-path"){var B=new MadCap.Utilities.Url(document.location.href);var D=B.QueryMap.GetItem("BrowseSequencePath");if(D==null){D=MadCap.Dom.Dataset(document.documentElement,"mcBrowseSequencePath")}F[F.length]=D;F[F.length]=B.FullPath;E.Handled=true}else{if(G=="reload-pulse"){MadCap.Utilities.CrossFrame.PostMessageRequest(frames["topiccomments-html5"],"reload");E.Handled=true}else{if(G=="logout-complete"){MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"logout-complete");E.Handled=true}else{if(G=="set-pulse-login-id"){if(m!=null){m.PulseUserGuid=C[0]}MadCap.Utilities.CrossFrame.PostMessageRequest(parent,"set-pulse-login-id",C);E.Handled=true}}}}}}}}}}return E},null);var k=new Array("#ffff66,#000000","#a0ffff,#000000","#99ff99,#000000","#ff9999,#000000","#ff66ff,#000000","#880000,#ffffff","#00aa00,#ffffff","#886800,#ffffff","#004699,#ffffff","#990099,#ffffff");var z=0;var e=null;var r=null;var m=null;var y=false;var c=MadCap.Dom.Dataset(document.documentElement,"mcLiveHelp");var p=null})();