rem: if (ua.indexOf('safari') { 
add: if (ua.indexOf('safari') != -1) { 
context: function detectBrowser(){	var oldOnError = window.onerror;	var element = null;		window.onerror = defaultOnError;	navigator.OS		= '';	navigator.version	= 0;	navigator.org		= '';	navigator.family	= '';	var platform;	if (typeof(window.navigator.platform) != 'undefined')	{		platform = window.navigator.platform.toLowerCase();		if (platform.indexOf('win') != -1)			navigator.OS = 'win';		else if (platform.indexOf('mac') != -1)			navigator.OS = 'mac';		else if (platform.indexOf('unix') != -1 || platform.indexOf('linux') != -1 || platform.indexOf('sun') != -1)			navigator.OS = 'nix';	}	var i = 0;	var ua = window.navigator.userAgent.toLowerCase();		if (ua.indexOf('safari') {	  navigator.family = 'nn4';	  navigator.version = 4;	  navigator.org = 'netscape';	}
meta: 2970	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2970/b20203c852f3f2653052c430084c1b7694225277/PracticalBrowserSniffer.js/clean/framework/src/org/apache/tapestry/html/PracticalBrowserSniffer.js