if (typeof JKow == "undefined"){
	var JKow = {};
}


JKow.Browser = (function(){
	this.BT_OTHER = 0x00;
	this.BT_MOZ = 0x01;
	this.BT_IE = 0x02;
	this.BT_SAFARI = 0x04;
	this.BT_KONQUEROR = 0x08;
	this.BT_OPERA = 0x0F;
	this.BT_FIREFOX = 0x20;
	this.browserType = this.BT_OTHER;
	this.browserVersion = null;

	this.init = function(){
		if (/MSIE/.test(navigator.userAgent) || /Microsoft/.test(navigator.userAgent)){ this.browserType = this.BT_IE; }
		else if (/Firefox/.test(navigator.userAgent)){ this.browserType = this.BT_FIREFOX; }
		else if (/Mozilla/.test(navigator.userAgent)){ this.browserType = this.BT_MOZ; }
		else if (/Opera/.test(navigator.userAgent)){ this.browserType = this.BT_OPERA; }
		else if (/Apple/.test(navigator.userAgent)){ this.browserType = this.BT_SAFARI; }
		else if (/KDE/.test(navigator.userAgent)){ this.browserType = this.BT_KONQUEROR; }
		else { this.browserType = this.BT_OTHER; }
		this.browserVersion = navigator.appVersion;
	}
	this.init();
	return this;
}());

