function init()
{
    var docwidth = 0, docheight = 0;
    //opera Netscape 6 Netscape 4x Mozilla 
    if (window.innerWidth || window.innerHeight){ 
    docwidth = window.innerWidth; 
    docheight = window.innerHeight; 
    } 
    //IE Mozilla 
    if (document.body.clientWidth || document.body.clientHeight){ 
    docwidth = document.body.clientWidth; 
    docheight = document.body.clientHeight; 
    }     
    // 712 pixels is the content area 
    var menuindent = ((docwidth - 712) / 2) + 10;
	//Main Menu items:
	menus[0] = new menu(45, "horizontal", menuindent, 320, -2, -2, "transparent", "transparent", "Verdana,Helvetica", 9, 
		"bold", "bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-down1.gif:images/tri-down2.gif", false, true, true, true, 12, true, 4, 4, "black");
	menus[0].addItem("index.html", "", 137, "center", "Home", 0);
	menus[0].addItem("aboutus.html", "", 137, "center", "About Us", 1);
	menus[0].addItem("carybrisbane.html", "", 137, "center", "Cary/Brisbane", 2);
	menus[0].addItem("survey.html", "", 137, "center", "Residents Speak Out", 3);
    menus[0].addItem("h2o_soln.html", "", 137, "center", "LEGO H20 Solutions", 4);

//Sub Menu for 2nd Main Menu Item ("About Us"):
	menus[1] = new menu(200, "vertical", 0, 0, -5, -5, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, true, 6, true, 4, 4, "black");
	menus[1].addItem("aboutus.html", "", 22, "left", "About Us", 0);
    menus[1].addItem("aboutus/videos.html","", 22, "left", "Our Videos", 0);
	menus[1].addItem("aboutus/usopen.html","", 22, "left", "US Open", 0);
	menus[1].addItem("aboutus/fll.html", "", 22, "left", "FIRST LEGO League", 0);
	menus[1].addItem("aboutus/ldd.html", "", 22, "left", "LEGO Digital Designer", 0);
	menus[1].addItem("aboutus/thankyou.html", "", 22, "left", "Thank You!!", 0);
	
//Sub Menu for 3rd Main Menu Item ("Cary/Brisbane"):
	menus[2] = new menu(200, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
	menus[2].addItem("carybrisbane.html", "", 22, "left", "Why Cary/Brisbane", 0);
	menus[2].addItem("cary_brisbane/worldwater.html", "", 22, "left", "World Situation", 0);
	menus[2].addItem("cary_brisbane/cary.html", "", 22, "left", "Cary, NC", 0);
	menus[2].addItem("cary_brisbane/brisbane.html", "", 22, "left", "Brisbane, Australia", 0);

//Sub Menu for Sub Menu "Residents Speak Out":
	menus[3] = new menu(250, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, false, 0, true, 4, 4, "black");
	menus[3].addItem("survey.html", "", 22, "left", "Respondents Speak Out", 0);
    menus[3].addItem("survey/surveyparticipants.html", "", 22, "left", "Survey Participants", 0);
    menus[3].addItem("survey/kitchen.html", "", 22, "left", "Survey: Kitchen", 0);
	menus[3].addItem("survey/bathroom.html", "", 22, "left", "Survey: Bathroom", 0);
	menus[3].addItem("survey/outside.html", "", 22, "left", "Survey: Outside", 0);
	menus[3].addItem("survey/graymeter.html", "", 22, "left", "Survey: Gray H2O/Meters", 0);
	menus[3].addItem("survey/community.html", "", 22, "left", "Survey: Community", 0);
	menus[3].addItem("survey/future.html", "", 22, "left", "Survey: The Future", 0);
    menus[3].addItem("survey/comments.html", "", 22, "left", "Comments/Feedback", 0);
	
//Sub Menu for 4th Main Menu Item Lego H20 Solutions:
	menus[4] = new menu(190, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, ">>", false, true, false, false, 0, true, 4, 4, "black");
	menus[4].addItem("h2o_soln.html", "", 22, "left", "LEGO H20 Solutions", 0);
	menus[4].addItem("water_soln/kitchen.html", "", 22, "left", "Kitchen", 0);
	menus[4].addItem("water_soln/bathroom.html", "", 22, "left", "Bathroom", 0);
	menus[4].addItem("water_soln/outside.html", "", 22, "left", "Outside", 0);
	menus[4].addItem("water_soln/rainwater.html", "", 22, "left", "Rainwater Tanks", 0);
	menus[4].addItem("water_soln/dewharvesting.html", "", 22, "left", "Dewharvesting", 0);
	menus[4].addItem("water_soln/nanofiltration.html", "", 22, "left", "Nanofiltration", 0);

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.

function initsub()
{
    var docwidth = 0, docheight = 0;
    //opera Netscape 6 Netscape 4x Mozilla 
    if (window.innerWidth || window.innerHeight){ 
    docwidth = window.innerWidth; 
    docheight = window.innerHeight; 
    } 
    //IE Mozilla 
    if (document.body.clientWidth || document.body.clientHeight){ 
    docwidth = document.body.clientWidth; 
    docheight = document.body.clientHeight; 
    }     
    // 712 pixels is the content area 
    var menuindent = ((docwidth - 712) / 2) + 10;
	//Main Menu items:
	menus[0] = new menu(45, "horizontal", menuindent, 180, -2, -2, "transparent", "transparent", "Verdana,Helvetica", 9, 
		"bold", "bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-down1.gif:images/tri-down2.gif", false, true, true, true, 12, true, 4, 4, "black");
	menus[0].addItem("index.html", "", 137, "center", "Home", 0);
	menus[0].addItem("aboutus.html", "", 137, "center", "About Us", 1);
	menus[0].addItem("carybrisbane.html", "", 137, "center", "Cary/Brisbane", 2);
	menus[0].addItem("survey.html", "", 137, "center", "Residents Speak Out", 3);
    menus[0].addItem("h2o_soln.html", "", 137, "center", "LEGO H20 Solutions", 4);

//Sub Menu for 2nd Main Menu Item ("About Us"):
	menus[1] = new menu(200, "vertical", 0, 0, -5, -5, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, true, 6, true, 4, 4, "black");
	menus[1].addItem("aboutus.html", "", 22, "left", "About Us", 0);
    menus[1].addItem("aboutus/videos.html","", 22, "left", "Our Videos", 0);
	menus[1].addItem("aboutus/usopen.html","", 22, "left", "US Open", 0);
    menus[1].addItem("aboutus/fll.html", "", 22, "left", "FIRST LEGO League", 0);
	menus[1].addItem("aboutus/ldd.html", "", 22, "left", "LEGO Digital Designer", 0);
	menus[1].addItem("aboutus/thankyou.html", "", 22, "left", "Thank You!!", 0);
	
//Sub Menu for 3rd Main Menu Item ("Cary/Brisbane"):
	menus[2] = new menu(200, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
	menus[2].addItem("carybrisbane.html", "", 22, "left", "Why Cary/Brisbane", 0);
    menus[2].addItem("cary_brisbane/worldwater.html", "", 22, "left", "World Situation", 0);
	menus[2].addItem("cary_brisbane/cary.html", "", 22, "left", "Cary, NC", 0);
	menus[2].addItem("cary_brisbane/brisbane.html", "", 22, "left", "Brisbane, Australia", 0);

//Sub Menu for Sub Menu "Residents Speak Out":
	menus[3] = new menu(250, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, false, 0, true, 4, 4, "black");
	menus[3].addItem("survey.html", "", 22, "left", "Respondents Speak Out", 0);
	menus[3].addItem("survey/surveyparticipants.html", "", 22, "left", "Survey Participants", 0);
    menus[3].addItem("survey/kitchen.html", "", 22, "left", "Survey: Kitchen", 0);
	menus[3].addItem("survey/bathroom.html", "", 22, "left", "Survey: Bathroom", 0);
	menus[3].addItem("survey/outside.html", "", 22, "left", "Survey: Outside", 0);
	menus[3].addItem("survey/graymeter.html", "", 22, "left", "Survey: Gray H2O/Meters", 0);
	menus[3].addItem("survey/community.html", "", 22, "left", "Survey: Community", 0);
	menus[3].addItem("survey/future.html", "", 22, "left", "Survey: The Future", 0);
    menus[3].addItem("survey/comments.html", "", 22, "left", "Comments/Feedback", 0);
	
//Sub Menu for 4th Main Menu Item Lego H20 Solutions:
	menus[4] = new menu(190, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, ">>", false, true, false, false, 0, true, 4, 4, "black");
	menus[4].addItem("h2o_soln.html", "", 22, "left", "LEGO H20 Solutions", 0);
    menus[4].addItem("water_soln/kitchen.html", "", 22, "left", "Kitchen", 0);
	menus[4].addItem("water_soln/bathroom.html", "", 22, "left", "Bathroom", 0);
	menus[4].addItem("water_soln/outside.html", "", 22, "left", "Outside", 0);
	menus[4].addItem("water_soln/rainwater.html", "", 22, "left", "Rainwater Tanks", 0);
	menus[4].addItem("water_soln/dewharvesting.html", "", 22, "left", "Dewharvesting", 0);
	menus[4].addItem("water_soln/nanofiltration.html", "", 22, "left", "Nanofiltration", 0);

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.


function initsubsub()
{
    var docwidth = 0, docheight = 0;
    //opera Netscape 6 Netscape 4x Mozilla 
    if (window.innerWidth || window.innerHeight){ 
    docwidth = window.innerWidth; 
    docheight = window.innerHeight; 
    } 
    //IE Mozilla 
    if (document.body.clientWidth || document.body.clientHeight){ 
    docwidth = document.body.clientWidth; 
    docheight = document.body.clientHeight; 
    }     
    // 712 pixels is the content area 
    var menuindent = ((docwidth - 712) / 2) + 10;
	//Main Menu items:
	menus[0] = new menu(45, "horizontal", menuindent, 180, -2, -2, "transparent", "transparent", "Verdana,Helvetica", 9, 
		"bold", "bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-down1.gif:images/tri-down2.gif", false, true, true, true, 12, true, 4, 4, "black");
	menus[0].addItem("../index.html", "", 137, "center", "Home", 0);
	menus[0].addItem("../aboutus.html", "", 137, "center", "About Us", 1);
	menus[0].addItem("../carybrisbane.html", "", 137, "center", "Cary/Brisbane", 2);
	menus[0].addItem("../survey.html", "", 137, "center", "Residents Speak Out", 3);
    menus[0].addItem("../h2o_soln.html", "", 137, "center", "LEGO H20 Solutions", 4);

//Sub Menu for 2nd Main Menu Item ("About Us"):
	menus[1] = new menu(200, "vertical", 0, 0, -5, -5, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, true, 6, true, 4, 4, "black");
	menus[1].addItem("../aboutus.html", "", 22, "left", "About Us", 0);
    menus[1].addItem("../aboutus/videos.html","", 22, "left", "Our Videos", 0);
	menus[1].addItem("../aboutus/usopen.html","", 22, "left", "US Open", 0);
    menus[1].addItem("../aboutus/fll.html", "", 22, "left", "FIRST LEGO League", 0);
	menus[1].addItem("../aboutus/ldd.html", "", 22, "left", "LEGO Digital Designer", 0);
	menus[1].addItem("../aboutus/thankyou.html", "", 22, "left", "Thank You!!", 0);
	
//Sub Menu for 3rd Main Menu Item ("Cary/Brisbane"):
	menus[2] = new menu(200, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", 
		"bold", "black", "white", 1, "#2e8bc4", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, false, false, 0, true, 4, 4, "black");
	menus[2].addItem("../carybrisbane.html", "", 22, "left", "Why Cary/Brisbane", 0);
    menus[2].addItem("../cary_brisbane/worldwater.html", "", 22, "left", "World Situation", 0);
	menus[2].addItem("../cary_brisbane/cary.html", "", 22, "left", "Cary, NC", 0);
	menus[2].addItem("../cary_brisbane/brisbane.html", "", 22, "left", "Brisbane, Australia", 0);

//Sub Menu for Sub Menu "Residents Speak Out":
	menus[3] = new menu(250, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, 62, false, true, false, false, 0, true, 4, 4, "black");
	menus[3].addItem("../survey.html", "", 22, "left", "Respondents Speak Out", 0);
    menus[3].addItem("../survey/surveyparticipants.html", "", 22, "left", "Survey Participants", 0);
    menus[3].addItem("../survey/kitchen.html", "", 22, "left", "Survey: Kitchen", 0);
	menus[3].addItem("../survey/bathroom.html", "", 22, "left", "Survey: Bathroom", 0);
	menus[3].addItem("../survey/outside.html", "", 22, "left", "Survey: Outside", 0);
	menus[3].addItem("../survey/graymeter.html", "", 22, "left", "Survey: Gray H2O/Meters", 0);
	menus[3].addItem("../survey/community.html", "", 22, "left", "Survey: Community ", 0);
	menus[3].addItem("../survey/future.html", "", 22, "left", "Survey: The Future ", 0);
    menus[3].addItem("../survey/comments.html", "", 22, "left", "Comments/Feedback", 0);
	
//Sub Menu for 4th Main Menu Item Lego H20 Solutions:
	menus[4] = new menu(190, "vertical", 0, 0, 0, 0, "transparent", "transparent", "Verdana,Helvetica", 9, "bold", "bold", "black", "white", 1, "#2e8bc4", 2, ">>", false, true, false, false, 0, true, 4, 4, "black");
	menus[4].addItem("../h2o_soln.html", "", 22, "left", "LEGO H2O Solutions", 0);
    menus[4].addItem("../water_soln/kitchen.html", "", 22, "left", "Kitchen", 0);
	menus[4].addItem("../water_soln/bathroom.html", "", 22, "left", "Bathroom", 0);
	menus[4].addItem("../water_soln/outside.html", "", 22, "left", "Outside", 0);
	menus[4].addItem("../water_soln/rainwater.html", "", 22, "left", "Rainwater Tanks", 0);
	menus[4].addItem("../water_soln/dewharvesting.html", "", 22, "left", "Dewharvesting", 0);
	menus[4].addItem("../water_soln/nanofiltration.html", "", 22, "left", "Nanofiltration", 0);

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.