/*---------------------------------------------------------------------------------------------------------------------
Copyright (C) 2003 Multimedia Solutions Corporation.
All rights reserved.

Description:	Traditions TOP MENU ROLL OVER
				Juan F. Sarria
Date:			07/30/2003
Modified:		07/31/2003, 01/05/2004
----------------------------------------------------------------------------------------------------------------------*/
//var CurrSections = CurrSection + "";
var CurrSections = "0"

imgext = ".gif"
button = new Array (10);
GoTO = new Array(10);
AltText = new Array(10);

for (i=0; i<10; i++) { button[i] = new Array(10) }
for (i=0; i<10; i++) { GoTO[i] = new Array(10) }
for (i=0; i<10; i++) { AltText[i] = new Array(10) }

button[0][0] = "newimages/topopc1";
button[1][0] = "newimages/topopc2";
button[2][0] = "newimages/topopc3";
button[3][0] = "newimages/topopc4";

GoTO[0][0] = "riskpage.cfm?templname=templ006&id=006AB&left=1&tid=006AB";
GoTO[1][0] = "Documents/disclosure.pdf";
GoTO[2][0] = "riskpage.cfm?templname=templ010&id=010IN&left=1&tid=010IN";
GoTO[3][0] = "riskpage.cfm?templname=templ009&id=009MP&left=1&tid=009MP";

AltText[0][0] = "Information About JWH";
AltText[1][0] = "PDF Document";
AltText[2][0] = "Investment Information";
AltText[3][0] = "Methodology and Philosophy";

var Ind = 0;
for (var t=1; button[t-1][Ind] != null ; ++t) {
	if (CurrSections.indexOf(""+t) == 0 ) {
		document.write("<a href='" + GoTO[t-1][Ind] + "'><img align='center' border='0' src='" + button[t-1][0] + "1"+imgext+"' name='img" + (t-1) + "_" + Ind + "'></a>");
	} else {
		document.write("<a href='" + GoTO[t-1][Ind] + "' onmouseover=\"swapimg('img" + (t-1) + "_" + Ind + "'," + (t-1) + "," + Ind + ");\" onmouseout=\"swapimgBack('img" + (t-1) + "_" + Ind + "', " + (t-1) + "," + Ind + ");\"><img align='center' border='0' src='" + button[t-1][0] + "0"+imgext+"' name='img" + (t-1) + "_" + Ind + "' alt='" + AltText[t-1][0] + "'></a>");
	}
	if (button[t][Ind] != null)
		document.write("<img align='center' border='0' src='newimages/div1.gif'>");
}

function swapimg(img,swp,ind) {
	document.images[img].src = button[swp][ind]+"r"+imgext
}

function swapimgBack(img,swp,ind) {
	document.images[img].src = button[swp][ind]+"0"+imgext; 
}
