!function(){var i;zk.css3||(i={left:4,right:4,top:3,bottom:3},zk.eff.Shadow=zk.$extends(zk.Object,{$init:function(t,s){s=this.opts=zk.eff._skuOpts(zk.$default(s,i));s=(this.node=t).id+"-sdw";jq(t).before('<div id="'+s+'" class="z-shadow"><div class="z-shadow-tl"><div class="z-shadow-tr"></div></div><div class="z-shadow-cl"><div class="z-shadow-cr"><div class="z-shadow-cm">&#160;</div></div></div><div class="z-shadow-bl"><div class="z-shadow-br"></div></div></div>'),this.shadow=jq(s,zk)[0]},destroy:function(){jq(this.shadow).remove(),jq(this.stackup).remove(),this.node=this.shadow=this.stackup=null},hide:function(){jq(this.shadow).hide(),jq(this.stackup).hide()},sync:function(){var t=this.node,s=jq(t),i=this.shadow;if(!t||!s.zk.isVisible(!0))return this.hide(),!1;for(var e=i;;)if(!(e=e.nextSibling)||e.tagName){e!=t&&t.parentNode.insertBefore(i,t);break}var d=this.opts,h=t.offsetLeft,o=t.offsetTop,a=t.offsetWidth,f=t.offsetHeight,n=Math.max(0,h+a+d.right>jq.innerWidth()?a-d.left:a-d.left+d.right),c=Math.max(0,f-d.top+d.bottom),l=i.style;l.left=jq.px(h+d.left),l.top=jq.px(o+d.top),l.width=jq.px0(n),l.zIndex=zk.parseInt(s.css("zIndex")),l.display="block";s=i.childNodes;s[1].style.height=jq.px0(c-s[0].offsetHeight-s[2].offsetHeight);s=this.stackup;return d.stackup&&((l=(s=s||(this.stackup=jq.newStackup(t,t.id+"-sdwstk",i))).style).left=jq.px(h),l.top=jq.px(o),l.width=jq.px0(a),l.height=jq.px0(f),l.zIndex=i.style.zIndex,l.display="block"),!0},getBottomElement:function(){return this.stackup||this.shadow}}))}();