/****************************** LOAD ONCE *****************************/if(!fw){ var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } var fw = { pageLoaded: false, addLoadListener: function(fn){ if(window.addEventListener) window.addEventListener('load', fn, false); else if(window.attachEvent) window.attachEvent('onload', fn); }, Instances: { list: [], add: function(self, cID, type, parent) { this.list.push({ 'self': self, 'cID': cID || self.containerID, 'type': type || self.type, 'parent': parent || self.options.parent }); return this.list[this.list.length-1]; }, get: function(cID) { for (var i = 0; i < this.list.length; i++) { if (this.list[i].cID == cID) return this.list[i].self; } return null; }, getAll: function(type) { var all = []; for (var i = 0; i < this.list.length; i++) { if (this.list[i].type == type || !type) all.push(this.list[i]); } return all; } }, Libs: { loaded: '', load: function(libs){ this.libs = libs; while(this.libs.length>0){ var loc = this.libs.shift(); if(this.loaded.indexOf(loc)>-1) continue; this.loaded += loc; document.write('