/*
* Title: Java Script Menu Navigation
* Copyright: Copyright (c) 2003
* Company: Multimedia Solutions Corp
* Author: Juan F. Sarria
* Date: 05/28/2003
* Modified: 06/19/2003
* Version: 5 => IE & NetScape 4.5+
* Modified: 07/23/2003 Dynamic Double Direction
* Modified: 07/28/2003
* Modified: 08/08/2003 for JWH
* Modified: 08/12/2003 for JWH

* Modified: 06/12/2004 Add New "News & Literature" Links
* Modified: 07/12/2004 New "News & Literature" drop-down order
*/

//***************************** MENU OPTIONS ******************************************************************************************

// User Guide: MenuOptions are the options in the 1st level dropdown. Suboptions are the second level dropdown for the particular menuoption. Add Menuoptions by copying and pasting the menuoptions line. The ahref link is established by inserting a | after the title of the option, then the actual URL. The second | that appears determines the direction of the submenu. |1 determines that the menu goes to the right. |2 determines that the menu goes to the left (as in the case of the last menu). For top level options, the arrow indicator can be added to indicate submenus. The arrow can be added by including "+Arrow+" inside of the  menuoption's quotes. It should be added after the menuoption title for the right arrow. For the left arrow, use "+leftarrow+" before the menuoption title.

