/**
 * @author Erin Rosenthal
 *
 */
/* Firefox and IE wrapper class for console
 this class hadles IE delayed instantiation of console and adds
 additional stub methods for IE so the FireBug methods do not
 create errors
 Usage: once the page loads call setLog and pass it the console object
 for jQuery:
 $(function()
 {
 if(console & setLog)setLog(console);
 // additional tasks ...
 }
 
 Add:
// Dummy up Log if log.js is not included
if (!window["Log"]) {
		var Log = {};
		Log.info = Log.log = Log.warn = Log.error = Log.assert = Log.dir = Log.dirxml = Log.trace = Log.group = function(){};
		Log.groupCollapsed = Log.groupEnd = Log.time = Log.timeEnd = Log.profile = Log.profileEnd = Log.count = Log.debug = Log.info
}
to the top of any script file that use Log functions to stop JavaScript errors if log.js is not included in the release
 */
function callLog(type, msg){
    Log.info(msg)
}

function setLog(consoleObject){
    if (consoleObject) {
        Log = consoleObject;
        if (!Log["time"]) {
            Log.dir = function(object){
            };
            Log.dirxml = function(object){
            };
            Log.trace = function(object){
                Log.info("TRACE:" + object)
            };
            Log.group = function(object){
                Log.info("GROUP:" + object)
            };
            Log.groupCollapsed = function(object){
            };
            Log.groupEnd = function(object){
                Log.info("GROUPEND:" + object)
            };
            Log.time = function(name){
            };
            Log.timeEnd = function(name){
            };
            Log.profile = function(){
            };
            Log.profileEnd = function(){
            };
            Log.count = function(object){
            };
            Log.debug = function(object){
                Log.info("DEBUG:" + object)
            };
        }
    }
}



function Log(){
}



Log.info = function(object){
};
Log.log = function(object){
};
Log.warn = function(object){
};
Log.error = function(object){
};
Log.assert = function(expression){
};
Log.dir = function(object){
};
Log.dirxml = function(object){
};
Log.trace = function(object){
};
Log.group = function(object){
};
Log.groupCollapsed = function(object){
};
Log.groupEnd = function(object){
};
Log.time = function(name){
};
Log.timeEnd = function(name){
};
Log.profile = function(){
};
Log.profileEnd = function(){
};
Log.count = function(object){
};
Log.debug = function(object){
};
if(window["console"])setLog(console);