/*---------------------------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------------------------*/
//var CurrSections = CurrSection + "";
var CurrSections = "0"

imgext = ".gif"
button2 = new Array (10);
GoTO2 = new Array(10);
AltText2 = new Array(10);

for (i=0; i<10; i++) { button2[i] = new Array(10) }
for (i=0; i<10; i++) { GoTO2[i] = new Array(10) }
for (i=0; i<10; i++) { AltText2[i] = new Array(10) }

button2[0][0] = "newimages/Bottopc1";
button2[1][0] = "newimages/Bottopc2";
button2[2][0] = "newimages/Bottopc3";
button2[3][0] = "newimages/Bottopc4";
/*button2[4][0] = "newimages/Bottopc5";*/
/*
GoTO2[0][0] = "riskpage.cfm?templname=templ007&id=007PP&left=1&tid=007PP";
GoTO2[1][0] = "riskpage.cfm?templname=003/003PD&id=003PL&left=0&tid=003PL";
GoTO2[2][0] = "riskpage.cfm?templname=templ003&id=003PL&left=0&tid=003PL";
GoTO2[3][0] = "riskpage.cfm?templname=templ003&id=003SF&left=0&tid=003PL";
GoTO2[4][0] = "riskpage.cfm?templname=templ003&id=003AN&left=0&tid=003PL";
*/

GoTO2[0][0] = "riskpage.cfm?templname=templ007&id=007PP&left=1&tid=007PP";
GoTO2[1][0] = "riskpage.cfm?templname=ASP&Page=NewsLiterature.asp?CAT_ID=1";
GoTO2[2][0] = "riskpage.cfm?templname=ASP&Page=NewsLiterature.asp?CAT_ID=100";
GoTO2[3][0] = "riskpage.cfm?templname=ASP&Page=NewsLiterature.asp?CAT_ID=108";
/*GoTO2[4][0] = "riskpage.cfm?templname=ASP&Page=NewsLiterature.asp?CAT_ID=106";*/


AltText2[0][0] = "Programs and Performance";
AltText2[1][0] = "PDF Document";
AltText2[2][0] = "Literature by JWH";
AltText2[3][0] = "JWH Press Releases";
/*AltText2[4][0] = "Recent News & Articles from JWH"; */

var Ind = 0;
for (var t=1; button2[t-1][Ind] != null ; ++t) {
	if (CurrSections.indexOf(""+t) == 0 ) {
		document.write("<a href='" + GoTO2[t-1][Ind] + "'><img align='center' border='0' src='" + button2[t-1][0] + "1"+imgext+"' name='2img" + (t-1) + "_" + Ind + "'></a>");
	} else {
		document.write("<a href='" + GoTO2[t-1][Ind] + "' onmouseover=\"swapimg2('2img" + (t-1) + "_" + Ind + "'," + (t-1) + "," + Ind + ");\" onmouseout=\"swapimg2Back('2img" + (t-1) + "_" + Ind + "', " + (t-1) + "," + Ind + ");\"><img align='center' border='0' src='" + button2[t-1][0] + "0"+imgext+"' name='2img" + (t-1) + "_" + Ind + "' alt='" + AltText2[t-1][0] + "'></a>");
	}
	/*
	if (button2[t][Ind] != null)
		document.write("<img align='center' border='0' src='newimages/div1.gif'>");
	*/
}

function swapimg2(img,swp,ind) {
	document.images[img].src = button2[swp][ind]+"r"+imgext
}

function swapimg2Back(img,swp,ind) {
	document.images[img].src = button2[swp][ind]+"0"+imgext; 
}
