// Javascript file for Tiger Woods PGA Tour 2001// BEHIND THE SCENES// The function to sniff out a browser that can do image-swapsfunction getAppVersion(){	appname= navigator.appName;	appversion = navigator.appVersion;	majorver = appversion.substring(0, 1);	if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;	if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;	return 0;}var path = "images/nav/";			var imageSuffix = ".gif";		var rollover = "menu";var list = new Array();// Preload imagespreload("behindthescenes", path, imageSuffix);preload("pc", path, imageSuffix);preload("interview", path, imageSuffix);preload("motioncapture", path, imageSuffix);preload("strategy", path, imageSuffix);preload("psx", path, imageSuffix);preload("ps2", path, imageSuffix);function preload(name, path, imageSuffix) {		list[name] = new Object();		list[name].off = new Image();		list[name].off.src = path + name + ".off" + imageSuffix;		list[name].hi = new Image();		list[name].hi.src = path + name + ".hi" + imageSuffix;		list[name].on = new Image();		list[name].on.src = path + name + ".on" + imageSuffix;}function switchOn(imgName) {	if (document.images)	 {		if (document.images[rollover]) 		{			document.images[rollover].src = list[rollover].off.src;		}		document.images[imgName].src = list[imgName].on.src;		rollover = imgName;	}}function switchHi(imgName) {	if (document.images) 	{		if (imgName != rollover) 		{			document [imgName].src = list[imgName].hi.src;		}	}	status = imgName;}function switchOff(imgName) {	if (document.images) 	{		if (imgName != rollover) 		{			document [imgName].src = list[imgName].off.src;		}	}	status = "";}function resetAll() {	if (document.images[rollover]) 	{		document.images[rollover].src = list[rollover].off.src;		rollover = "menu";	}}function chgFrame(page){	top.main.location = page;}
