//<!------------------------------------------------------------------>
// 
// File Name:	scrNavRollovers.js                                  
// Date:		05/29/02                                           
// Copyright:	SVMedia copyright 2001                             
// Author:		Emily Treganowan                                   
// Purpose:		Javascript Source File for Top Navigation Rollovers
// Notes:												            
// 
//-------------------------------------------------------------------->

		if (document.images) {
		
		var i
		var offImgArray = new Array()
		var onImgArray = new Array()
			
		//pre cache off images
			//pictures
			offImgArray['home'] = new Image
			offImgArray['who'] = new Image
			offImgArray['become'] = new Image
			offImgArray['meet'] = new Image
			offImgArray['news'] = new Image
			offImgArray['booking'] = new Image
			offImgArray['training'] = new Image
			offImgArray['contact'] = new Image
			offImgArray['info_parents'] = new Image
			offImgArray['info_agencies'] = new Image			

		//set off path for off images
			//pictures
			offImgArray['home'].src = "/images/home.gif"
			offImgArray['who'].src = "/images/who.gif"
			offImgArray['become'].src = "/images/become.gif"
			offImgArray['meet'].src = "/images/meet.gif" 
			offImgArray['news'].src = "/images/news.gif"
			offImgArray['booking'].src = "/images/booking.gif"
			offImgArray['training'].src = "/images/training.gif"
			offImgArray['contact'].src = "/images/contact.gif"
			offImgArray['info_parents'].src = "/images/info_parents.gif"
			offImgArray['info_agencies'].src = "/images/info_agencies.gif"			

		//pre cache on images
			//pictures
			onImgArray['home'] = new Image
			onImgArray['who'] = new Image
			onImgArray['become'] = new Image
			onImgArray['meet'] = new Image
			onImgArray['news'] = new Image
			onImgArray['booking'] = new Image
			onImgArray['training'] = new Image
			onImgArray['contact'] = new Image
			onImgArray['info_parents'] = new Image
			onImgArray['info_agencies'] = new Image
			
		//set on path of on images
			//pictures
			onImgArray['home'].src = "/images/home_over.gif"
			onImgArray['who'].src = "/images/who_over.gif"
			onImgArray['become'].src = "/images/become_over.gif"
			onImgArray['meet'].src = "/images/meet_over.gif" 
			onImgArray['news'].src = "/images/news_over.gif"
			onImgArray['booking'].src = "/images/booking_over.gif"
			onImgArray['training'].src = "/images/training_over.gif"
			onImgArray['contact'].src = "/images/contact_over.gif"
			onImgArray['info_parents'].src = "/images/info_parents_over.gif"
			onImgArray['info_agencies'].src = "/images/info_agencies_over.gif"			
		}
			
		//functions that will swap images
			
			function imageOn(picID) {
				if (document.images) {
					document.images[picID].src = onImgArray[picID].src
				}
			}
		
			function imageOff(picID) {
				if (document.images) {
					document.images[picID].src = offImgArray[picID].src
				}
			}			
		