var Browser = { IE: !!(window.attachEvent && !window.opera), Opera: !!window.opera, WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1, MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) } var drow_JSLoader = function (config) { this.scripts = Array(); this.isReady = false; this.config = {}; //Apply config for (var key in config) { if (typeof config[key] != 'function') { this.config[key] = config[key]; } } }; drow_JSLoader.prototype = { add: function(url) { if (typeof url === typeof '') { this.scripts.push(url); } } ,load: function () { var head = document.documentElement.getElementsByTagName("HEAD")[0]; for (var i=0; i