The firebug console is great for debugging javascript -- but it's really annoying when you want to quickly check something in IE and can't without first removing all your debug statements to avoid a bunch of javascript errors.
Here's a handy log function which checks first that firebug is in use before trying to log to the console. The function is a no-op in IE.
log_debug = function() {
if(window.console && window.console.firebug) console.log.apply(this, arguments)
}
log_debug('foo', 'bar', 'bash')