function FillOptions() {

// MENU 1

++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = 227;

// The horizontal positioning of the submenu is defined in the integer above "163". This integer is the horizontal distance to the left or right of the 1 st dropdown that the second dropdown menu will appear. Increasing this number will move the series of 2nd level dropdowns to the right, decreasing will move them to the left. In the case of the rightmost menu, this integer is negative because it appears completely to the left of the 1st drop down. 

MenuOptions[MenuNo][++OpcNo] = "<b>Program Performance Summary</b>|templ007.cfm?id=007PP&left=1&tid=007PP|1"; SubOpcNo = 0;
/*MenuOptions[MenuNo][++OpcNo] = "Strategic Allocation Program"+Arrow+"		|fund_details.asp?prg=1|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=1#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=1#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=1#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=1#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=1#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=1#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=1#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=1#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=1#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions*/
/*MenuOptions[MenuNo][++OpcNo] = "Currency Strategic Allocation Program"+Arrow+"|fund_details.asp?prg=11|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=11#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=11#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "3-Year Statistics				|fund_details.asp?prg=11#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=11#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=11#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=11#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=11#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=11#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=11#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions*/
MenuOptions[MenuNo][++OpcNo] = "Financial and Metals Portfolio"+Arrow+"|fund_details.asp?prg=2|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=2#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=2#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=2#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details.asp?prg=2#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=2#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=2#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=2#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=2#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=2#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=2#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
/*MenuOptions[MenuNo][++OpcNo] = "Worldwide Bond Program"+Arrow+"|fund_details.asp?prg=4|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=4#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=4#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=4#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=4#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=4#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=4#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=4#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=4#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=4#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions */
MenuOptions[MenuNo][++OpcNo] = "International Foreign Exchange Program"+Arrow+"|fund_details.asp?prg=5|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=5#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=5#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=5#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details.asp?prg=5#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=5#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=5#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=5#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=5#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=5#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=5#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
/*MenuOptions[MenuNo][++OpcNo] = "Dollar Program"+Arrow+"|fund_details.asp?prg=7|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=7#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=7#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=7#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=7#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=7#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=7#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=7#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=7#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=7#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions */
/*MenuOptions[MenuNo][++OpcNo] = "Global Diversified Portfolio"+Arrow+"|fund_details.asp?prg=9|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=9#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=9#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=9#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=9#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=9#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=9#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=9#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=9#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=9#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions*/
	MenuOptions[MenuNo][++OpcNo] = "JWH GlobalAnalytics®"+Arrow+"|fund_details.asp?prg=10|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=10#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=10#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "5-Year Statistics				|fund_details.asp?prg=10#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details.asp?prg=10#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=10#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=10#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annualized Rates of Return		|fund_details.asp?prg=10#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=10#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=10#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=10#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
	
	MenuOptions[MenuNo][++OpcNo] = "JWH Diversified Plus"+Arrow+"|fund_details1.asp?prg=14|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details1.asp?prg=14#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details1.asp?prg=14#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details1.asp?prg=14#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Since Inception Statistics 	|fund_details1.asp?prg=14#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details1.asp?prg=14#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details1.asp?prg=14#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details1.asp?prg=14#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details1.asp?prg=14#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details1.asp?prg=14#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
	
	MenuOptions[MenuNo][++OpcNo] = "JWH Financial Plus"+Arrow+"|fund_details1.asp?prg=15|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details1.asp?prg=15#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details1.asp?prg=15#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details1.asp?prg=15#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Since Inception Statistics 	|fund_details1.asp?prg=15#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details1.asp?prg=15#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details1.asp?prg=15#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details1.asp?prg=15#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details1.asp?prg=15#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details1.asp?prg=15#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
	
	MenuOptions[MenuNo][++OpcNo] = "JWH World Commodity Portfolio"+Arrow+"|fund_details1.asp?prg=16|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details1.asp?prg=16#pr5";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details1.asp?prg=16#pr5";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details1.asp?prg=16#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Since Inception Statistics 	|fund_details1.asp?prg=16#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details1.asp?prg=16#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details1.asp?prg=16#sec";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details1.asp?prg=16#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details1.asp?prg=16#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details1.asp?prg=16#mrr"; 
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
	
	MenuOptions[MenuNo][++OpcNo] = "JWH Vision<sub>1</sub> Program"+Arrow+"|fund_details.asp?prg=17|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=17#pr5";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=17#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Since Inception Statistics		|fund_details.asp?prg=17#pr5";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details.asp?prg=17#r12";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=17#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=17#sec";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=17#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=17#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

	MenuOptions[MenuNo][++OpcNo] = "JWH Stock Index Portfolio"+Arrow+"|fund_details.asp?prg=18|1|U"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Data				|fund_details.asp?prg=18#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Analysis					|fund_details.asp?prg=18#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Since Inception Statistics		|fund_details.asp?prg=18#pr5";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "12 Month Rolling Returns		|fund_details.asp?prg=18#r12";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Risk Allocation Averages|fund_details.asp?prg=18#sec";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Sector Returns					|fund_details.asp?prg=18#sec";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Growth of $1,000				|fund_details.asp?prg=18#grow";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Rates of Return			|fund_details.asp?prg=18#mrr";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Rates of Return		|fund_details.asp?prg=18#mrr";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
	
MenuOptions[MenuNo][0] = OpcNo; // Count Number of Options

// MENU 2
++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = 0;
MenuOptions[MenuNo][++OpcNo] = "Investing with JWH	|templ010.cfm?id=010IN&left=0&tid=010IN|1"; SubOpcNo = 0;
MenuOptions[MenuNo][++OpcNo] = "Benefits and Risk	|templ010.cfm?id=010BR&left=0&tid=010IN|1"; SubOpcNo = 0;
MenuOptions[MenuNo][++OpcNo] = "Contact Us			|templ002.cfm?id=002CJ&left=0&tid=002CJ|1"; SubOpcNo = 0;
MenuOptions[MenuNo][0] = OpcNo;


// MENU 3
++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = 130;
MenuOptions[MenuNo][++OpcNo] = "Market Commentary"+Arrow+"						|NewsLiterature.asp?CAT_ID=1|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Current Monthly Commentary (PDF)	|Documents/MARKETCommentary.pdf";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Archives							|NewsLiterature.asp?CAT_ID=1#SUBCAT104";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

MenuOptions[MenuNo][++OpcNo] = "JWH Literature"+Arrow+"							|NewsLiterature.asp?CAT_ID=100|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Disclosure Document (PDF)			|Documents/disclosure.pdf";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "JWH Flash Reports   (PDF)			|Documents/INTROPIECE122701.pdf";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

	MenuOptions[MenuNo][++OpcNo] = "JWH Announcements" + Arrow + "				|NewsLiterature.asp?CAT_ID=108|1"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "JWH Press Releases     			|NewsLiterature.asp?CAT_ID=108#SUBCAT434";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

//MenuOptions[MenuNo][++OpcNo] = "Program Brochures"+Arrow+"									|#|1"; SubOpcNo = 0;
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Strategic Allocation Program Brochure (PDF)	|Documents/SAP_Brochure.pdf";
//	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

//MenuOptions[MenuNo][++OpcNo] = "JWH Special Features"+Arrow+"				|NewsLiterature.asp?CAT_ID=107|1"; SubOpcNo = 0;
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Investor Support Series		|NewsLiterature.asp?CAT_ID=107#SUBCAT113";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Annual Portfolio Reviews		|NewsLiterature.asp?CAT_ID=107#SUBCAT114";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Book Reviews					|NewsLiterature.asp?CAT_ID=107#SUBCAT115";
//	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

//MenuOptions[MenuNo][++OpcNo] = "JWH Journals								|NewsLiterature.asp?CAT_ID=110|1"; SubOpcNo = 0;

//MenuOptions[MenuNo][++OpcNo] = "Presentations								|NewsLiterature.asp?CAT_ID=106#SUBCAT236|1"; SubOpcNo = 0;

//MenuOptions[MenuNo][++OpcNo] = "Archives"+Arrow+"							|NewsLiterature.asp?CAT_ID=111|1"; SubOpcNo = 0;
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Literature						|NewsLiterature.asp?CAT_ID=111#SUBCAT185";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "News							|NewsLiterature.asp?CAT_ID=111#SUBCAT203";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Quarterly Performance Reviews	|NewsLiterature.asp?CAT_ID=111#SUBCAT191";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Year in Reviews				|NewsLiterature.asp?CAT_ID=111#SUBCAT199";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Monthly Commentaries			|NewsLiterature.asp?CAT_ID=1#SUBCAT147";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Information Series				|NewsLiterature.asp?CAT_ID=111#SUBCAT219";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Special Features				|NewsLiterature.asp?CAT_ID=111#SUBCAT231";
//	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions

MenuOptions[MenuNo][0] = OpcNo;

// MENU 4
++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = -159;
MenuOptions[MenuNo][++OpcNo] = leftarrow + "About JWH|templ006.cfm?id=006AB&left=1&tid=006AB|2"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "About JWH|templ006.cfm?id=006AB&left=1&tid=006AB";
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "JWH News and Articles|NewsLiterature.asp?CAT_ID=106"
//	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "JWH Press Releases|NewsLiterature.asp?CAT_ID=106#SUBCAT240";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "JWH At A Glance|templ006.cfm?id=006GL&left=1&tid=006AB";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "The JWH Organization<img border='0' src='TopNavFiles/1x1.gif' width='34' height='1'>|templ006.cfm?id=006OR&left=1&tid=006AB";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Principals of JWH|templ006.cfm?id=006PR&left=1&tid=006AB";
	//SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Messages from the Chairman|templ006.cfm?id=006MC&left=1&tid=006AB";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Contact Us|templ002.cfm?id=002CJ&left=0&tid=002CJ";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
MenuOptions[MenuNo][++OpcNo] = Space + "JWH Investment Program Descriptions|templ006.cfm?id=006PD&left=1&tid=006PD|1"; SubOpcNo = 0;
MenuOptions[MenuNo][++OpcNo] = leftarrow + "Methodology and Philosophy|templ009.cfm?id=009MP&left=1&tid=009MP|2"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Investment Policy Committee<img border='0' src='TopNavFiles/1x1.gif' width='6' height='1'>|templ009.cfm?id=009MM&left=1&tid=009MP";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Risk Management|templ009.cfm?id=009TA&left=1&tid=009MP";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions
MenuOptions[MenuNo][++OpcNo] = Space + "Assets Under Management|aum.asp|1"; SubOpcNo = 0;
MenuOptions[MenuNo][0] = OpcNo;

// MENU 5
++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = -186;
MenuOptions[MenuNo][++OpcNo] = Space + "Performance Calculator	|percalc.asp|1"; SubOpcNo = 0;

MenuOptions[MenuNo][++OpcNo] = leftarrow + "Industry Resources																				|NewsLiterature.asp?CAT_ID=109|2"; SubOpcNo = 0;
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Selected Bibliography																			|NewsLiterature.asp?CAT_ID=109#SUBCAT116";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Exchange Web Sites																				|NewsLiterature.asp?CAT_ID=109#SUBCAT117";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Performance Reporting Agencies<img border='0' src='TopNavFiles/1x1.gif' width='9' height='1'>	|NewsLiterature.asp?CAT_ID=109#SUBCAT118";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Regulatory Bodies																				|NewsLiterature.asp?CAT_ID=109#SUBCAT119";
	SubOptions[MenuNo][OpcNo][++SubOpcNo] = "Professional Organizations																		|NewsLiterature.asp?CAT_ID=109#SUBCAT120";
	SubOptions[MenuNo][OpcNo][0] = SubOpcNo; // Count Number of Suboptions


MenuOptions[MenuNo][++OpcNo] = Space + "Map of Exchanges		|templ007.cfm?id=007MA&left=1&tid=007PP|1"; SubOpcNo = 0;
MenuOptions[MenuNo][0] = OpcNo;


// MENU 6
++MenuNo; OpcNo = 0; SubMenuPos[MenuNo] = 0;
MenuOptions[MenuNo][++OpcNo] = "View PDF<img border='0' src='TopNavFiles/1x1.gif' width='47' height='1'>|Documents/disclosure.pdf|1"; SubOpcNo = 0;
MenuOptions[MenuNo][0] = OpcNo;

}

