function pDAFUIExtClass(){this.m_nMinWaitingTime=700;this.m_nImmediateWaitingTime=200;this.m_nModalDialogHeight=250;this.m_nModalDialogWidth=350;this.m_bProgress=!1}
pDAFUIExtClass.prototype={startProgress:function(b){if(b&&""!=b)this.m_bProgress=!0,window.setTimeout(function(){pDAFUIExt._startProgressInternal(b)},this.m_nMinWaitingTime)},startProgressNow:function(b){if(b&&""!=b)this.m_bProgress=!0,window.setTimeout(function(){pDAFUIExt._startProgressInternal(b)},this.m_nImmediateWaitingTime)},modalImagePopup:function(b,d,a,c){if(b&&""!=b){a=this.limitExtentToScreen(a,c);c=document.createElement("div");if(b=jphloc.getPreloadedImage(b)){var e=this.limitExtentToScreen(b.width,
b.height);b.setAttribute("width",e.width);b.setAttribute("height",e.height);c.appendChild(b)}$.modal(c,{minHeight:a.height,minWidth:a.width,autoResize:!0,autoPosition:!0,closeHTML:'<a class="modalCloseImg simplemodal-close" title="'+d+'"/>'})}},modalPopup:function(b,d,a,c){if(b&&""!=b)a=this.limitExtentToScreen(a,c),c=document.createElement("div"),c.innerHTML=b,$.modal(c,{minHeight:a.height,minWidth:a.width,autoResize:!0,autoPosition:!0,closeHTML:'<a class="modalCloseImg simplemodal-close" title="'+
d+'"/>'})},limitExtentToScreen:function(b,d){var a={width:b,height:d},c=this.getAvailableExtent(!0),e=c.height/a.height,c=c.width/a.width;if(1>e||1>c)e<c?(a.width*=e,a.height*=e):(a.width*=c,a.height*=c);return a},getAvailableExtent:function(b){var d=jphloc.getPageWidth(),a=jphloc.getPageHeight();b&&(d-=55,a-=55);return{width:d,height:a}},appendTextWithBR:function(b,d){if(d&&""!=d){var a=d.split("\n"),c=0,e;for(e in a)0<c&&b.appendChild(document.createElement("br")),b.appendChild(document.createTextNode(a[e])),
c++}},_startProgressInternal:function(b){if(this.m_bProgress){var d=document.createElement("div");d.setAttribute("id","modal_progress");var a=document.createElement("table"),c=document.createElement("tbody");a.appendChild(c);d.appendChild(a);a=document.createElement("tr");c.appendChild(a);c=document.createElement("td");a.appendChild(c);var e=document.createElement("td");a.appendChild(e);jphloc.addClass(c,"pdaf_progress_indicator");jphloc.addClass(e,"pdaf_progress_info");this.appendTextWithBR(e,b);
$.modal(d,{minHeight:30,maxHeight:this.m_nModalDialogHeight,minWidth:200,maxWidth:this.m_nModalDialogWidth,closeHTML:""})}},stopProgress:function(){this.m_bProgress&&$.modal.close();this.m_bProgress=!1}};var pDAFUIExt=window.pDAFUIExt=new pDAFUIExtClass;

