function bb_debugger() {
	
	this.isDev = function() {
		var theLoc = document.location.href;
		this.DEBUG = 0;
		if(theLoc.match("greenparka")) {
			this.DEBUG = 1;
		}
		return(this.DEBUG);
	}
	
	this.log = function(theStr) {
		if(this.isDev()) {
			try {
				console.log(theStr);
			}
			catch(e) {
			
			}
		}
	}
	this.dir = function(theStr) {
		if(this.isDev()) {
			try {
				console.dir(theStr);
			}
			catch(e) {
			
			}
		}
	}
	this.group = function(theStr) {
		if(this.isDev()) {
			try {
				console.group(theStr);
			}
			catch(e) {
			
			}
		}
	}
	this.groupEnd = function() {
		if(this.isDev()) {
			try {
				console.groupEnd();
			}
			catch(e) {
			
			}
		}
	}
}

debugObj = new bb_debugger;
