function clientSniffer()
{
	var platform = navigator.platform + ""; //private member
	var agent = navigator.appName + "";

	this.isMac = function()
	{
		return (platform.substring(0,3) != "Win")
	}
   
	this.isIE = function()
	{
		return (agent == "Microsoft Internet Explorer")
	}
   
	this.isNS = function()
	{
		return (agent == "Netscape") 
	}
   
	this.getVersion = function() 
	{
		if (this.isNS()) return parseInt(navigator.appVersion)
		if (this.isIE())
		{
			var vIdx = navigator.appVersion.indexOf("MSIE ") + ("MSIE ").length
			return parseInt(navigator.appVersion.substring(vIdx, vIdx+3))
		}
		return 0
	}
	this.isDOM = function()
	{
		return document.getElementById ? true : false
	}
}
var cs = new clientSniffer();


