zk.bmk=function(){var a="",o="";function r(){var n,t,n=(n=location.hash,(n=0<=(t=n.indexOf("#"))?decodeURIComponent(n.substring(t+1)):"")||o);n!=a&&(a=n,zAu.send(new zk.Event(null,"onBookmarkChange",n),1),zk.bmk.onURLChange())}function u(n){var t=n.lastIndexOf(";");return n=0<=(t=(n=0<=(t=(n=0<=t?n.substring(0,t):n).lastIndexOf("#"))?n.substring(0,t):n).lastIndexOf("?"))?n.substring(0,t):n}function e(n,t){return n=encodeURI(n),!t&&zk.webkit||!n?n:"#"+n}function i(n,t){a!=n&&(a=n,t?location.replace(location.href.replace(/#.*/,"")+e(n,!0)):location.hash=e(n),zk.bmk.onURLChange())}var s=function(){s=null,r(),jq(window).on("hashchange",r),setInterval(r,250)};return zk._apac(s),{checkBookmark:r,bookmark:function(n,t){s?a=o=n:(zk.bmk.bookmark=i)(n,t)},onIframeLoaded:zk.ie&&zk.ie<11?function(n){var t=n.indexOf("?"),t=0<=t?n.substring(t+1):"";location.hash=t?"#"+t:"",r()}:zk.$void,onURLChange:function(){try{var n=window.frameElement;if(!parent||parent==window||!n)return;var t,a=parent.location,o=location,r=a.protocol!=o.protocol||a.host!=o.host||a.port!=o.port?o.href:o.pathname,e=r.lastIndexOf(";"),i=r.lastIndexOf("?");0<=e&&(i<0||e<i)&&(t=r.substring(0,e),r=i<0?t:t+r.substring(i)),o.hash&&"#"!=o.hash&&(r+=o.hash);var s=jq(n);if(s.attr("z_xsrc")!=n.src){var c=n.src,h=location.pathname;if(s.attr("z_xsrc",c),c=u(c),h=u(h),c.endsWith(h)||h.endsWith(c))return void s.attr("z_xurl",r)}parent.onIframeURLChange&&s.attr("z_xurl")!=r&&(parent.onIframeURLChange(n.id,r),s.attr("z_xurl",r))}catch(n){zk.debugLog(n.message||n)}}}}();