
Progress=new YAHOO.widget.Panel("progressBox",{width:"250px",fixedcenter:true,close:false,draggable:false,zindex:5000,modal:true,visible:false});Progress.fn=function()
{return{MessageText:'Please Wait.',DetailMessageText:'Loading...',_ContentTop:'<TABLE class="progress_MsgTable" border="0" cellpadding="1" cellspacing="0"><TR><TD rowSpan="2" class="progress_MsgTableCell"><IMG height="32" class="progress_MsgImage" src="/NRTProducts/include/images/progress.gif" width="32" border="0" /></TD><TD class="progress_MsgTableCell"><LABEL class="progress_MsgMain">',_ContentMiddle:'</LABEL></TD></TR><TR><TD class="progress_MsgTableCell"><LABEL class="progress_MsgDetail">',_ContentBottom:'</LABEL></TD></TR></TABLE>',_hasSetLeft:false,_setLeft:0,_left:0,_top:0,_width:250,_height:80,show:function(eType,bCustom,sCustomMsg)
{var tmpCentered=this._bCentered;try
{if(arguments.length>0)
{this.DetailMessageText=this._getDetailMessageText(eType,bCustom,sCustomMsg);}
Progress.setBody(this._ContentTop+this.MessageText+this._ContentMiddle+this.DetailMessageText+this._ContentBottom);Progress.render(document.body);Progress.cfg.setProperty("width",this._width+"px");Progress.cfg.setProperty("height",this._height+"px");if(this._hasSetLeft)
{this._top=parseInt((YAHOO.util.Dom.getViewportHeight()/2),10)+YAHOO.util.Dom.getDocumentScrollTop()-parseInt((this._height/2),10);if(this._hasSetLeft)
{this._left=this._setLeft;}else{this._left=parseInt((YAHOO.util.Dom.getViewportWidth()/2),10)+YAHOO.util.Dom.getDocumentScrollLeft()-parseInt((this._width/2),10);}
Progress.cfg.setProperty("fixedcenter",false);Progress.cfg.setProperty("x",this._left);Progress.cfg.setProperty("y",this._top);}else{Progress.cfg.setProperty("x",null);Progress.cfg.setProperty("y",null);Progress.cfg.setProperty("fixedcenter",true);}
Progress.show();}
catch(err){_oErrorHandler.Error('Progress.fn.show',_oErrorHandler.ERRORTYPE_JS,err);}},hide:function()
{try
{Progress.hide();return;}
catch(err){_oErrorHandler.Error('Progress.fn.hide',_oErrorHandler.ERRORTYPE_JS,err);}},_getDetailMessageText:function(eType,bCustom,sCustomMsg)
{var sTmpMessage='';try
{if(bCustom)
{sTmpMessage=sCustomMsg;}else{switch(eType)
{case'plotmap':sTmpMessage=' Loading properties in map';break;case'map':sTmpMessage=' Loading map results';break;case'list':sTmpMessage=' Loading list results';break;case'sort':sTmpMessage=' Re-sorting by<br>'+sCustomMsg;break;case'page':sTmpMessage=' Loading page '+sCustomMsg;break;case'resize':sTmpMessage=' Resizing to<br>'+sCustomMsg+' listings per page';break;case'group':sTmpMessage=' Loading group<br>'+sCustomMsg;break;case'search':sTmpMessage=' Searching';break;default:sTmpMessage=' Loading';}}
return sTmpMessage;}
catch(err)
{throw err;}}};}();