//*************************************************************************************************************************************

function BuiltNavigationMenu() {
	WriteAllStyleCSS();
	WriteAllMenus();
}

var DownDirection = true; // false=roll upwards
var MainWithArrows = false;
var MainOffFromHere = true;

//Change the numbers below to adjust the left-right positioning of the initial dropdown menus

MainMenusLeft = new Array(100); // Left Positions & Counter of Main Menus
MainMenusLeft[1] = "144";
MainMenusLeft[2] = "277";
MainMenusLeft[5] = "555";
MainMenusLeft[3] = "385";
MainMenusLeft[4] = "485";
MainMenusLeft[6] = "649";

MainMenusTop = 94; // 133; // Start Top Position of Main Menus
SubMenusTop = MainMenusTop + 0; // Initial Top Position of Sub Menus (first Option)
HEIGHT = 19; // Letter Height

NS5 = document.layers;
IE = document.all;
NS6 = document.getElementById && !document.all;

IE = (typeof(IE) != "undefined" && IE != false ) ? true : false;
NS = ((typeof(NS5) != "undefined" && NS5 != false) || (typeof(NS6) != "undefined" && NS6 != false)) ? true : false;

var LeftGuide = "&nbsp;&nbsp;"
var Arrow = "&nbsp;<img border='0' src='TopNavFiles/arrow.gif' width='12' height='7'>";
var Space = "&nbsp;<img border='0' src='TopNavFiles/1x1.gif' width='10' height='7'>";
var leftarrow = "&nbsp;<img border='0' src='TopNavFiles/leftarrow.gif' width='12' height='7'>" + LeftGuide;

