/**
 * Hata consoluna yazdırma işlemini yapar. Sadece FF de firebug yüklü ise
 * çalışır. IE de çalışmaz.
 * 
 * @author iyildiz
 */
var Debug = Class.create();
/**
 * 
 */
Debug.prototype = {
	/**
	 * 
	 */
	initialize : function() {
	},
	/**
	 * Konsola log atar... sadece firebug ile çalışır...
	 */
	log : function(msj) {
		try {
			if (__DEBUG__ != undefined && __DEBUG__ == true) {
				console.log(msj);
			}
		} catch (e) {
			return;
		}
	},
	debug : function(msj) {
		try {
			if (__DEBUG__ != undefined && __DEBUG__ == true) {
				console.debug(msj);
			}
		} catch (e) {
			return;
		}
	},
	info : function(msj) {
		try {
			if (__DEBUG__ != undefined && __DEBUG__ == true) {
				console.info(msj);
			}
		} catch (e) {
			return;
		}
	},
	warn : function(msj) {
		try {
			if (__DEBUG__ != undefined && __DEBUG__ == true) {
				console.warn(msj);
			}
		} catch (e) {
			return;
		}
	},
	error : function(msj) {
		try {
			if (__DEBUG__ != undefined && __DEBUG__ == true) {
				console.error(msj);
			}
		} catch (e) {
			return;
		}
	}
};
/**
 * eğer TRUE ise conslo log atar. FALSE ise log atmaz.
 * 
 */
if (__DEBUG__ == undefined) {
	var __DEBUG__ = false;
}
/**
 * 
 */
var debug = new Debug();
