/** * Check if jQuery is load in project */if (typeof jQuery == 'undefined') {     alert("For using ArtJS you must have previously include jQuery!");} else {    /**     * configuration section     */    (function(undefined){                        function ArtJs(){            this.queue = {};            this.engine = undefined;        };                        ArtJs.prototype.load = function(configName, configArguments){            this.queue[configName] = configArguments instanceof Array ? configArguments : [];        };                        ArtJs.prototype.initialize = function(){            if (this.engine){                this.engine._initialize.call(this.engine, this.queue);            }        };                        ArtJs.prototype.activate = function(fName, fParams){            if (this.engine){                if (fName in this.engine){                     this.engine[fName].apply(this.engine, fParams instanceof Array ? fParams : []);                } else if (this.engine.configs && fName in this.engine.configs) {                     this.engine.configs[fName].apply(this.engine, fParams instanceof Array ? fParams : []);                } else {                    if (console && 'error' in console){                        console.error(fName + ' not present in artjs engine.')                    }                }            } else {                if (console && 'error' in console){                    console.error('Engine not initialized yet! Consider calling ' + fName + ' AFTER page load completely.')                }            }        };            ArtJs.prototype.setEngine = function(engine){            this.engine = engine;        };            /**         * engine template section         */        var artengine = {                                        _initialize: function(queue){                this.init();                                for (var configName in queue)                    if (queue.hasOwnProperty(configName) && (configName in this.configs))                        this.configs[configName].apply(this, queue[configName]);                },                        init: function() {},                configs: {}        };                        window.sokolow = new ArtJs();        window.sokolow.engine_template = artengine;        })();        $(function(){        sokolow.initialize();    });}
