	// ************************************************
	// Description : Identify the Bowser 
	// ************************************************
	var browser = new Browser();
	function Browser() {
		var ua, s, i;
		this.isIE    = false;
		this.isNS    = false;
		this.version = null;
		this.isOpera = false;

		ua = navigator.userAgent;
		s = "MSIE";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isIE = true;
			this.version = parseFloat(ua.substr(i + s.length));
			return;
		}
        
		s = "Netscape6/";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isNS = true;
			this.version = parseFloat(ua.substr(i + s.length));
			return;
		}
		
		if (ua.toUpperCase().indexOf("OPERA") >= 0){
			this.isOpera = true;
		}

		// Treat any other "Gecko" browser as NS 6.1.
		s = "Gecko";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isNS = true;
			this.version = 6.1;
			var intLength = ua.length ;
			var intGecko  = ua.indexOf(s);
			var strBGecko = ua.substr(intGecko, (intLength - intGecko))
			var arrBGceko = strBGecko.split("/");
			if (strBGecko.toUpperCase().indexOf("FIREFOX") >= 0){
				this.version = arrBGceko[2];
			}else if (strBGecko.toUpperCase().indexOf("SAFARI") >= 0){
				this.version = arrBGceko[1];
			}
			return;
		}
	}
	// ----------------------------------- End of Browser ----------------------------------------

