function Browser()
{
	/*############################################################################
		Methoden
	############################################################################*/
	
	this.getType = function()
	{
		var t = null;
		if(this.agent.indexOf("Firefox") > -1)			{ t = "FF" }
		else if(this.agent.indexOf("MSIE") > -1)		{ t = "IE" }
		else if(this.agent.indexOf("Safari") > -1)		{ t = "SF" }
		else if(this.agent.indexOf("Opera") > -1)		{ t = "OP" }
		else if(this.agent.indexOf("Netscape") > -1)	{ t = "NS" }
		
		return t;
	}
	
	this.getVersion = function()
	{
		var v = null;
		switch(this.type)
		{
			case "FF":
				v = this.agent.substr(this.agent.lastIndexOf("Firefox/")+8,3);
			break;
			case "IE":
				v = this.agent.substr(this.agent.lastIndexOf("MSIE ")+5,3);
			break;
			case "SF":
				v = null;
			break;
			case "OP":
				v = this.agent.substr(this.agent.lastIndexOf("Opera/")+6,3);
			break;
			case "NS":
				v = this.agent.substr(this.agent.lastIndexOf("Netscape/")+9,3);
			break;
			default: v = null; break;
		}
		return (v)?Number(v).toFixed(1):"";
	}
	
	/*############################################################################
		Konstruktor
	############################################################################*/
	
	this.agent		= navigator.userAgent;
	this.type		= this.getType();
	this.version	= this.getVersion();
	this.info		= [this.type,this.version];
}
