// # User-Agent-Recognition # //

// This script is part of Zetaneon.

// Allows you to check which browser a client is using

// Examples:
//# if (checkBrowserName("MSIE")) alert("Internet Explorer");
//# if (checkBrowserName("firefox")) alert("Mozilla Firefox");
//# if (checkBrowserName("safari")) alert("Apple Safari");
//# if (checkBrowserName("opera")) alert("Opera");

// Parameters

	// str_name:  Name of the browser you think is in use


	function checkBrowserName(str_name) {
	
		// User Agent String
		var str_agent = navigator.userAgent.toLowerCase();
		
		// Checks if given name string (str_name) is the same as the browsers name string (str_agent)
		if (str_agent.indexOf(str_name.toLowerCase())>-1) {
			return true;
		}
		else {		
			return false;
		}
		
	}
