(function(){var t;page.commandBindings={prev:l,next:l};page.onLoad=function(){var n=this.url.get("helpUri");u8.services.help.getHelp({uri:n},function(n,r){var a=r.topics,o=a&&a[0],l=$(".utml");for(var c=0;c<a.length;c++){a[c].absoluteUrl=a[c].url&&page.resolveUrl("~/"+a[c].url)}t={topic:o||{},links:a};l.utml({data:t,itemOptions:{parent:page}},function(){$("#links").bind("click",e);if(o&&o.absoluteUrl){$("<iframe />").attr({id:"content-frame",src:o.absoluteUrl,frameborder:0}).css({width:"100%",height:"100%"}).bind("load",i).appendTo("#content")}l.show()})})};function e(t){var e=$(t.target),i=e.data("href");if(i){a().location.href=i;n(e.text())}}function n(t){if(t){$("#title").html(t)}}function i(t){var e=a();n(e.document.title);$(e).bind("unload.help",r)}function r(){var t=a();o(t.document.title,t.location.href)}function a(){var t=$("#content-frame")[0];return t.contentWindow||t.contentDocument.defaultView}function o(t,e){if(!t||!e){return}var n=$("#links"),i=n.children("a").filter(function(){return $(this).attr("href").indexOf(e)>=0});if(!i.length){$("<a />").attr({href:"javascript:void(0);",text:t,"data-href":e}).data("help",{title:t,url:e}).appendTo(n)}}function l(t,e,n){var i=a();if(e=="next"){i.history.forward()}else{i.history.back()}}})();