/* DynAPI Distribution Main DynAPI class The DynAPI Distribution is distributed under the terms of the GNU LGPL license. */ DynAPI = { loaded : false, plugins : [], wasDragging : false, librarypath : '', packages : [], addPackage : function(pckg) { if (this.packages[pckg]) return; DynAPI.packages[pckg] = {}; DynAPI.packages[pckg].libs = []; }, addLibrary : function(path,files) { var pckg = path.substring(0,path.indexOf('.')); if (!pckg) { alert("Incorrect DynAPI.addLibrary usage:\n\nExample: DynAPI.addLibrary('dynapi.ext',['inline.js'])"); return; } var name = path.substring(path.indexOf('.')+1); if (!DynAPI.packages[pckg]) DynAPI.addPackage(pckg); if (DynAPI.packages[pckg].libs[name]) { alert("DynAPI Error: Library "+name+" already exists"); return; } DynAPI.packages[pckg].libs[name] = files; }, toString : function() { return "DynAPI"; }, getDocument : function(id) { if (id) return DynDocument.dyndocsID[id]; else return DynAPI.document; }, resizeHandler : function() { var doc = this.dyndoc; var w = doc.getWidth(); var h = doc.getHeight(); doc.findDimensions(); if (is.ns4 && (w!=doc.getWidth() || h!=doc.getHeight())) doc.recreateAll(); if (DynAPI.onResize) DynAPI.onResize(); for (var i=0;i<\/script>'); else alert('include()\n\nThe following package could not be loaded:\n'+src+'\n\nmake sure you specified the correct path.'); } else document.write('