// Javascript file for Tiger Woods PGA Tour 2001// TOPNAV// 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;}// The function that does the image-swapfunction chgImg(myNum, myName) {	if (getAppVersion()) 	{		document[myName].src = img[myNum].src;	}}// The array of images to be preloadedimgsrc = new Array();//  Top navigationimgsrc[50] = "images/nav/pc/pc_playstation_off.gif";imgsrc[51] = "images/nav/pc/pc_playstation_on.gif";imgsrc[52] = "images/nav/pc/pc_playstation2_off.gif";imgsrc[53] = "images/nav/pc/pc_playstation2_on.gif";imgsrc[54] = "images/nav/pc/pc_pc_off.gif";imgsrc[55] = "images/nav/pc/pc_pc_on.gif";imgsrc[56] = "images/nav/pc/pc_buyonline_off.gif";imgsrc[57] = "images/nav/pc/pc_buyonline_on.gif";if (getAppVersion()){	img = new Array();	for (i = 0; i < imgsrc.length; i++)	{		img[i] = new Image();		img[i].src = imgsrc[i];	}}var path = "images/nav/";			var imageSuffix = ".gif";		var rollover = "menu";var list = new Array();// Preload imagespreload("inthegame", path, imageSuffix);preload("onthecourse", path, imageSuffix);preload("downloads", path, imageSuffix);preload("links", path, imageSuffix);preload("behindthescenes", 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;}function Legal(URL) {	if (confirm('\nTerms & Conditions of Downloading Materials\n\nThe materials provided on this web site are provided "as is", without warranties of any kind. Electronic Arts, its subsidiaries, divisions, affiliaties and licensors ("EA") disclaim all warranties, either express or implied, including but not limited to, warranties of merchantability and fitness for a particular purpose.\n\nThere are inherent dangers in the use of any materials available for downloading on the Internet, and you are cautioned to make sure that you completely understand the potential risks before downloading any materials. You are solely responsible for adequate protection and backup of the data and equipment used in connection with any of the materials. To the extent allowed by applicable law, in no event will EA be liable for damages of any kind that may be incurred with your hardware, peripherals or software programs.\n\nYou may download one copy of the materials on any single computer for your personal, non-commercial, home use only, provided you keep intact all copyright and other proprietary notices. No materials from this web site may be copied, reproduced, modified, republished, uploaded, posted, transmitted or distributed in any way, without prior written consent of EA. Unauthorized use of the materials is a violation of EA\'s copyright and constitutes infringement of EA\'s proprietary rights.\n\n To accept this agreement and proceed with download click "OK" or click "Cancel" to decline.'))    window.location = URL; }