﻿function Dialog(aO,txtStyleRootFolder,ao,aY,ay,aI,ai,aA,aa,aE,ae,aU,au,aZ,az,aX,ax,aW,aw,aV,av,aT,at,aS){ this.as=new Window(aO); this.aR=this.setStyle(ao,txtStyleRootFolder); this.as.createWindowFrame(1,0,1,0,1,"absolute",document.getElementById(aY)); this.setTitle(aI); this.ar(ai); this.as.setBuiltinButtons(0,0,aS); this.as.createContentPanel("div"); this.setSize(ax,aW); document.getElementById(ay).style.display="block"; this.as.getContentPanel().appendChild(document.getElementById(ay)); this.setOpacity(aw); this.setPosition(az,aX); this.setzIndex((aV<2)?2:aV); if (aT)this.as.enableFilter(); if (at)this.as.enableDragging(0,null,100,aU); switch (aA){case "SCREEN_CENTER":if (window.aQ==null)window.aQ=new Array(); var aq= false; for (var i=0; i<window.aQ.length; i++)if (window.aQ[i].as.aO==this.as.aO){window.aQ[i]=this ; aq= true; }if (!aq)window.aQ.push(this ); if (window.aP==null){window.aP=new Object(); ap= function (aN){an=(document.documentElement.scrollTop>document.body.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop; aM=(document.documentElement.scrollLeft>document.body.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft; var am=__lib.getWindowSize(); for (var i=0; i<window.aQ.length; i++){try {var aL=window.aQ[i].getSize(); window.aQ[i].setPosition((am.width-aL.width)/2+aM,(am.height-aL.height)/2+an); }catch (al){}}} ; __lib.addEvent(window,"resize",ap, false); __lib.addEvent(window,"scroll",ap, false); }ap(); break; } this.OnInit=aa; this.as.OnOpen=ae; this.as.OnPreOpen=aE; if (this.OnInit!=null)this.OnInit(); this.as.setVisibility(av); this.as.OnPreClose=au; this.as.OnClose=aZ; } ; Dialog.prototype.setStyle= function (aK,ak){return this.as.setStyle(aK,ak); } ; Dialog.prototype.setPosition= function (x,y){ this.as.setPosition(x,y); } ; Dialog.prototype.getPosition= function (){return this.as.getPosition(); } ; Dialog.prototype.setSize= function (width,height){ this.as.setSize(width,height); } ; Dialog.prototype.getSize= function (){return this.as.getSize(); } ; Dialog.prototype.setTitle= function (aI){ this.as.setTitle(aI); } ; Dialog.prototype.ar= function (aJ){ this.as.setLogo(aJ); } ; Dialog.prototype.Open= function (){ this.as.setVisibility( true); } ; Dialog.prototype.Close= function (){ this.as.setVisibility( false); } ; Dialog.prototype.setOpacity= function (aw){ this.as.setOpacity(aw); } ; Dialog.prototype.getOpacity= function (){return this.as.getOpacity(); } ; Dialog.prototype.setzIndex= function (aV){ this.as.setzIndex(aV); } ; Dialog.prototype.getzIndex= function (){return this.as.getzIndex(); } ; Dialog.prototype.Unload= function (){ this.as.unload(); } ; Dialog.prototype.getContentPanel= function (){return this.as.getContentPanel(); } ;
