/* Copyright © 2015 Adobe Systems Incorporated. All rights reserved. Generated by Adobe RoboHelp 2015 */ (function(){var n,e,t;e=window.rh,t=e._,n=e.consts,t.getRootUrl=function(){var n;return n=null,function(){var e;return null==n&&(e=window.gScreenRelPathMap[window.gFinalCommonRootRelPath],n=""+t.getHostFolder()+t.fixRelativeUrl(null!=e?e.defaultURL:void 0)),n}}(),t.redirectToLayout=function(){var e,o,r;return o=t.getHostFolder(),r=window._getRelativeFileName(o,document.location.href),e=t.urlParams(t.extractParamString(r)),e[n("HASH_KEY_TOPIC")]=t.stripParam(r),e[n("HASH_KEY_UIMODE")]=null,document.location.replace(""+t.getRootUrl()+"#"+t.mapToEncodedString(e))}}).call(this),function(){var n,e,t,o,r,_,i,E;i=window.rh,E=i._,n=i.$,t=i.consts,r=i.model,r.publish(t("KEY_SHARED_INPUT"),[t("KEY_PROJECT_TAG_COMBINATIONS"),t("KEY_TAG_EXPRESSION"),{key:t("EVT_SCROLL_TO_TOP"),nested:!1},t("EVT_PRINT_TOPIC"),t("KEY_MERGED_PROJECT_MAP"),t("KEY_PROJECT_LIST"),t("KEY_SHOW_TAGS"),t("KEY_IFRAME_EVENTS"),t("EVT_RELOAD_TOPIC")]),r.publish(t("KEY_SHARED_OUTPUT"),[t("KEY_TOPIC_URL"),t("KEY_TOPIC_ID"),t("KEY_TOPIC_TITLE"),t("KEY_TOPIC_BRSMAP"),t("EVT_NAVIGATE_TO_URL"),t("EVT_CLICK_INSIDE_IFRAME"),t("EVT_SCROLL_INSIDE_IFRAME"),t("EVT_INSIDE_IFRAME_DOM_CONTENTLOADED"),t("KEY_TOPIC_HEIGHT")]),i.iframe.init(),e=function(){function n(){}var e,o;return e=-1,o=E.throttle(function(n){var e,o;return e=document.body,o={scrollTop:e.scrollTop,scrollHeight:e.scrollHeight,dir:n},r.publish(t("EVT_SCROLL_INSIDE_IFRAME"),o)},200),n.prototype.handle_click=function(n){return n.defaultPrevented?void 0:(r.publish(t("EVT_CLICK_INSIDE_IFRAME"),null),E.hookClick(n))},n.prototype.handle_scroll=function(){var n,t;return n=document.body.scrollTop,t=n>e?"down":"up",e=n,o(t)},n}(),o=new e,_={},r.subscribe(t("EVT_WIDGET_LOADED"),function(){return r.subscribe(t("KEY_IFRAME_EVENTS"),function(n){return null==n&&(n={}),E.each(["click","scroll"],function(e){return n[e]?(E.addEventListener(document,e,o["handle_"+e]),_[e]=!0):_[e]?(E.removeEventListener(document,e,o["handle_"+e]),_[e]=!1):void 0})}),E.delay(function(){return r.publish(t("KEY_TOPIC_HEIGHT"),n.pageHeight())},100)}),r.subscribe(t("EVT_RELOAD_TOPIC"),function(){return document.location.reload()}),E.addEventListener(document,"DOMContentLoaded",function(){return r.publish(t("EVT_INSIDE_IFRAME_DOM_CONTENTLOADED"),null)}),E.addEventListener(window,"resize",function(){var e;return e=!1,E.debounce(function(){var o;return e?e=!1:(o=n.pageHeight(),o!==r.get(t("KEY_TOPIC_HEIGHT"))?(e=!0,r.publish(t("KEY_TOPIC_HEIGHT"),n.pageHeight())):void 0)},250)}())}.call(this),function(){var n,e;e=window.rh,n=e.consts,e.model.subscribe(n("EVT_SCROLL_TO_TOP"),function(){return window.scrollTo(0,0)}),e.model.subscribe(n("EVT_PRINT_TOPIC"),function(){return window.focus(),window.print()})}.call(this);