imagePrefix = "nav_"
imageArray = new Array('hservice','hbusiness','hlife','about','members','join','press','contact','submitrfp','home')
if (location.href.indexOf("formmail") >= 0) {
	filePath = "/rmoa/"
} else {
	filePath = (currentSection != "home") ? "../" : ""
}

preloadImages()

function preloadImages() {
	for (v=0;v<imageArray.length;v++) {
		eval(imageArray[v] + 'off = new Image()')
		eval(imageArray[v] + 'off.src = "' + filePath + 'images/' + imagePrefix + imageArray[v] + '.gif"')
		eval(imageArray[v] + 'on = new Image()')
		eval(imageArray[v] + 'on.src = "' + filePath + 'images/' + imagePrefix + imageArray[v] + '_over.gif"')
	}
}


function turnon(i) {
	document[i].src = eval(i + "on.src")
}

function turnoff(i) {
	if (i != currentSection) {
		document[i].src = eval(i + "off.src")
	}
}

function initPage() {
	turnon(currentSection)
}



bannerArray = new Array ()
bannerArray[0] = ["http://www.lighthousestrategic.com","banner_lighthouse1.jpg"]
bannerArray[1] = ["http://www.rmoa.org/heroes-in-business/careerbuilder.html","banner_job_center.gif"]
bannerArray[2] = ["http://www.mitchellfoundation.org","bannerad1.gif"]
bannerArray[3] = ["http://www.abfloyd.com","banner_abfloyd.gif"]
bannerArray[4] = ["http://www.dst01.com","banner_dst.gif"]
bannerArray[5] = ["http://www.msti-net.com/jsp/frontPage.jsp","msti_banner.gif"]
bannerArray[6] = ["http://www.tape-llc.com/index.htm","tape_banner.gif"]
bannerArray[7] = ["http://www.uii.com/index.asp","uii_banner.gif"]
bannerArray[8] = ["http://www.pestrategies.com/","PositiveEdge.jpg"]
bannerArray[9] = ["http://www.premiercon.com/","banner_premier.gif"]







bannerGroups = new Array ()
bannerGroups[0] = []
bannerGroups[1] = [1,4,2,6,7,0,5,9,8]


function LoadBanners(loc) {
	if (loc > 0) {
		for (x=0;x<bannerGroups[loc].length;x++) {
			document.write('<a href="' + bannerArray[bannerGroups[loc][x]][0] + '"><img src="' + filePath + 'images/' + bannerArray[bannerGroups[loc][x]][1] + '" width=155 height=60 border=0></a><br><br>')
		}
	}
}


function writeFlash(fFileName,fAltFileName,fWidth,fHeight,fBGColor,fID,fWMode) {
fWMode = (fWMode == 0) ? "window" : "transparent"
fFileName = filePath + fFileName

flashCode = new Array()
flashCode[0] = '<img src="' + fAltFileName + '" width=' + fWidth + ' height=' + fHeight + ' border=0>'
flashCode[1] = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH=' + fWidth + ' HEIGHT=' + fHeight + ' id="' + fID + '">'
flashCode[1] += '<PARAM NAME=movie VALUE="' + fFileName + '"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE="' + fBGColor + '"><PARAM NAME=WMODE VALUE="' + fWMode + '">\n'
flashCode[1] += '<EMBED src="' + fFileName + '" quality=high bgcolor="' + fBGColor + '"  WIDTH=' + fWidth + ' HEIGHT=' + fHeight + ' NAME="' + fID + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>'
flashVersion = 0
hasFlash = 1
Numplugins = navigator.plugins.length
for (i=0;i<Numplugins;i++) {
	if (navigator.plugins[i].name.indexOf("Flash")>=0) {
		tempVersion = navigator.plugins[i].description.substring((navigator.plugins[i].description.indexOf('.')-1),navigator.plugins[i].description.indexOf('.'))
		if ( tempVersion > flashVersion ) { flashVersion = tempVersion }
		if (flashVersion < 5) { hasFlash = 0 }
	}
}
document.write(flashCode[hasFlash])
}
