// aNav array: html name, btn name, link
var NAVHTMLNAME = 0;
var NAVIMGNAME = 1;
var NAVLINK = 2;
var aNav = new Array(
	new Array('choose', 	'button_1', 	'investing/investing.html'),
	new Array('directory', 	'button_2', 	'fcsi_directory/fcsi_directory.html'),
	new Array('honorary', 	'honorary', 	'honorary/honorary_program.html'),
	new Array('ethics', 	'ethics', 	'ethics/code_of_ethics.html')
);
var sectionLevel;
var dirLevel;

//alert((typeof(window['sectionLevel']) == "undefined") || (sectionName == 'home'));
//alert((typeof(window['sectionLevel']) == "undefined") && (sectionName != 'home'));
if ((typeof(window['sectionLevel']) == "undefined") && (sectionName == 'home')) {
	sectionLevel = 0;
} else if ((typeof(window['sectionLevel']) == "undefined") && (sectionName != 'home')) {
	sectionLevel = 1;
}
dirLevel = '';
for (var i = 0; i < sectionLevel; ++i) {
	dirLevel += '../';
}
if (dirLevel == '') {
	dirLevel = 'investing_public/';
}
// alert("sectionName " + sectionName + "\nsectionLevel " + sectionLevel + "\ndirLevel " + dirLevel);

imgDir = dirLevel + "images/";
lnkDir = dirLevel;

for (var i=0; i < aNav.length; ++i) {
	sOpen = "<a onmouseover=\"changeImages('" + aNav[i][NAVHTMLNAME] + "', '" 
		+ imgDir + aNav[i][NAVIMGNAME] + "-over.gif'); return true;\"\n" 
		+ "onmouseout=\"changeImages('" + aNav[i][NAVHTMLNAME] + "', '" 
		+ imgDir + aNav[i][NAVIMGNAME] + ".gif'); return true;\"\n"
		+ "href=\"" + lnkDir + aNav[i][NAVLINK] +"\">\n";
	sImg = "<img name=\"" + aNav[i][NAVHTMLNAME] + "\" src=\"" + imgDir + aNav[i][NAVIMGNAME] + 
		".gif\" width=204 height=35 border=0 alt=\"\" />";
	sClose = "</a><br />\n";
	// alert(str);
	document.write(sOpen + sImg + sClose);
}