var OptionWrap_A1 = "<tr><td OnMouseOver='TurnOn(this)' OnMouseOut='TurnOff(this)' width='100%' nowrap>"
var OptionWrap_B1 = "&nbsp;</td></tr>"

var SubOptionWrap_A1 = "<tr><td OnMouseOver='TurnOn(this)' OnMouseOut='TurnOff(this)' width='100%' nowrap>"
var SubOptionWrap_B1 = "&nbsp;</td></tr>"

var OptionsWraper_A1 = "<table border='0' width='100%' cellspacing='0' cellpadding='0'>"
var OptionsWraper_B1 = "<tr><td><img border='0' src='TopNavFiles/1x1.gif' width='1' height='4'></td></tr></table>"

var MenuOptions = new Array(100);
var SubOptions = new Array(100);
var SubMenuPos = new Array(100);
var AllOptions = new Array(1000);

for (t=1; t<=100; ++t) {
	MenuOptions[t] = new Array(100);
	SubOptions[t] = new Array(100);
	SubMenuPos[t] = 0;
	for (i=1; i<=100; ++i) SubOptions[t][i] = new Array(100);
}

MenuNo = 0;

FillOptions();

var CurrentMenu = "Menu1";
var CurrentSubMenu = "Sub11";
var CurrentArrowImg = "Arrow0";

