/*
Inspired by script
ua.js revision 0.200 2001-12-03
Contributor(s): Bob Clary, Netscape Communications, Copyright 2001
	***
	Netscape grants you a royalty free license to use, modify and 
	distribute this software provided that this copyright notice 
	appears on all copies.  This software is provided "AS IS," 
	without a warranty of any kind
	***

Modified by AT Mulyana (atmulyana@yahoo.com) in October 26, 2005 (lists only intended browsers)
Distributed as part of 'AT JsMenu' under LGPL (http://gnu.org/licenses/lgpl.html)
*/
(function() {
	var navFamily = navigator.userAgent.toLowerCase();
	if (navFamily.indexOf('opera')!=-1) { 
		navigator.version = parseFloat( navFamily.substring(navFamily.indexOf('opera')+6,
			navFamily.length) );
		if (navigator.version >= 7.0) navFamily = 'Opera7';
		else navFamily = '';
	} else if (navFamily.indexOf('msie')!=-1) {
		navigator.version = parseFloat( navFamily.substring(navFamily.indexOf('msie')+5,
			navFamily.length) );
		if (navigator.version >= 6.0) navFamily = 'IE6';
		else navFamily = '';
	} else if (navFamily.indexOf('gecko')!=-1) {
		navigator.version = parseFloat( navFamily.substring(navFamily.indexOf('gecko')+6,
			navFamily.length) );
		if (navigator.version >= 20020823) navFamily = 'Gecko'; //Good Gecko; Netscape 7+ / Mozilla 1.0.1+
		else navFamily = '';
	} else {
		navFamily = '';
		navigator.version = 0;
	}
	
	navigator.family = navFamily;
})();