!function(){function n(){zk.skipBfUnload=!1}var i={},r={};function e(){this.onselectstart=t}function t(e){return e=e||window.event,zk(e.srcElement).isInput()}function o(){this.onselectstart=null}zk.override(jq.fn,r,{replaceWith:function(e){var t,n;try{if("string"==typeof e&&(n=this[0])&&!jq.nodeName(n,"td","th","table","tr","caption","tbody","thead","tfoot","colgroup","col")&&!function(e){if(e)for(var t=0,n=e.length;0<=(t=e.indexOf("</",t))&&t+8<n;)if("script"==e.substring(t+=2,t+6).toLowerCase())return 1}(e)){var i=zjq._beforeOuter(n);return jq.cleanData(n.getElementsByTagName("*")),jq.cleanData([n]),n.innerHTML="",n.outerHTML=e,t=!0,zjq._afterOuter(i),this}}catch(e){zk.debugLog(e.message||e)}return t?this:r.replaceWith.apply(this,arguments)}}),zk.override(zjq,i,{_fixCSS:zk.ie9_?function(e){var t=e.className,n=e.style.display;e.className="",e.style.display="none",e.offsetHeight,e.className=t,e.style.display=n}:function(e){var t=e.style.zoom;e.style.zoom=1,i._fixCSS(e),setTimeout(function(){try{e.style.zoom=t}catch(e){zk.debugLog(e.message||e)}})}}),zk.copy(zjq,{src0:"javascript:'';",fixInput:function(e){try{var t,n=zk(e);n.isInput()&&(t=n.getSelectionRange(),n.setSelectionRange(t[0],t[1]))}catch(e){zk.debugLog(e.message||e)}},_fixIframe:function(e){try{if(jq.nodeName(e,"iframe"))zk(e).redoSrc();else for(var t=e.getElementsByTagName("iframe"),n=t.length;n--;)zk(t[n]).redoSrc()}catch(e){zk.debugLog(e.message||e)}},_fixClick:function(e){if(zk.confirmClose)for(var t=e.target;t;t=t.parentNode)if(jq.nodeName(t,"a","area"))return void(0<=t.href.indexOf("javascript:")&&(zk.skipBfUnload=!0,setTimeout(n,0)))},_beforeOuter:zk.$void,_afterOuter:zk.$void}),zk.copy(zjq.prototype,{disableSelection:function(){return this.jq.each(e)},enableSelection:function(){return this.jq.each(o)},cellIndex:function(){var e=this.jq[0];if(e)for(var t=e.parentNode?e.parentNode.cells:[],n=0,i=t.length;n<i;n++)if(t[n]==e)return n;return 0}}),zk.override(jq.event,zjq._evt={},{fix:function(e){return(e=zjq._evt.fix.apply(this,arguments)).which||0!==e.button||(e.which=1),e}}),zk.ie9&&(zjq.minWidth=function(e){return zk(e).offsetWidth()+1})}();