//precache all off button images
var offImgArray = new Array()
offImgArray["Programs"] = new Image
offImgArray["Programs"].src = "images/Programs_BT.gif"
offImgArray["Applications"] = new Image
offImgArray["Applications"].src = "images/Applications_BT.gif"
offImgArray["Investors"] = new Image
offImgArray["Investors"].src = "images/Investors_BT.gif"
offImgArray["ContactUs"] = new Image
offImgArray["ContactUs"].src = "images/ContactUs_BT.gif"
offImgArray["SiteMap"] = new Image
offImgArray["SiteMap"].src = "images/SiteMap_BT.gif"
offImgArray["Change"] = new Image
offImgArray["Change"].src = "images/ChangeLogin_BT.gif"
offImgArray["LogOut"] = new Image
offImgArray["LogOut"].src = "images/LogOut_BT.gif"



//precache all the on button images
var onImgArray = new Array()
onImgArray["Programs"] = new Image
onImgArray["Programs"].src = "images/Programs_SBT.gif"
onImgArray["Applications"] = new Image
onImgArray["Applications"].src = "images/Applications_SBT.gif"
onImgArray["Investors"] = new Image
onImgArray["Investors"].src = "images/Investors_SBT.gif"
onImgArray["ContactUs"] = new Image
onImgArray["ContactUs"].src = "images/ContactUs_SBT.gif"
onImgArray["SiteMap"] = new Image
onImgArray["SiteMap"].src = "images/SiteMap_SBT.gif"
onImgArray["Change"] = new Image
onImgArray["Change"].src = "images/ChangeLogin_SBT.gif"
onImgArray["LogOut"] = new Image
onImgArray["LogOut"].src = "images/LogOut_SBT.gif"


//functions that swap images
function imageON(imgName) {
	if (document.images) {
		document.images[imgName].src = onImgArray[imgName].src
	}
}

function imageOFF(imgName) {
	if (document.images) {
		document.images[imgName].src = offImgArray[imgName].src
	}
}

function logOut(){
	document.location = "Index.aspx"
}

function chgLogin(){
	var pageLocation = "ChangeLogin.aspx"
	document.open(pageLocation,"myWin",'toolbars=0,width=900,height=700,scrollbars=1')
}