function OnOff(LayerID, Action) {
	if (IE) document.all[LayerID].style.visibility = Action;
	else if (NS5) document.layers[LayerID].visibility = Action;
	else if (NS6) document.getElementById(LayerID).style.visibility = Action;
}

function OpenMenu(MenuName) {
	setTimeout("CloseCurrentMenu('" + MenuName + "')", 10000);
	CloseMenu(CurrentMenu);
	CurrentMenu = MenuName;
	OnOff(MenuName, "visible");
	if (MainWithArrows) document.images["Arrow"+MenuName].src = 'TopNavFiles/arrowopen.gif';
}

function CloseMenu(MenuName) {
	if ( MenuName.length > 2 )
	{
		var No = MenuName.substr(MenuName.length-1,1);
		CloseSubMenu(CurrentSubMenu);
		OnOff(MenuName, "hidden");
		if (MainWithArrows) document.images["Arrow"+MenuName].src = 'TopNavFiles/arrowclose.gif';
		if (MainOffFromHere) changeImages('nav_bttns_'+No, 'TopNavFiles/nav_bttns_'+No+'.gif');
	}
}

function CloseCurrentMenu(Which) {
	CloseMenu(Which);
}

function OpenSubMenu(SubMenuName) {
	CloseSubMenu(CurrentSubMenu);
	CurrentSubMenu = SubMenuName;
	OnOff(SubMenuName, "visible");

	if (document.layers) {
		if (typeof(document.layers[CurrentMenu].document.images["arrow"+SubMenuName]) != "undefined") {
			document.layers[CurrentMenu].document.images["arrow"+SubMenuName].src = 'TopNavFiles/arrow_r.gif';
		}
		if (typeof(document.layers[CurrentMenu].document.images["leftarrow"+SubMenuName]) != "undefined") {
			document.layers[CurrentMenu].document.images["leftarrow"+SubMenuName].src = 'TopNavFiles/leftarrow_r.gif';
		}
	} else {
		if (typeof(document.images["arrow"+SubMenuName]) != "undefined") {
			document.images["arrow"+SubMenuName].src = 'TopNavFiles/arrow_r.gif';
		}
		if (typeof(document.images["leftarrow"+SubMenuName]) != "undefined") {
			document.images["leftarrow"+SubMenuName].src = 'TopNavFiles/leftarrow_r.gif';
		}
	}
}

function CloseSubMenu(SubMenuName) {
	OnOff(SubMenuName, "hidden");

	if (document.layers) {
		if (typeof(document.layers[CurrentMenu].document.images["arrow"+SubMenuName]) != "undefined") {
			document.layers[CurrentMenu].document.images["arrow"+SubMenuName].src = 'TopNavFiles/arrow.gif';
		}
		if (typeof(document.layers[CurrentMenu].document.images["leftarrow"+SubMenuName]) != "undefined") {
			document.layers[CurrentMenu].document.images["leftarrow"+SubMenuName].src = 'TopNavFiles/leftarrow.gif';
		}
	} else {
		if (typeof(document.images["arrow"+SubMenuName]) != "undefined") {
			document.images["arrow"+SubMenuName].src = 'TopNavFiles/arrow.gif';
		}
		if (typeof(document.images["leftarrow"+SubMenuName]) != "undefined") {
			document.images["leftarrow"+SubMenuName].src = 'TopNavFiles/leftarrow.gif';
		}
	}
}

function WriteAllStyleCSS() {
	var LP = (IE) ? 3: 0;
	var CurrMainMenusTop = MainMenusTop;

	document.write("<STYLE TYPE='text/css'> \n");
	for (var No=1; (typeof(MainMenusLeft[No]) != "undefined") && (No<=100); ++No) {
		if (MenuOptions[No][0] != 0) {
			if (!DownDirection) CurrMainMenusTop = MainMenusTop - (MenuOptions[No][0] * HEIGHT);
			document.write("#Menu"+No+" { position:absolute;left:"+MainMenusLeft[No]+";top:"+CurrMainMenusTop+";visibility:hidden;z-index:"+No+"0; } \n");
			for (t=1; (typeof(MenuOptions[No][t]) != "undefined") && (t<=100); ++t) {
				WriteSubMenuStyleCSS(No, t, MainMenusLeft[No]*1 + (SubMenuPos[No]*1)-LP ) 
			}
		}
	}
	document.write("</STYLE> \n");
}

