function PSearchBox(b,a){this._rootUrl=b;this._imagePath=a;this._openNewWindow=false;this._useJavaScript=false;this._searchBoxSize=120}PSearchBox.prototype.run=function run(){var b="";if(this._openNewWindow){b='target="_blank" '}if(this._searchBoxSize==120){document.write("<style>.db-searchbox120{width:120px;height:100px;background-image:url('"+this._rootUrl+this._imagePath+'/searchbox120.png\');background-repeat:no-repeat;position:relative;}.db-searchbox120 div{position:absolute;top:0px;height:0px;cursor:pointer;width:120px;height:70px;}.db-searchbox120 input{background-color:transparent;border:0;color:black;width:88px;position:absolute;top:73px;left:7px;}.db-searchbox120 button{background:transparent !important;width:30px;height:30px;position:absolute;right:1px;bottom:4px;border:none;cursor:pointer;}.db-searchbox120</style><div class="db-searchbox db-searchbox120"><a '+b+'href="'+this._rootUrl+'"><div></div></a>')}else{document.write("<style>.db-searchbox160{width:160px;height:125px;background-image:url('"+this._rootUrl+this._imagePath+'/searchbox160.png\');background-repeat:no-repeat;position:relative;}.db-searchbox160 div{position:absolute;top:0px;height:0px;cursor:pointer;width:120px;height:70px;}.db-searchbox160 input{background-color:transparent;border:0;color:black;width:121px;position:absolute;top:96px;left:10px;}.db-searchbox160 button{background:transparent !important;width:30px;height:30px;position:absolute;right:1px;bottom:4px;border:none;cursor:pointer;}.db-searchbox160</style><div class="db-searchbox db-searchbox160"><a '+b+'href="'+this._rootUrl+'"><div></div></a>')}if(this._useJavaScript){var a="";if(this._openNewWindow){a="window.open('"+this._rootUrl+"search?q='+document.getElementById('db-search-input').value);"}else{a="document.location.href='"+this._rootUrl+"search?q='+document.getElementById('db-search-input').value;"}document.write('<input id="db-search-input" type="text" title="Search" maxlength="256" name="q" onkeydown="var e = e || event;if((e.keyCode||e.which)==13){'+a+'}" />');document.write('<button type="submit" onmousedown="'+a+'"></button></div>')}else{document.write("<form "+b+'method="get" action="'+this._rootUrl+'search" onsubmit="if (this.elements[0].value==\'\') return false;"><input id="db-search-input" type="text" title="Search" maxlength="256" name="q"/><button type="submit"></button></form></div>')}};var aionSearchBoxUrl="";if(typeof(aiondb_baseUrl)!="undefined"){aionSearchBoxUrl=aiondb_baseUrl}else{aionSearchBoxUrl="http://www.aiondatabase.com/"}var aionSearchBox=new PSearchBox(aionSearchBoxUrl,"img/aion");