// -------------------------------------------------------------------
// DHTML Modal window- By Dynamic Drive, available at: http://www.dynamicdrive.com
// -------------------------------------------------------------------
if(typeof dhtmlwindow=="undefined"){alert('ERROR: Modal Window script requires all files from "DHTML Window widget" in order to work!')}var dhtmlmodal={veilstack:0,open:function(C,B,D,F,A,G){var E=dhtmlwindow;this.interVeil=document.getElementById("interVeil");this.veilstack++;this.loadveil();if(G=="recal"&&E.scroll_top==0){E.addEvent(window,function(){dhtmlmodal.adjustveil()},"load")}var C=E.open(C,B,D,F,A,G);C.controls.firstChild.style.display="none";C.controls.onclick=function(){dhtmlmodal.close(this._parent,true)};C.show=function(){dhtmlmodal.show(this)};C.hide=function(){dhtmlmodal.close(this)};return C},loadveil:function(){var A=dhtmlwindow;A.getviewpoint();this.docheightcomplete=(A.standardbody.offsetHeight>A.standardbody.scrollHeight)?A.standardbody.offsetHeight:A.standardbody.scrollHeight;this.interVeil.style.width=A.docwidth+"px";this.interVeil.style.height=this.docheightcomplete+"px";this.interVeil.style.left=0;this.interVeil.style.top=0;this.interVeil.style.visibility="visible";this.interVeil.style.display="block"},adjustveil:function(){if(this.interVeil&&this.interVeil.style.display=="block"){this.loadveil()}},closeveil:function(){this.veilstack--;if(this.veilstack==0){this.interVeil.style.display="none"}},close:function(B,A){B.contentDoc=(B.contentarea.datatype=="iframe")?window.frames["_iframe-"+B.id].document:B.contentarea;if(typeof A!="undefined"){B.onclose=function(){return true}}if(dhtmlwindow.close(B)){this.closeveil()}},show:function(A){dhtmlmodal.veilstack++;dhtmlmodal.loadveil();dhtmlwindow.show(A)}};document.write('<div id="interVeil"></div>');dhtmlwindow.addEvent(window,function(){if(typeof dhtmlmodal!="undefined"){dhtmlmodal.adjustveil()}},"resize");