//Controls and Pre-Caches TOP Menu Buttons & Tags
//THIS SCRIPT FOR ROOT LEVEL Pages


function inittop() {
	eval("document.images.topbtn"+topactiveitem+".src = topnavon["+topactiveitem+"].src")
}

if (document.images) {

var topnav = new Array()
topnav[0] = new Image()
topnav[0].src = "graphics/logo26.gif"
topnav[1] = new Image()
topnav[1].src = "nav/topmenu/1.gif"
topnav[2] = new Image()
topnav[2].src = "nav/topmenu/2.gif"
topnav[3] = new Image()
topnav[3].src = "nav/topmenu/3.gif"
topnav[4] = new Image()
topnav[4].src = "nav/topmenu/4.gif"
topnav[5] = new Image()
topnav[5].src = "nav/topmenu/5.gif"
topnav[6] = new Image()
topnav[6].src = "nav/topmenu/6.gif"
topnav[7] = new Image()
topnav[7].src = "nav/topmenu/7.gif"
topnav[8] = new Image()
topnav[8].src = "nav/topmenu/8.gif"

var topnavover = new Array()
topnavover[0] = new Image()
topnavover[0].src = "graphics/logo26.gif"
topnavover[1] = new Image()
topnavover[1].src = "nav/topmenu/1over.gif"
topnavover[2] = new Image()
topnavover[2].src = "nav/topmenu/2over.gif"
topnavover[3] = new Image()
topnavover[3].src = "nav/topmenu/3over.gif"
topnavover[4] = new Image()
topnavover[4].src = "nav/topmenu/4over.gif"
topnavover[5] = new Image()
topnavover[5].src = "nav/topmenu/5over.gif"
topnavover[6] = new Image()
topnavover[6].src = "nav/topmenu/6over.gif"
topnavover[7] = new Image()
topnavover[7].src = "nav/topmenu/7over.gif"
topnavover[8] = new Image()
topnavover[8].src = "nav/topmenu/8over.gif"

var topnavon = new Array()
topnavon[0] = new Image()
topnavon[0].src = "graphics/logo26.gif"
topnavon[1] = new Image()
topnavon[1].src = "nav/topmenu/1on.gif"
topnavon[2] = new Image()
topnavon[2].src = "nav/topmenu/2on.gif"
topnavon[3] = new Image()
topnavon[3].src = "nav/topmenu/3on.gif"
topnavon[4] = new Image()
topnavon[4].src = "nav/topmenu/4on.gif"
topnavon[5] = new Image()
topnavon[5].src = "nav/topmenu/5on.gif"
topnavon[6] = new Image()
topnavon[6].src = "nav/topmenu/6on.gif"
topnavon[7] = new Image()
topnavon[7].src = "nav/topmenu/7on.gif"
topnavon[8] = new Image()
topnavon[8].src = "nav/topmenu/8on.gif"

}

// Changes top Menu to rollover state
// No if n != active item because no active item (menu has only off and over states)
function topover(n) {
	if (n != topactiveitem) {
		eval("document.topbtn"+n+".src = topnavover["+n+"].src")
	}
}

// Returns top Menu back to off state
// No if n != active item because no active item (menu has only off and over states)
function topout(n) {
	if (n != topactiveitem) {
		eval("document.topbtn"+n+".src = topnav["+n+"].src")
	}
}