function WriteSubMenuStyleCSS(Menu, Opc, Left) {
	var CurrMainMenusTop = MainMenusTop;

	var tmpArray = MenuOptions[Menu][Opc].split("|");
	var ThisDirectionUp = (typeof(tmpArray[3])!="undefined") ? true: false;

	if (!DownDirection) CurrMainMenusTop = SubMenusTop - (MenuOptions[Menu][0] * HEIGHT);
	var Top = CurrMainMenusTop + ((Opc-1) * HEIGHT);
	if (!DownDirection || ThisDirectionUp) Top -= (SubOptions[Menu][Opc][0] * HEIGHT);
	if (ThisDirectionUp) Top += HEIGHT;
	document.write("#Sub"+Menu+""+Opc+" { position:absolute;left:"+Left+";top:"+Top+";visibility:hidden;z-index:"+Menu+""+Opc+"; } \n");
	document.write("#DivOpcSub"+Menu+""+Opc+" {  } \n");

}


function WriteAllMenus() {
	var SubMenuCode = "";
	for (var No=1; (typeof(MainMenusLeft[No]) != "undefined") && (No<=100); ++No) {
		if (MenuOptions[No][0] != 0) {
			document.write("<div id='Menu"+No+"' > \n");
			SubMenuCode = WriteMainMenu(No);
			document.write("</div> \n");
			document.write(SubMenuCode);
		}
	}
}

function WriteMainMenu(Menu) {
	var SubMenuCode = "";
	var MenuContent = "";
	var LeftG = "";
	var ImgPos;
	var ArrowPrefix = "";
	var ImageName = "";
	var Sw = 0;

	for (t=1; (typeof(MenuOptions[Menu][t]) != "undefined") && (t<=100); ++t) {
		Opcion = MenuOptions[Menu][t].split("|");
		OpcText = (typeof(Opcion[0])!="undefined") ? Opcion[0]: "";
		LinkTo = (typeof(Opcion[1])!="undefined") ? Opcion[1]: "javascript:void(0)";
		Direction = (typeof(Opcion[2])!="undefined") ? Opcion[2]: "1";
		if (Direction == "2") {
			if (Sw == 0) Sw = 2;
			ArrowPrefix = "left";
			LeftG = (OpcText.toLowerCase().indexOf("arrow.gif") == -1) ? Space+LeftGuide: "";
		} else {
			if (Sw == 0) Sw = 1;
			ArrowPrefix = "";
			LeftG = LeftGuide;
		}

		ImageName = "";
		ImgPos = OpcText.toLowerCase().indexOf("arrow.gif")
		if (ImgPos != -1) {
			ImageName = " name='"+ArrowPrefix+"arrowSub"+Menu+""+t+"' "
			OpcText = OpcText.substr(0,ImgPos+10) + ImageName + OpcText.substr(ImgPos+11);
		}
		Ind = parseInt(Menu+""+t);
		AllOptions[Ind] = ""+LeftG+"<a class='MenuTxt_1' OnMouseOver=\"OpenSubMenu('Sub"+Menu+""+t+"');\" name='OpcSub"+Menu+""+t+"' id='OpcSub"+Menu+""+t+"' href='"+LinkTo+"'><font color='#000000' face='Arial'>"+OpcText+"</font></a>\n";
		AllOptions[Ind] = OptionWrap_A1 + AllOptions[Ind] + OptionWrap_B1
		MenuContent += AllOptions[Ind] + "\n";
		SubMenuCode += WriteSubMenus(Menu, t, SubMenuPos[Menu], Direction); // WRITE SUB OPTION MENUS
	}

	MenuContent = OptionsWraper_A1 + MenuContent + OptionsWraper_B1;

	document.writeln(DrawMenuShapeRight(MenuContent, Sw));

	return SubMenuCode;
}

