/**
 * This is the e-tecture WebToolkit (EWT)
 * @author Björn Wolf bjoern.wolf@e-tecture.com
 * @version 0.1.7
 */
var EWT = {
	version: "0.1.7"
};


/**
 * This is a wrapper for the window.console provided by the Firefox plugin "Firebug"
 * @author Björn Wolf bjoern.wolf@e-tecture.com
 * @version 0.4
 */
EWT.Console = {
    _do: function() {
        if (window.console) {
            var __method = console[arguments[0]], args = arguments[1];
            __method.apply(__method, args);
        }
    }
};

EWT.Console.SupportedMethods = ["log", "debug", "info", "warn", "error", "trace", "time", "timeEnd", "count"];
EWT.Console.SupportedMethods.each(function(__method) {
    EWT.Console[__method] = function() {
        this._do(__method, arguments);
    };
});