nav = new Menus(new Menu('boarding-menu'),new Menu('training-menu'));nav.name = 'nav';// Copyright 2000 SiteExperts.com, InsideDHTML.com, LLC. All rights reserved.// You can reuse this script as long as the copyright notice is maintained.// USER-DEFINED SETTINGS// The list of images to displayvar image_dir = '/i/home/';var aImages = new Array();aImages[0] = image_dir + 'main1.jpg';aImages[1] = image_dir + 'main2.jpg';aImages[2] = image_dir + 'main3.jpg';var aImagesNavPath = new Array();aImagesNavPath[0] = image_dir + 'main1.jpg';aImagesNavPath[1] = image_dir + 'main2.jpg';aImagesNavPath[2] = image_dir + 'main3.jpg';// The width and height of the images. // All images should be the same size.var aSize = new Array(548, 175);// The number of milliseconds to wait before switching imagesvar iDisplay = 5000;// SCRIPTvar oTimer = null;var iCurrent = 0;var sSource = '';function doDisplay() {  // Try and display the image  clearTimeout(oTimer);  // The sSource is only set when the image is already available  if (sSource != '') 	document.getElementById('slideShow').src = sSource;		document.getElementById('imageNavPath').href = aImagesNavPath[iCurrent];}function doReadyImage() {  // Image is ready for display  sSource = this.src;  // If time period expired just display  if (oTimer == null) 	doDisplay();}function doErrorDisplay() {  // If error, get next image  // NOTE - Script not well written if all images fail  clearTimeout(oTimer);  doLoad();}function doLoad() {  // Start getting the next image  clearTimeout(oTimer);  var img = document.createElement('img');  img.onload = doReadyImage;  img.onerror = doErrorDisplay;  sSource = '';  sLink = '';  iCurrent++;  if (iCurrent == aImages.length) 	iCurrent = 0;  oTimer = setTimeout("oTimer = null; doDisplay();", iDisplay);  img.src = aImages[iCurrent];}function quickNextLoad() {  // Get next image ASAP  clearTimeout(oTimer);  oTimer = null;  var img = document.createElement('img');  img.onload = doReadyImage;  img.onerror = doErrorDisplay;  img.src = aImages[iCurrent];    document.getElementById('imageNavPath').href = aImagesNavPath[iCurrent];}function quickPrevLoad() {	// Get previous image ASAP	clearTimeout(oTimer);	oTimer = null;	var img = document.createElement('img');	img.onload = doReadyImage;	img.onerror = doErrorDisplay;	iCurrent -= 1;  	if (iCurrent < 0) 		iCurrent = aImages.length - 1;  	iCurrent -= 1;  	if (iCurrent < 0) 		iCurrent = aImages.length - 1;		img.src = aImages[iCurrent];		document.getElementById('imageNavPath').href = aImagesNavPath[iCurrent];}	
