if (document.images) {
	homeOff = new Image
	homeOn = new Image
	aboutOff = new Image
	aboutOn = new Image
	admissionsOff = new Image
	admissionsOn = new Image
	academicOff = new Image
	academicOn = new Image
	outOff = new Image
	outOn = new Image
	newsOff = new Image
	newsOn = new Image
	contactOff = new Image
	contactOn = new Image
	
	termdatesOff = new Image
	termdatesOn = new Image
	whatsonOff = new Image
	whatsonOn = new Image
	opendaysOff = new Image
	opendaysOn = new Image
	
	belmontOff = new Image
	belmontOn = new Image
	millhillOff = new Image
	millhillOn = new Image
	foundationOff = new Image
	foundationOn = new Image
	friendsOff = new Image
	friendsOn = new Image
	appealOff = new Image
	appealOn = new Image
	
	didyouOff = new Image
	didyouOn = new Image
	birdOff = new Image
	birdOn = new Image

	homeOff.src = "../../images/home-off.gif"
	homeOn.src = "../../images/home-on.gif"
	aboutOff.src = "../../images/about-off.gif"
	aboutOn.src = "../../images/about-on.gif"
	admissionsOff.src = "../../images/admissions-off.gif"
	admissionsOn.src = "../../images/admissions-on.gif"
	academicOff.src = "../../images/academic-off.gif"
	academicOn.src = "../../images/academic-on.gif"
	outOff.src = "../../images/outofschool-off.gif"
	outOn.src = "../../images/outofschool-on.gif"
	newsOff.src = "../../images/news-off.gif"
	newsOn.src = "../../images/news-on.gif"
	contactOff.src = "../../images/contact-off.gif"
	contactOn.src = "../../images/contact-on.gif"
	
	termdatesOff.src = "../../images/termdates-off.gif"
	termdatesOn.src = "../../images/termdates-on.gif"
	whatsonOff.src = "../../images/whatson-off.gif"
	whatsonOn.src = "../../images/whatson-on.gif"
	opendaysOff.src = "../../images/opendays-off.gif"
	opendaysOn.src = "../../images/opendays-on.gif"
	
	belmontOff.src = "../../images/belmont-off.gif"
	belmontOn.src = "../../images/belmont-on.gif"
	millhillOff.src = "../../images/millhill-off.gif"
	millhillOn.src = "../../images/millhill-on.gif"
	foundationOff.src = "../../images/foundation-off.gif"
	foundationOn.src = "../../images/foundation-on.gif"
	friendsOff.src = "../../images/friends-off.gif"
	friendsOn.src = "../../images/friends-on.gif"
	appealOff.src = "../../images/appeal-off.gif"
	appealOn.src = "../../images/appeal-on.gif"
	
	didyouOff.src = "../../images/didyouknow-off.gif"
	didyouOn.src = "../../images/didyouknow-on.gif"
	birdOff.src = "../../images/bird-off.gif"
	birdOn.src = "../../images/bird-on.gif"
}

function chgImg(imgField,newImg) {
	if (document.images) {
		document[imgField].src= eval(newImg + ".src")
	}
}
