
// Variables

var base = "/images/";
var norm = new Array();
var over = new Array();
var links = new Array(
	'home',
	'aboutus',
	'collections',
	'inthenews',
	'faqs',
	'contactus'
);

// Pre-load

if(document.images) {
	for(i = 0; i < links.length; i++) {
		norm[i] = new Image;
		norm[i].src = base + "nav_" + links[i] + "_dn.png";
		over[i] = new Image;
		over[i].src = base + "nav_" + links[i] + "_up.png";
	}
}

// Functions

function overgo(no) {
	if(document.images) {
		document.images[links[no]].src = over[no].src;
	}
}

function outgo(no) {
	if(document.images) {
		document.images[links[no]].src = norm[no].src;
	}
}