function WriteSubMenus(Menu, Opc, Left, Direction) {
	var SubMenuCode = "";
	var SubMenuContent = "";
	SubMenuCode += "<div id='Sub"+Menu+""+Opc+"' onmouseover=OnOff(this.id,'visible'); onmouseout=OnOff(this.id,'hidden');> \n";
	if (typeof(SubOptions[Menu][Opc][1]) != "undefined") {
		for (var t=1; (typeof(SubOptions[Menu][Opc][t]) != "undefined") && (t<=100); ++t) {
			Opcion = SubOptions[Menu][Opc][t].split("|");
			OpcText = (typeof(Opcion[0])!="undefined") ? Opcion[0]: "";
			LinkTo = (typeof(Opcion[1])!="undefined") ? Opcion[1]: "javascript:void(0)";
			SubMenuContent +=  SubOptionWrap_A1 +"&nbsp;&nbsp;&nbsp;<a class='MenuTxt_1' href='"+LinkTo+"'><font color='#000000' face='Arial'>"+OpcText+"</font></a>\n" + SubOptionWrap_B1;
		}

		SubMenuContent = OptionsWraper_A1 + SubMenuContent + OptionsWraper_B1;

		if (Direction == "1") {
			SubMenuCode += DrawSubOptionRight(SubMenuContent);
		} else {
			SubMenuCode += DrawSubOptionLeft(SubMenuContent);
		}
	}
	SubMenuCode += "</div> \n";

	return SubMenuCode;
}

function TurnOn(obj) {
	if (IE) obj.style.backgroundColor='#DDE2FF';
}

function TurnOff(obj, No) {
	if (IE) obj.style.backgroundColor='#B4BDFE';
}

function DrawSubOptionRight(SubMenuContent) {
	var RetVal;

	RetVal =	"" + 
				"<table border='0' cellspacing='0' cellpadding='0'>  \n" +
				"  <tr>  \n" +
				"    <td width='2' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='2'></td>  \n" +
				"    <td width='1' valign='top' ><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='2' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td valign='top' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' bgcolor='#BDBDBD'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td width='1' valign='top'  bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='5' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#B4BDFE'>  \n" +
								SubMenuContent +  
				"     \n" +
				"    </td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td> \n" +
				"    <td valign='top' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='5'></td>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>    \n" +
				"</table>";

	return RetVal;
}

function DrawSubOptionLeft(SubMenuContent) {
	var RetVal = "";

	RetVal =	"" + 
				"<table border='0' cellspacing='0' cellpadding='0'>  \n" +
				"  <tr>  \n" +
				"    <td width='2' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='2'></td>  \n" +
				"    <td valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='2'></td>  \n" +
				"    <td width='1' valign='top' ><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='2' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#BDBDBD'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' bgcolor='#BDBDBD'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td width='1' valign='top'  bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='5' valign='top' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#BDBDBD'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#B4BDFE'>  \n" +
								SubMenuContent +  
				"     \n" +
				"    </td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td> \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' OnMouseOver='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);' OnMouseOut='CloseSubMenu(CurrentSubMenu);CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='5'></td>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"  </tr>    \n" +
				"</table>";

	return RetVal;
}

