// - - - - - - - - - - Navigation - - - - - - - - - - 

function preloader() {
	var home = new Image(); 
	home.src = "images/home2.png";
	var about = new Image(); 
	about.src = "images/gallery2.png";
	var gallery = new Image(); 
	gallery.src = "images/contact2.png";
}

var mouseOut = new Array();
mouseOut[0] = "#"
mouseOut[1] = "images/home1.jpg"
mouseOut[2] = "images/gallery1.jpg"
mouseOut[3] = "images/contact1.jpg"

var mouseOver = new Array();
mouseOver[0] = "#"
mouseOver[1] = "images/home2.jpg"
mouseOver[2] = "images/gallery2.jpg"
mouseOver[3] = "images/contact2.jpg"

var navid = new Array();
navid[0] = "#"
navid[1] = "home"
navid[2] = "gallery"
navid[3] = "contact"


function swapImage(imgid,a) {
if (document.getElementById) {
	if (a == 0) {
	document.getElementById(navid[imgid]).src = mouseOut[imgid] }
	else {
	document.getElementById(navid[imgid]).src = mouseOver[imgid] }
}
}