// S.W.A.T :: SCRIPTABLE WEB APPLICATION TOOLKIT // Copyright (C) 1999 Joe Hewitt // Distributed under the terms of the GNU Library General Public License // For more information, visit http://www.joehewitt.com/swat function SWAT() { this.mLibraryPath = '.'; this.mSWIDs = []; this.global = []; this.mLoaded = []; this.mDepQueue = []; this.mDebugText = ''; this.mDebugMode = 1; // (0=off,1=statusbar,2=save) this.mClassIndex = {}; } function SWAT_debug(aText) { this.mDebugText += aText; if (this.mDebugMode == 1) { window.status = this.mDebugText; } } function SWAT_loadLibrary(aClass, aPath, aBrowser) { var path = this.mLibraryPath+'/'+aPath+'/'+aClass+ (aBrowser ? '_'+aBrowser : ''); if (!this.mLoaded[path]) { this.mLoaded[path] = true; document.write( '