var Window=new Class({Implements:Options,options:{href:false,name:false,scrolling:false,forceReopen:false,width:800,height:600},initialize:function(a){this.setOptions(a);this.miY=this.miX=0;this.build()},build:function(){if(Browser.Engine.trident===true){if(navigator.userAgent.match(/msie (8|7|6)\.(\d)/i)!==null)this.miY=35}else if(Browser.Engine.gecko===true){if(navigator.userAgent.match(/firefox\/3\.(\d)/i)!==null)this.miY=35}else if(Browser.Engine.webkit===true)this.miY=navigator.userAgent.match(/chrome/i)!==
null?Browser.Platform.mac===true?90:35:28;else if(Browser.Engine.presto===true)this.miY=13},open:function(){if(this.options.href!==false){this.options.name=this.options.name===false?"window"+Math.round(Math.random()*1E4):this.options.name.replace("_","");var a="width="+(this.options.width+this.miX)+",";a+="height="+(this.options.height+this.miY)+",";a+="scrollbars="+(this.options.scrolling===true?"yes":"no")+",";a+="toolbars=no,status=no,location=no,menubar=no,resizable=no";this.options.forceReopen===
true&&window.open(this.options.href,this.options.name,a).close();window.open(this.options.href,this.options.name,a)}}});
