// PRELOAD IMAGES

home_on = new Image();
home_on.src = '/images/n_home_on.gif';
home_off = new Image();
home_off.src = '/images/n_home.gif';

riccarton_house_on = new Image();
riccarton_house_on.src = '/images/n_riccarton_house_on.gif';
riccarton_house_off = new Image();
riccarton_house_off.src = '/images/n_riccarton_house.gif';

guided_tours_on = new Image();
guided_tours_on.src = '/images/n_guided_tours_on.gif';
guided_tours_off = new Image();
guided_tours_off.src='/images/n_guided_tours.gif';

contact_on = new Image();
contact_on.src = '/images/n_contact_on.gif';
contact_off = new Image();
contact_off.src = '/images/n_contact.gif';

riccarton_bush_on = new Image();
riccarton_bush_on.src = '/images/n_riccarton_bush_on.gif';
riccarton_bush_off = new Image();
riccarton_bush_off.src = '/images/n_riccarton_bush.gif';

awards_on = new Image();
awards_on.src = '/images/n_awards_on.gif';
awards_off = new Image();
awards_off.src = '/images/n_awards.gif';

location_on = new Image();
location_on.src = '/images/n_location_on.gif';
location_off = new Image();
location_off.src = '/images/n_location.gif';

photographs_on = new Image();
photographs_on.src = '/images/n_photographs_on.gif';
photographs_off = new Image();
photographs_off.src = '/images/n_photographs.gif';

deans_cottage_on = new Image();
deans_cottage_on.src = '/images/n_deans_cottage_on.gif';
deans_cottage_off = new Image();
deans_cottage_off.src = '/images/n_deans_cottage.gif';

restaurant_venue_on = new Image();
restaurant_venue_on.src = '/images/n_restaurant_venue_on.gif';
restaurant_venue_off = new Image();
restaurant_venue_off.src = '/images/n_restaurant_venue.gif';

trust_bequests_on = new Image();
trust_bequests_on.src = '/images/n_trust_bequests_on.gif';
trust_bequests_off = new Image();
trust_bequests_off.src = '/images/n_trust_bequests.gif';


function toggleImage(img,state) {
	if (document.images) {
		if (state == 'on') {
			document.images[img].src = eval(img + "_on.src");
		}
		else {
			document.images[img].src = eval(img + "_off.src");
		}
	}
}