
if(typeof czen=='undefined')czen={};czen.inlinePopups=[];dojo.declare('czen.InlinePopup',null,{constructor:function(props){this.toggler=props.toggler;this.popup=props.popup;if(props.offset){this.offset=props.offset;}else{this.offset={x:-75,y:-25};};var limbo=this.popup.parentNode.removeChild(this.popup);dojo.body().appendChild(limbo);dojo.connect(this.toggler,'onclick',this,this.show);dojo.connect(this.popup,'onclick',this,this.hide);},show:function(evt){var evt=dojo.fixEvent(evt);if(dojo.isIE<=6)czen.hideSelects();dojo.style(this.popup,{left:evt.pageX+this.offset.x+'px',top:evt.pageY+this.offset.y+'px',display:'block'});},hide:function(){if(dojo.isIE<=6)czen.showSelects();this.popup.style.display='none';}});dojo.addOnLoad(function(){if(!window.inlinePopups||!window.inlinePopups.length)return;for(var i=0,j=inlinePopups.length;i<j;i++){czen.inlinePopups.push(new czen.InlinePopup(inlinePopups[i]));}});