function Browser()
{
	var agent	= navigator.userAgent.toLowerCase();
	this.isWin	= agent.indexOf("win") > -1;
	this.isMac	= agent.indexOf("mac") > -1;
	this.isUNIX	= agent.indexOf("x11") > -1;

	this.isOpera = agent.indexOf("opera") > -1;
	this.isFirefox	= agent.indexOf("firefox") > -1;
	this.isIE	= agent.indexOf("msie") > -1;
	this.isNS	= agent.indexOf("netscape") > -1;
	this.isSafari =  agent.indexOf("safari") > -1;
	this.isChrome = agent.indexOf("chrome") > -1;

	this.resWidth	= window.screen.width;
	this.resHeight = window.screen.height;
	
	if(this.isIE)
	{
	    //test for MSIE x.x;
	    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) this.version = new Number(RegExp.$1); // capture x.x portion and store as a number
	}
	else if(this.isFirefox)
	{
	    //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
	    if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) this.version = new Number(RegExp.$1); // capture x.x portion and store as a number
 	}
 	else if(this.isOpera)
 	{
 	    //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);
 	    if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) this.version = new Number(RegExp.$1); // capture x.x portion and store as a number
 	}
 	else if(this.isNS)
 	{
        //test for Netscape/x.x or Netscape x.x (ignoring remaining decimal places);
 	    if (/Netscape[\/\s](\d+\.\d+)/.test(navigator.userAgent)) this.version = new Number(RegExp.$1); // capture x.x portion and store as a number
 	}
 	else
 	{
 	    this.version = 0;
 	}

}