DHTML_modalMessage=function()
{var url,
_homm,
_dtpd,
_divc,
iframe,
lCss,
width,
height,
_exbofs,
dynCO,
_ccofmb,
_sdv_,
_sofs,
MSIE;
this.tyCN='modalDialog_transparentDivs';
this.url='';
this._homm='';
this.lCss='modal-message.css';
this.height=200;
this.width=400;
this._ccofmb=0;
this._sdv_=1;
this._sofs=5;
this.MSIE=0;
if(navigator.userAgent.indexOf('MSIE')>=0) this.MSIE=1;};
DHTML_modalMessage.prototype={setSource:function(_uOS)
{this.url=_uOS;}
,
setHtmlContent:function(_nHC)
{this._homm=_nHC;}
,
setSize:function(width,height)
{if(width)this.width=width;
if(height)this.height=height;}
,
setCssClassMessageBox:function(_nCC)
{this._ccofmb=_nCC;
if(this._divc){if(this._ccofmb)
this._divc.className=this._ccofmb;
else
this._divc.className='modalDialog_contentDiv';}}
,
setShadowOffset:function(_nSO)
{this._sofs=_nSO;}
,
display:function()
{if(!this._dtpd){this.__createDivs();}
this._dtpd.style.display='block';
this._divc.style.display='block';
this.divs_shadow.style.display='block';
if(this.MSIE)this.iframe.style.display='block';
this.__resizeDivs();
window.refToThisModalBoxObj=this;
setTimeout('window.refToThisModalBoxObj.__resizeDivs()',150);
this.__insertContent();}
,
setShadowDivVisible:function(visible)
{this._sdv_=visible;}
,
close:function()
{this._dtpd.style.display='none';
this._divc.style.display='none';
this.divs_shadow.style.display='none';
if(this.MSIE)this.iframe.style.display='none';}
,
addEvent:function(_wO,_eT,_fN,sfx)
{if(!sfx)sfx='';
if(_wO.attachEvent){_wO['e'+_eT+_fN+sfx]=_fN;
_wO[_eT+_fN+sfx]=function(){_wO['e'+_eT+_fN+sfx]( window.event );}
_wO.attachEvent( 'on'+_eT,_wO[_eT+_fN+sfx] );
} else
_wO.addEventListener(_eT,_fN,0);}
,
__createDivs:function()
{this._dtpd=document.createElement('DIV');
this._dtpd.className=this.tyCN;
this._dtpd.style.left='0px';
this._dtpd.style.top='0px';
document.body.appendChild(this._dtpd);
this._divc=document.createElement('DIV');
this._divc.className='modalDialog_contentDiv';
this._divc.id='DHTMLSuite_modalBox_contentDiv';
this._divc.style.zIndex=100000;
if(this.MSIE){this.iframe=document.createElement('<IFRAME src="about:blank" frameborder=0>');
this.iframe.style.zIndex=90000;
this.iframe.style.position='absolute';
document.body.appendChild(this.iframe);}
document.body.appendChild(this._divc);
this.divs_shadow=document.createElement('DIV');
this.divs_shadow.className='modalDialog_contentDiv_shadow';
this.divs_shadow.style.zIndex=95000;
document.body.appendChild(this.divs_shadow);
window.refToModMessage=this;
this.addEvent(window,'scroll',function(e){window.refToModMessage.__repositionTransparentDiv() });
this.addEvent(window,'resize',function(e){window.refToModMessage.__repositionTransparentDiv() });}
,
__getBrowserSize:function()
{var _bW=document.documentElement.clientWidth;
var _bH=document.documentElement.clientHeight,_bW,_bH;
if (self.innerHeight){_bW=self.innerWidth;
_bH=self.innerHeight;
}  else if (document.documentElement&&document.documentElement.clientHeight){_bW=document.documentElement.clientWidth;
_bH=document.documentElement.clientHeight;
} else if (document.body){_bW=document.body.clientWidth;
_bH=document.body.clientHeight;}
return [_bW,_bH];}
,
__resizeDivs:function()
{var topOffset=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
if(this._ccofmb)
this._divc.className=this._ccofmb;
else
this._divc.className='modalDialog_contentDiv';
if(!this._dtpd)return;
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop),sl=Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
window.scrollTo(sl,st);
setTimeout('window.scrollTo('+sl+','+st+');',10);
this.__repositionTransparentDiv();
var brSize=this.__getBrowserSize(),
_bW=brSize[0],
_bH=brSize[1];
this._divc.style.width=this.width+'px';
this._divc.style.height=this.height+'px';
var _tmW=this._divc.offsetWidth,_tmH=this._divc.offsetHeight;
this._divc.style.left=Math.ceil((_bW - _tmW) / 2)+'px';
this._divc.style.top=(Math.ceil((_bH - _tmH) / 2)+topOffset)+'px';
if(this.MSIE){this.iframe.style.left=this._divc.style.left;
this.iframe.style.top=this._divc.style.top;
this.iframe.style.width=this._divc.style.width;
this.iframe.style.height=this._divc.style.height;}
this.divs_shadow.style.left=(this._divc.style.left.replace('px','')/1+this._sofs)+'px';
this.divs_shadow.style.top=(this._divc.style.top.replace('px','')/1+this._sofs)+'px';
this.divs_shadow.style.height=_tmH+'px';
this.divs_shadow.style.width=_tmW+'px';
if(!this._sdv_)this.divs_shadow.style.display='none';}
,
__repositionTransparentDiv:function()
{this._dtpd.style.top=Math.max(document.body.scrollTop,document.documentElement.scrollTop)+'px';
this._dtpd.style.left=Math.max(document.body.scrollLeft,document.documentElement.scrollLeft)+'px';
var brSize=this.__getBrowserSize(),_bW=brSize[0],_bH=brSize[1];
this._dtpd.style.width=_bW+'px';
this._dtpd.style.height=_bH+'px';}
,
__insertContent:function()
{this._divc.innerHTML=this._homm;}};
