// pre-cache all 'off' menu images
var offImgArray = new Array()
offImgArray[0] = new Image(63,32)
offImgArray[1] = new Image(79,32)
offImgArray[2] = new Image(99,32)
offImgArray[3] = new Image(91,32)
offImgArray[4] = new Image(85,32)
offImgArray[5] = new Image(61,32)
offImgArray[6] = new Image(67,32)
offImgArray[7] = new Image(75,32)

// off menu images -- set paths
offImgArray[0].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_01_news.gif"
offImgArray[1].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_02_events.gif"
offImgArray[2].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_03_members.gif"
offImgArray[3].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_04_services.gif"
offImgArray[4].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_05_bylaws.gif"
offImgArray[5].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_06_faq.gif"
offImgArray[6].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_07_links.gif"
offImgArray[7].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_08_blank.gif"

// pre-cache all 'on' menu images
var onImgArray = new Array()
onImgArray[0] = new Image(63,32)
onImgArray[1] = new Image(79,32)
onImgArray[2] = new Image(99,32)
onImgArray[3] = new Image(91,32)
onImgArray[4] = new Image(85,32)
onImgArray[5] = new Image(61,32)
onImgArray[6] = new Image(67,32)
onImgArray[7] = new Image(75,32)

// on menu images -- set paths
onImgArray[0].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_01_news2.gif"
onImgArray[1].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_02_events2.gif"
onImgArray[2].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_03_members2.gif"
onImgArray[3].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_04_services2.gif"
onImgArray[4].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_05_bylaws2.gif"
onImgArray[5].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_06_faq2.gif"
onImgArray[6].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_07_links2.gif"
onImgArray[7].src = "http://www.cae.wisc.edu/~pitau/includes/header/menu_08_blank2.gif"

function imageOn( i ) {
	document.images[i+1].src = onImgArray[i].src
}

function imageOff( i ) {
	document.images[i+1].src = offImgArray[i].src
}

function setMsg( msg ) {
	window.status = msg
	return true
}
