/* 
 * debug helper ( replacement of "console.log()" )
 *
 */
var myconsole = function () {
    return {
        log: function ( msg ) { // custom console.log ( checks if console is active and debugging flag is 1 )
            if ( settings.debug == '1' && ( window.console && window.console.firebug ) ) {
                console.log ( msg );
            }
        }
    }
}();
