(function(){function k(){var a=jq(this.mask),b=this.stackup;b&&a.is(":visible")&&(b=b.style,b.left=a.css("left"),b.top=a.css("top"),b.width=a.css("width"),b.height=a.css("height"))}var m,g;zk.eff={shallStackup:function(){return g},_skuOpts:function(a){return zk.$default(a,m||(m={stackup:zk.eff.shallStackup()}))},_onVParent:function(a,b){b&&(sdw=b.shadow)&&(stackup=sdw.stackup)&&(a=jq(stackup),a.parent()[0]!=document.body&&a.insertBefore(sdw.node))}};zk.eff.Shadow=zk.$extends(zk.Object,{$init:function(a,
b){this.wgt=zk.Widget.$(a.id);this.opts=zk.eff._skuOpts(b);this.node=a;zWatch.listen({onVParent:[this.node,zk.eff._onVParent]})},destroy:function(){jq(this.stackup).remove();jq(this.node).removeClass(this.wgt.getZclass()+"-shadow");zWatch.unlisten({onVParent:[this.node,zk.eff._onVParent]});this.wgt=this.node=this.stackup=null},hide:function(){jq(this.stackup).hide();jq(this.node).removeClass(this.wgt.getZclass()+"-shadow")},sync:function(){var a=this.node,b=jq(a);if(!a||!b.zk.isVisible(!0))return this.opts.stackup&&
a&&!this.stackup&&(this.stackup=jq.newStackup(a,a.id+"-sdwstk",a)),this.hide(),!1;b.addClass(this.wgt.getZclass()+"-shadow");var d=a.offsetLeft,c=a.offsetTop,f=a.offsetWidth,h=a.offsetHeight,e=this.stackup;this.opts.stackup&&(e||(e=this.stackup=jq.newStackup(a,a.id+"-sdwstk",a)),a=e.style,a.left=jq.px(d),a.top=jq.px(c),a.width=jq.px0(f),a.height=jq.px0(h),a.zIndex=zk.parseInt(b.css("zIndex")),a.display="block");return!0},getBottomElement:function(){return this.stackup}});zk.eff.FullMask=zk.$extends(zk.Object,
{$init:function(a){a=zk.eff._skuOpts(a);var b=this.mask=jq(a.mask||[],zk)[0];if(this.mask)a.anchor&&a.anchor.parentNode.insertBefore(b,a.anchor),a.id&&(b.id=a.id),null!=a.zIndex&&(b.style.zIndex=a.zIndex),0==a.visible&&(b.style.display="none");else{b=a.id||"z_mask";var d='<div id="'+b+'" class="z-modal-mask"';if(null!=a.zIndex||0==a.visible)d+=' style="',null!=a.zIndex&&(d+="z-index:"+a.zIndex),0==a.visible&&(d+=";display:none"),d+='"';d+="></div>";a.anchor?jq(a.anchor,zk).before(d):jq(document.body).append(d);
b=this.mask=jq(b,zk)[0]}a.stackup&&(this.stackup=jq.newStackup(b,b.id+"-mkstk"));k.call(this);var c;jq(b).click(jq.Event.stop);jq(window).resize(c=this.proxy(k)).scroll(c)},destroy:function(){var a;jq(this.mask).unbind("click",jq.Event.stop).remove();jq(window).unbind("resize",a=this.proxy(k)).unbind("scroll",a);jq(this.stackup).remove();this.mask=this.stackup=null},hide:function(){this.mask.style.display="none";this.stackup&&(this.stackup.style.display="none")},sync:function(a){if(zk(a).isVisible(!0)){if(this.mask.nextSibling!=
a){var b=a.parentNode;b.insertBefore(this.mask,a);this.stackup&&b.insertBefore(this.stackup,this.mask)}b=this.mask.style;b.display="block";b.zIndex=a.style.zIndex;k.call(this,!0);this.stackup&&(b=this.stackup.style,b.display="block",b.zIndex=a.style.zIndex)}else this.hide()}});zk.eff.Mask=zk.$extends(zk.Object,{$init:function(a){a=a||{};var b=zk(a.anchor);this._opts=a;b.jq.length&&b.isRealVisible(!0)&&(this._draw(a,b),this.sync())},_draw:function(a,b){var d=a.id||"z_applymask";if(jq(d,zk)[0])return this;
var c=a.message||(window.msgzk?msgzk.LOADING:"Loading")+"...",f=document.createElement("div");document.body.appendChild(f);var h=a.offset||b.revisedOffset(),e=a.width||b.offsetWidth();b=a.height||b.offsetHeight();jq(f).replaceWith('<div id="'+d+'" style="display:none"><div class="z-apply-mask" style="display:block;top:'+h[1]+"px;left:"+h[0]+"px;width:"+e+"px;height:"+b+'px;"></div><div id="'+d+'-z_loading" class="z-apply-loading"><div class="z-apply-loading-indicator"><span class="z-apply-loading-icon"></span> '+
c+"</div></div></div>");this.mask=jq(d,zk)[0];if(this.wgt=zk.Widget.$(a.anchor))zWatch.listen({onHide:[this.wgt,this.onHide],onSize:[this.wgt,this.onSize]}),this.wgt.__mask=this},hide:function(){this.mask.style.display="none"},onHide:function(){this.__mask.hide()},sync:function(){var a,b=this._opts,d=b.anchor,c=zk(d);d||(d=b.id,b.anchor=d=jq("#"+d.substring(0,d.indexOf("-")))[0],c=zk(d),this._draw(b,c));if(c.isVisible(!0)){var f=this.mask.firstChild.style;d=b.offset||c.revisedOffset();var h=b.width||
c.offsetWidth();b=b.height||c.offsetHeight();f.top=jq.px(d[1]);f.left=jq.px(d[0]);f.width=jq.px(h);f.height=jq.px(b);var e=document.body,g=e.parentNode,k=c.jq;c="auto";for(var l=k.offsetParent();l[0]!=e&&l[0]!=g;l=l.offsetParent())(a=l.css("z-index"))&&"auto"!=a&&(c=zk.parseInt(a),k=l[0]);for(e=k[0];e&&e.style;e=e.parentNode)if("HTML"==e.tagName&&zk.webkit&&(e.style.zIndex="auto"),(a=e.style.zIndex||jq(e).css("z-index"))&&"auto"!=a&&(a=zk.parseInt(a),"auto"==c||a>c))c=a;"auto"!=c&&(f.zIndex=c,this.mask.lastChild.style.zIndex=
c);this.mask.style.display="block";if(a=jq(this.mask.id+"-z_loading",zk)[0])a.offsetHeight>b&&(a.style.height=jq.px0(zk(a).revisedHeight(b))),a.offsetWidth>h&&(a.style.width=jq.px0(zk(a).revisedWidth(h))),a.style.top=jq.px0(d[1]+(b-a.offsetHeight)/2),a.style.left=jq.px0(d[0]+(h-a.offsetWidth)/2);this.mask.style.visibility=""}else this.hide()},onSize:function(){this.__mask.sync()},destroy:function(){jq(this.mask).remove();this.wgt&&(zWatch.unlisten({onHide:[this.wgt,this.onHide],onSize:[this.wgt,this.onSize]}),
delete this.wgt.__mask);this.mask=this.wgt=null}});zk.eff.Actions={slideDown:function(a,b){zk(a).slideDown(this,b)},slideUp:function(a,b){zk(a).slideUp(this,b)},slideIn:function(a,b){zk(a).slideIn(this,b)},slideOut:function(a,b){zk(a).slideOut(this,b)}};jq(function(){function a(){b=!1;++d;setTimeout(function(){--d||zk._wgtutl.autohide()},100)}var b,d=0,c;g=zk.useStackup;"auto"==g||(c="auto/gecko"==g)?zk.gecko&&c?g=!1:(c=zk.webkit||zk.opera,g=!c||zk.ie):null==g&&(g=zk.ie);var f=function(b){"onSize"!=
b&&"onMove"!=b&&"onShow"!=b&&"onHide"!=b&&"onResponse"!=b||a()};zk.override(zWatch,c={},{fire:function(a){c.fire.apply(this,arguments);f(a)},fireDown:function(a){c.fireDown.apply(this,arguments);f(a)}});zWatch.listen({onFloatUp:["",function(a){var c=a.origin;++d;setTimeout(function(){--d||(c&&(c=c.getTopWidget()),c!=b&&(b=c,zk._wgtutl.autohide()))},120)}]})})})();
