var base= "images/"
var nrm = new Array();
var omo = new Array();
var click = new Array();
var stuff = new Array('inspiration','history', 'updates', 'visit', 'home');

// Pre-load part.
if (document.images)
{
	for (i=0;i<stuff.length;i++)
	{
		nrm[i] = new Image;
		nrm[i].src = base + stuff[i] + ".gif"
		omo[i] = new Image;
		omo[i].src = base + stuff[i] + "_on.gif";
		click[i] = new Image;
		click[i].src = base + stuff[i] + "_off.gif";		
	}
}


// The functions: first mouseover, then mouseout
function over(no)
{
	if (document.images)
	{
		if (document.images[stuff[no]].src != click[no].src)
		{
			document.images[stuff[no]].src = omo[no].src
		}
	}
}

function out(no)
{
	if (document.images)
	{
		if (document.images[stuff[no]].src != click[no].src)
		{
			document.images[stuff[no]].src = nrm[no].src
		}
	}
}

function cli(no)
{
	if (document.images)
	{
		for (i=0;i<stuff.length;i++)
		{
			document.images[stuff[i]].src = nrm[i].src
		}
		document.images[stuff[no]].src = click[no].src
	}
}
