/* navigation.js - Puget Sound Dive navigation JavaScript file */
	
var preloadFlag = false;
function preloadImages() {
	if(document.images) {
		link_home = newImage("images/global/link_home.gif");
		link_services_over = newImage("images/global/link_services-over.gif");
		link_about_over = newImage("images/global/link_about-over.gif");
		link_contact_over = newImage("images/global/link_contact-over.gif");
		link_links_over = newImage("images/global/link_links-over.jpg");
		preloadFlag = true;
	}
}
		
function newImage(arg) {
	if(document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function swap_image(which, loc) {
	document[which].src = loc;
}