/**
*
* @author Sven Kummer
* @company rapidsoft GmbH
*
*/

(function (jQuery){

    this.version = '(1.0)';
    this.scripts = {};
    this.wlId = 0;
    this.phraseList = {};
    this.methodList = {};

    this.setSystemMessage = function(message) {

        $('#mainSystemMessageText').html(message);
        $('#mainSystemMessage').fadeIn();

    },

    this.phraseAdd = function(key, phrase) {
        this.phraseList[key] = phrase;
    },

    this.phraseGet = function(key) {
        return this.phraseList[key];
    },

    this.registerMethod = function(key, func) {
        this.methodList[key] = func;
    },

    this.callMethod = function(key) {

        if (this.methodList[key] == undefined) {
            console.log('no method for key "' + key + '"');
            return;
        }

        this.methodList[key]();

    }

    jQuery.base = this;

    return jQuery;

})(jQuery);
