// Preload the navigation images

var offstate = new Array();
var onstate = new Array();

offstate['home'] = new Image();
offstate['home'].src = linkref + 'images/nav/home_off.gif';
offstate['philosophy'] = new Image();
offstate['philosophy'].src = linkref + 'images/nav/philosophy_off.gif';
offstate['people'] = new Image();
offstate['people'].src = linkref + 'images/nav/people_off.gif';
offstate['services'] = new Image();
offstate['services'].src = linkref + 'images/nav/services_off.gif';
offstate['experience'] = new Image();
offstate['experience'].src = linkref + 'images/nav/experience_off.gif';
offstate['contact'] = new Image();
offstate['contact'].src = linkref + 'images/nav/contact_off.gif';

onstate['home'] = new Image();
onstate['home'].src = linkref + 'images/nav/home_on.gif';
onstate['philosophy'] = new Image();
onstate['philosophy'].src = linkref + 'images/nav/philosophy_on.gif';
onstate['people'] = new Image();
onstate['people'].src = linkref + 'images/nav/people_on.gif';
onstate['services'] = new Image();
onstate['services'].src = linkref + 'images/nav/services_on.gif';
onstate['experience'] = new Image();
onstate['experience'].src = linkref + 'images/nav/experience_on.gif';
onstate['contact'] = new Image();
onstate['contact'].src = linkref + 'images/nav/contact_on.gif';


function activate(whichnav) {
	document.images[whichnav].src = onstate[whichnav].src;
}

function deactivate(whichnav) {
	document.images[whichnav].src = offstate[whichnav].src;
}
