/**
* BrowserDetect
*
* @author			Fabrício Ribeiro Silva
* @version			1.0
* @created			2008/06/05
*
* Copyright (c) 2008 FARS
*
*
* Function	: browserDetect
* Definition: Contructor Function
* */
function BrowserDetect (){
}

/**
* Prototypes
* */
BrowserDetect.prototype = {
	/**
	* Function	: getBrowser
	* Definition: Returns the name of browser
	* entry		: Void
	* exit		: Void
	* */
	getBrowser: function() {
		if(navigator.userAgent.toLowerCase().indexOf("msie") != -1){
			return "ie";
		}
		else if(navigator.userAgent.toLowerCase().indexOf("firefox") != -1){
			return "firefox";
		}
		else if(navigator.userAgent.toLowerCase().indexOf("safari") != -1){
			return "safari";
		}
		else if(navigator.userAgent.toLowerCase().indexOf("opera") != -1){
			return "opera";
		}
		else{
			return "invalid";
		}
	}
}