var image_path = '/images/';

// This function creates an array of images to be preloaded
function doPreload() {
	var arrImages = new Array('nav_mn_sear_off.gif','nav_mn_sear_on.gif');
	
	preloadImages(arrImages);
}

// This function preloads an array of images
function preloadImages(arrImagesArray) {
	for (loop = 0; loop < arrImagesArray.length; loop++) {
		preloadImage ( image_path + arrImagesArray[loop] ) ;
	}
}

// This function preloads a sinlge image
function preloadImage (strImage) {
	var objImage = new Image() ;
	objImage.src = strImage;
}

function imageRollover (intImageID, strImagePath) {
	document.images[intImageID].src = strImagePath ;
}


//This function will open a new window
var popupWin;

function openWindow(URL, Name, Args) {
	popupWin = window.open(URL, Name, Args) ;
	popupWin.focus() ;
}

//This function will apply a background color 
//to one selected element.
//The element must be called by id.
//This will work in IE 4+ and Netscape 6, not in Netscape 4.

function changeBgColor(elem1ID) {

	docObj = 'document.getElementById';
	styleObj = '.style';
	obj1 = eval(docObj + "('" + elem1ID + "')" + styleObj);
	
	obj1.backgroundColor = '#F1F3F4';
	
}

//This function will remove the background color 
//from one selected element. Called restore because 
//it's being used to reverse the previous function.

function restoreBgColor(elem1ID) {

	docObj = 'document.getElementById';
	styleObj = '.style';
	obj1 = eval(docObj + "('" + elem1ID + "')" + styleObj);
	
	
	obj1.backgroundColor = '#FBF9F2';
	
}