(function(){if(!zk.css3){var g={left:4,right:4,top:3,bottom:3};zk.eff.Shadow=zk.$extends(zk.Object,{$init:function(a,b){this.opts=zk.eff._skuOpts(zk.$default(b,g));this.node=a;b=a.id+"-sdw";jq(a).before('<div id="'+b+'" 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(b,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 a=this.node,b=jq(a),e=this.shadow;if(!a||!b.zk.isVisible(!0))return this.hide(),!1;for(var c=e;;)if(!(c=c.nextSibling)||c.tagName){c!=a&&a.parentNode.insertBefore(e,a);break}c=this.opts;var h=a.offsetLeft,k=a.offsetTop,f=a.offsetWidth,l=a.offsetHeight,g=Math.max(0,h+f+c.right>jq.innerWidth()?f-c.left:f-c.left+c.right),m=Math.max(0,l-c.top+c.bottom),
d=e.style;d.left=jq.px(h+c.left);d.top=jq.px(k+c.top);d.width=jq.px0(g);d.zIndex=zk.parseInt(b.css("zIndex"));d.display="block";b=e.childNodes;b[1].style.height=jq.px0(m-b[0].offsetHeight-b[2].offsetHeight);b=this.stackup;c.stackup&&(b||(b=this.stackup=jq.newStackup(a,a.id+"-sdwstk",e)),d=b.style,d.left=jq.px(h),d.top=jq.px(k),d.width=jq.px0(f),d.height=jq.px0(l),d.zIndex=e.style.zIndex,d.display="block");return!0},getBottomElement:function(){return this.stackup||this.shadow}})}})();
