//Define Array.indexOf for poor old IE
if(!Array.indexOf){
	Array.prototype.indexOf = function(obj){
		for(var i=0; i<this.length; i++){
			if(this[i]==obj){
				return i;
			}
		}
		return -1;
	};
}

//make it safe to use console.log always
(function (b) {
    function c() {};
    for (var d = "assert,count,debug,dir,dirxml,error,exception,group,\
    		groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,\
    		time,timeEnd,trace,warn".split(","), a; a = d.pop();) 
    				b[a] = b[a] || c;
})(window.console ? window.console : window.console = {});

// event muter...
function nothing(e) {
	e.stopPropagation();
	e.preventDefault();
	return false;
}

