Telligent_Modal=new Object();Telligent_Modal._variableName='Telligent_Modal';Telligent_Modal.LoadingHtmlUrl=null;Telligent_Modal.WindowCssClasses=new Array();Telligent_Modal.WindowTitleCssClasses=new Array();Telligent_Modal.WindowCloseCssClasses=new Array();Telligent_Modal.WindowContentCssClasses=new Array();Telligent_Modal.WindowMaskCssClasses=new Array();Telligent_Modal.WindowFooterCssClasses=new Array();Telligent_Modal.WindowResizeCssClasses=new Array();Telligent_Modal.ZIndex=100;Telligent_Modal._isShown=false;Telligent_Modal._initialized=false;Telligent_Modal._modal=null;Telligent_Modal._modalTitle=null;Telligent_Modal._modalClose=null;Telligent_Modal._modalAnimationMask=null;Telligent_Modal._modalMask=null;Telligent_Modal._modalIframe=null;Telligent_Modal._modalResize=null;Telligent_Modal._modalFooter=null;Telligent_Modal._modalContent=null;Telligent_Modal._animationHandle=null;Telligent_Modal._isOpening=false;Telligent_Modal._checkForScrollResizeHandle=null;Telligent_Modal._lastModalInfo=null;Telligent_Modal._lastWindowInfo=null;Telligent_Modal._isDragging=false;Telligent_Modal._moveModalInfo=null;Telligent_Modal._resizeModalInfo=null;Telligent_Modal._isResizing=false;Telligent_Modal.Configure=function(loadingHtmlUrl,windowCssClasses,windowTitleCssClasses,windowCloseCssClasses,windowContentCssClasses,windowFooterCssClasses,windowResizeCssClasses,windowMaskCssClasses,zIndex) {this.LoadingHtmlUrl=loadingHtmlUrl;this.WindowCssClasses=windowCssClasses;this.WindowTitleCssClasses=windowTitleCssClasses;this.WindowCloseCssClasses=windowCloseCssClasses;this.WindowContentCssClasses=windowContentCssClasses;this.WindowMaskCssClasses=windowMaskCssClasses;this.WindowFooterCssClasses=windowFooterCssClasses;this.WindowResizeCssClasses=windowResizeCssClasses;this.ZIndex=zIndex;} Telligent_Modal.IsShown=function() {return this._isShown;} Telligent_Modal.Open=function(url,width,height,onCloseFunction,x,y,ignoreCloseAndAnimation) {if(!ignoreCloseAndAnimation&&this._isShown) this.Close();else if(this._hiddenSelects) Telligent_Common.ShowSelectBoxes(this._modalAnimationMask) if(!this._initialized) this._initialize();try {this._modalTitle.childNodes[1].innerHTML=this._modalIframe.contentWindow.document.title;} catch(err) {} if(!ignoreCloseAndAnimation) this._modalIframe.src=url;try {this._modalIframe.contentWindow.opener=window;} catch(err) {} this._modalAnimationMask.style.display='none';this._modalMask.style.display='none';this._lastWindowInfo=Telligent_Common.GetWindowInfo();this._modalAnimationMask.style.display='block';if(width>this._lastWindowInfo.Width) width=this._lastWindowInfo.Width;this._modalAnimationMask.style.position='absolute';this._modalAnimationMask.style.zIndex=this.ZIndex;this._modalAnimationMask.style.display='block';this._modalAnimationMask.style.visibility='hidden';this._modalAnimationMask.style.overflow='hidden';this._modalAnimationMask.style.width=width+'px';this._modalContent.style.width=width+'px';this._modal.style.position='absolute';this._modal.style.display='block';this._modal.style.visibility='hidden';this._modal.style.left='0px';this._modal.style.top='0px';this._modalMask.style.position='absolute';this._modalMask.style.display='block';this._modalMask.style.zIndex=this.ZIndex;this._modalMask.style.visibility='visible';var modalContentOffset=Telligent_Common.GetStyleOffset(this._modalContent);var offset=(this._modal.offsetHeight-this._modalContent.offsetHeight)-modalContentOffset.Height;if(height+offset>this._lastWindowInfo.Height) height=this._lastWindowInfo.Height-offset;if(widththis._lastWindowInfo.Width+this._lastWindowInfo.ScrollX) x=this._lastWindowInfo.Width+this._lastWindowInfo.ScrollX-panelWidth;if(xthis._lastWindowInfo.Height+this._lastWindowInfo.ScrollY) y=this._lastWindowInfo.Height+this._lastWindowInfo.ScrollY-panelHeight;if(y0) {mm.className=this.WindowMaskCssClasses[0];for(var i=1;i0) {m.className=this.WindowCssClasses[0];for(var i=1;i0) {this._modalTitle.className=this.WindowTitleCssClasses[0];for(var i=1;i0) {mc.className=this.WindowCloseCssClasses[0];for(var i=1;i0) {this._modalContent.className=this.WindowContentCssClasses[0];for(var i=1;i0) {mf.className=this.WindowFooterCssClasses[0];for(var i=1;i0) {mr.className=this.WindowResizeCssClasses[0];for(var i=1;i0&&currValue>targetValue)||Math.abs(step)<1) {this._modal.style.top=targetValue+'px';this._modal.style.position='static';this._modalAnimationMask.style.overflow='visible';this._animationHandle=null;if(!this._isResizing&&!this._isDragging) this._modalIframe.style.display='block';this._isOpening=false;this._lastWindowInfo=Telligent_Common.GetWindowInfo();this._checkForScrollResizeHandle=window.setTimeout(new Function('window.'+this._variableName+'._checkForScrollResize();'),999);} else {this._modal.style.top=nextValue+'px';nextValue=nextValue+step;if(step>0&&nextValue>targetValue) nextValue=targetValue;else if(step<0&&nextValue