Effect.ResizeWindow=Class.create();Object.extend(Object.extend(Effect.ResizeWindow.prototype,Effect.Base.prototype),{initialize:function(j,k,l,m,i){this.window=j;this.window.resizing=true;var n=j.getSize();this.initWidth=parseFloat(n.width);this.initHeight=parseFloat(n.height);var h=j.getLocation();this.initTop=parseFloat(h.top);this.initLeft=parseFloat(h.left);this.width=m!=null?parseFloat(m):this.initWidth;this.height=i!=null?parseFloat(i):this.initHeight;this.top=k!=null?parseFloat(k):this.initTop;this.left=l!=null?parseFloat(l):this.initLeft;this.dx=this.left-this.initLeft;this.dy=this.top-this.initTop;this.dw=this.width-this.initWidth;this.dh=this.height-this.initHeight;this.r2=$(this.window.getId()+"_row2");this.content=$(this.window.getId()+"_content");this.contentOverflow=this.content.getStyle("overflow")||"auto";this.content.setStyle({overflow:"hidden"});if(this.window.options.wiredDrag){this.window.currentDrag=j._createWiredElement();this.window.currentDrag.show();this.window.element.hide()}this.start(arguments[5])},update:function(f){var j=Math.floor(this.initWidth+this.dw*f);var g=Math.floor(this.initHeight+this.dh*f);var h=Math.floor(this.initTop+this.dy*f);var i=Math.floor(this.initLeft+this.dx*f);if(window.ie){if(Math.floor(g)==0){this.r2.hide()}else{if(Math.floor(g)>1){this.r2.show()}}}this.r2.setStyle({height:g});this.window.setSize(j,g);this.window.setLocation(h,i)},finish:function(b){if(this.window.options.wiredDrag){this.window._hideWiredElement();this.window.element.show()}this.window.setSize(this.width,this.height);this.window.setLocation(this.top,this.left);this.r2.setStyle({height:null});this.content.setStyle({overflow:this.contentOverflow});this.window.resizing=false}});Effect.ModalSlideDown=function(d){var f=WindowUtilities.getWindowScroll();var e=d.getStyle("height");d.setStyle({top:-(parseFloat(e)-f.top)+"px"});d.show();return new Effect.Move(d,Object.extend({x:0,y:parseFloat(e)},arguments[1]||{}))};Effect.ModalSlideUp=function(c){var d=c.getStyle("height");return new Effect.Move(c,Object.extend({x:0,y:-parseFloat(d)},arguments[1]||{}))};PopupEffect=Class.create();PopupEffect.prototype={initialize:function(b){this.html=$(b);this.options=Object.extend({className:"popup_effect",duration:0.4},arguments[1]||{})},show:function(element,options){var position=Position.cumulativeOffset(this.html);var size=this.html.getDimensions();var bounds=element.win.getBounds();this.window=element.win;if(!this.div){this.div=document.createElement("div");this.div.className=this.options.className;this.div.style.height=size.height+"px";this.div.style.width=size.width+"px";this.div.style.top=position[1]+"px";this.div.style.left=position[0]+"px";this.div.style.position="absolute";document.body.appendChild($(this.div));
/*@if(@_jscript_version >= 5)
window.ie53790a=1
	try { if (this.options.fromOpacity)
			this.div.setStyle({opacity: this.options.fromOpacity})
	} catch(e) {}
/*@end @*/
}if(!window.ie53790a&&this.options.fromOpacity){this.div.setStyle({opacity:this.options.fromOpacity})
/*@if(@_jscript_version >= 5)
window.ie53790=1
	try { this.div.show();
	} catch(e) {}
/*@end @*/
}if(!window.ie53790){this.div.show()}var style="top:"+bounds.top+";left:"+bounds.left+";width:"+bounds.width+";height:"+bounds.height;if(this.options.toOpacity){style+=";opacity:"+this.options.toOpacity}new Effect.Morph(this.div,{style:style,duration:this.options.duration,afterFinish:this._showWindow.bind(this)})},hide:function(k,g){var h=Position.cumulativeOffset(this.html);var l=this.html.getDimensions();this.window.visible=true;var i=this.window.getBounds();this.window.visible=false;this.window.element.hide();this.div.style.height=i.height;this.div.style.width=i.width;this.div.style.top=i.top;this.div.style.left=i.left;if(this.options.toOpacity){this.div.setStyle({opacity:this.options.toOpacity})}this.div.show();var j="top:"+h[1]+"px;left:"+h[0]+"px;width:"+l.width+"px;height:"+l.height+"px";if(this.options.fromOpacity){j+=";opacity:"+this.options.fromOpacity}new Effect.Morph(this.div,{style:j,duration:this.options.duration,afterFinish:this._hideDiv.bind(this)})},_showWindow:function(){this.div.hide();this.window.element.show()},_hideDiv:function(){this.div.hide()}};
