//// Check for firebug's console
// FIXME Why doesn't this work?  Doing it makes some of the other scripts break?
//if (typeof console === 'undefined') {
//    console = {
//        error: function() { },
//        warn: function() { },
//        debug: function() { },
//        info: function() { },
//        dir: function() { }
//    };
//}


// TODO Support IE8
function log() {
  if (window.console && window.console.firebug) {
    console.log.apply(this, arguments);
  }
}
function logDebug() {
  if (window.console && window.console.firebug) {
    console.debug.apply(this, arguments);
  }
}
function logInfo() {
  if (window.console && window.console.firebug) {
    console.info.apply(this, arguments);
  }
}
function logWarn() {
  if (window.console && window.console.firebug) {
    console.warn.apply(this, arguments);
  }
}
function logError() {
  if (window.console && window.console.firebug) {
    console.error.apply(this, arguments);
  }
}

