// Copyright © 2000-2002 by Apple Computer, Inc., All Rights Reserved.//// You may incorporate this Apple sample code into your own code// without restriction. This Apple sample code has been provided "AS IS"// and the responsibility for its operation is yours. You may redistribute// this code, but you are not permitted to redistribute it as// "Apple sample code" after having made changes.function its() {	var n = navigator;	var ua = ' ' + n.userAgent.toLowerCase();	var pl = n.platform.toLowerCase(); // not supported in NS3.0	var an = n.appName.toLowerCase();	// browser version	this.version = n.appVersion;  	this.nn = ua.indexOf('mozilla') > 0;	// 'compatible' versions of mozilla aren't navigator	if(ua.indexOf('compatible') > 0) {		this.nn = false;	}	this.opera = ua.indexOf('opera') > 0;	this.ie = ua.indexOf('msie') > 0;	this.omniweb = ua.indexOf('omniweb') > 0;  	this.major = parseInt( this.version );	this.minor = parseFloat( this.version );  	// platform	this.mac = ua.indexOf('mac') > 0;	this.mac68k = (ua.indexOf('68k') > 0 || ua.indexOf('68000') > 0);	this.macppc = (ua.indexOf('ppc') > 0 || ua.indexOf('powerpc') > 0);	this.win = ua.indexOf('win') > 0;	this.win16 = (ua.indexOf('16') > 0 && ua.indexOf('win') > 0);	this.win31 = this.win16;	this.win95 = (ua.indexOf('95') > 0 && ua.indexOf('win') > 0);	this.win98 = (ua.indexOf('98') > 0 && ua.indexOf('win') > 0);	this.winme = (ua.indexOf('win 9x 4.90') > 0 && ua.indexOf('win') > 0);	this.winnt = (ua.indexOf('nt') > 0 && ua.indexOf('win') > 0);	this.win2k = (ua.indexOf('nt 5') > 0 && ua.indexOf('win') > 0);	this.os2 = ua.indexOf('os/2') > 0;	// workarounds	// - IE5/Mac reports itself as version 4.0	if(this.ie && this.mac) {		if(ua.indexOf("msie 5")) {			this.major = 5;			var actual_index = ua.indexOf("msie 5");			var actual_major = ua.substring(actual_index + 5, actual_index + 8);      this.minor = parseFloat(actual_major);		}	}	return this;}function browserNaming() {	its = new its();			// is it a DOM-enabled browser?	if (!document.getElementById) {		browserNew = false;	}	else {		browserNew = true;	}	// need the name, too	if (its.opera) {		browserName = "Opera";	}	else if (its.ie) {		browserName = "IE";	}	else {		browserName = "NS";	}	// and the number	browserNameLong = browserName + its.major;}