function DrawMenuShapeRight(MenuContent, Direction) {
	var RetVal = "";
	var cellpadding = (NS) ? "1": "0";

	RetVal =	"" + 
				"<table border='0' cellspacing='0' cellpadding='0'>  \n" +
				"  <tr>  \n" +
				"    <td width='2' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='1'></td>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='2'></td>  \n" +
				"    <td valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='2' height='2'></td>  \n" +
				"    <td width='1' valign='top' ><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='5' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='2'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='5' valign='top' OnMouseOver='CloseMenu(CurrentMenu);' OnMouseOut='CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#BDBDBD'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#B4BDFE'>  \n" +
								MenuContent +  
				"      \n" +
				"    </td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='5' valign='top' OnMouseOver='CloseMenu(CurrentMenu);' OnMouseOut='CloseMenu(CurrentMenu);' ><img border='0' src='TopNavFiles/1x1.gif' width='5' height='2'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='1' valign='top' bgcolor='#000000'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='5' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='2'></td>  \n" +
				"  </tr>  \n" +
				"  <tr>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td> \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td valign='top' OnMouseOver='CloseMenu(CurrentMenu);' OnMouseOut='CloseMenu(CurrentMenu);'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='5'></td>  \n" +
				"    <td width='1' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='1' height='1'></td>  \n" +
				"    <td width='5' valign='top'><img border='0' src='TopNavFiles/1x1.gif' width='5' height='2'></td>  \n" +
				"  </tr>    \n" +

				"</table>";

	return RetVal;
}

		function changeprogram()
	{
		var aKey ;
		var aValue ;
		var myEle ;
		var x ;

		var sPrg = document.frmfunddetails.prg.options[document.frmfunddetails.prg.selectedIndex].value;		
		
		if (sPrg == 14 || sPrg == 15)
		{
			aKey = new Array("---Select---", 
									"Performance Data", 
									"Risk Analysis", 
									"Statistics Since Inception", 
									"12 Month Rolling Returns", 
									"Sector Risk Allocation Averages", 
									"Sector Returns", 
									//"Annualized Rates of Return", 
									"Growth of $1,000 Since Inception", 
									"Annual Rates of Return",
									"Monthly Rates of Return");

			aValue = new Array("gotop", 
									"pr5", 
									"pr5", 
									"pr5", 
									"r12", 
									"sec", 
									"sec", 
									//"grow", 
									"grow", 
									"mrr",
									"mrr");
        }
        else if (sPrg == 16) {
            aKey = new Array("---Select---",
									        "Performance Data",
									        //"Risk Analysis",
									        "Statistics Since Inception",
									        //"12 Month Rolling Returns",
									        "Sector Risk Allocation Averages",
									        "Sector Returns",
                                            //"Annualized Rates of Return", 
									        //"Growth of $1,000 Since Inception",
									        //"Annual Rates of Return",
									        "Monthly Rates of Return");

            aValue = new Array("gotop",
									        "pr5",
									        //"pr5",
									        "pr5",
									        //"r12",
									        "sec",
									        "sec",
            //"grow", 
									        //"grow",
									        //"mrr",
									        "mrr");
        }
		else if (sPrg == 17)
		{
			aKey = new Array("---Select---", 
									"Performance Data", 
									//"Risk Analysis", 
									"Statistics Since Inception", 
									//"12 Month Rolling Returns", 
									"Sector Risk Allocation Averages", 
									"Sector Returns", 
									//"Annualized Rates of Return", 
									//"Growth of $1,000 Since Inception", 
									"Monthly Rates of Return");

			aValue = new Array("gotop", 
									"pr5", 
									//"pr5", 
									"pr5", 
									//"r12", 
									"sec", 
									"sec", 
									//"grow", 
									//"grow", 
									"mrr");
		}
		else if (sPrg == 18)
		{
			aKey = new Array("---Select---", 
									"Performance Data", 
									"Risk Analysis", 
									"Statistics Since Inception", 
									"12 Month Rolling Returns", 
									//"Sector Risk Allocation Averages", 
									//"Sector Returns", 
									//"Annualized Rates of Return", 
									"Growth of $1,000 Since Inception", 
									"Annual Rates of Return",
									"Monthly Rates of Return");

			aValue = new Array("gotop", 
									"pr5", 
									"pr5", 
									"pr5", 
									"r12", 
									//"sec", 
									//"sec", 
									//"grow", 
									"grow", 
									"mrr",
									"mrr");
		}
		else
		{
			aKey = new Array("---Select---", "Performance Data", "Risk Analysis", "5-Year Statistics", "12 Month Rolling Returns", "Sector Risk Allocation Averages", "Sector Returns", "Annualized Rates of Return", "Growth of $1,000 Since Inception", "Annual Rates of Return", "Monthly Rates of Return");
			aValue = new Array("gotop", "pr5", "pr5", "pr5", "r12", "sec", "sec", "grow", "grow", "mrr", "mrr");

		}

		for (var q=document.frmfunddetails.cat.options.length;q>=0;q--) document.frmfunddetails.cat.options[q]=null;
		
		for ( x = 0 ; x < aKey.length  ; x++ ) {
		  myEle = document.createElement("option") ;
		  myEle.setAttribute('value',aValue[x]);
		  var txt = document.createTextNode(aKey[x]);
		  myEle.appendChild(txt)
		  document.frmfunddetails.cat.appendChild(myEle)
		}	
	}