// browser detect var IE = (document.all) ? 1 : 0; var DOM = ((document.getElementById) && !(IE)) ? 1 : 0; var NN = (document.layers) ? 1 : 0; // set up DOM aliases if (IE){ var d1 = "document.all."; var d2 = ".style.visibility"; } else if (DOM){ var d1 = "document.getElementById('"; var d2 = "').style.visibility"; } else if (NN){ var d1 = "document.layers."; var d2 = ".visibility"; } // Define Sub-Menus - Gotta enter the number of submenus that you want to make droppers for. var numberofsubs = 5; // Enter the number of Subs you have. menus = new Array(numberofsubs); menus_toppos = new Array(numberofsubs); menus_leftpos = new Array(numberofsubs); menus_border = new Array(numberofsubs); menus_class = new Array(numberofsubs); menus_classcat = new Array(numberofsubs); numberofitems = new Array(numberofsubs); // Menu 0 - Defined this Menu menus[0] = "aboutus"; menus_toppos[0] = 108; menus_leftpos[0] = 111; menus_border[0] = 1; menus_class[0] = "dropmenu"; menus_classcat[0] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[0] = 6; items0names = new Array(numberofitems[0]); items0links = new Array(numberofitems[0]); items0names[0] = "THE LANDING"; items0links[0] = "/about/index.cfm"; items0names[1] = "MISSION / VISION"; items0links[1] = "/about/mission.cfm"; // items0names[-] = "VISION"; // items0links[-] = "/about/vision.cfm"; // items0names[-] = "PARTNERS"; // items0links[-] = "/about/partners.cfm"; items0names[2] = "BOARD"; items0links[2] = "/about/board.cfm"; // items0names[-] = "HISTORY"; // items0links[-] = "/about/history.cfm"; items0names[3] = "CAMPAIGNS"; items0links[3] = "1"; items0names[4] = "GIVE WHERE YOU LIVE"; items0links[4] = "/community/ecepc.cfm"; items0names[5] = "OUR SPONSORS"; items0links[5] = "/about/sponsors.cfm"; // Menu 1 - Defined this Menu menus[1] = "community"; menus_toppos[1] = 108; menus_leftpos[1] = 207; menus_border[1] = 1; menus_class[1] = "dropmenu"; menus_classcat[1] = "dropmenucat"; numberofitems[1] = 5; items1names = new Array(numberofitems[1]); items1links = new Array(numberofitems[1]); items1names[0] = "EXPECTATIONS"; items1links[0] = "1"; items1names[1] = "GOALS"; items1links[1] = "/community/index.cfm"; // items1names[-] = "CAMPAIGNS"; // items1links[-] = "1"; // items1names[-] = "EVERY CHILD EVERY PROMISE"; // items1links[-] = "/community/ecepc.cfm"; items1names[2] = "COMMUNITY ACTION INITIATIVES"; items1links[2] = "1"; items1names[3] = "COMMUNITY OUTREACH"; items1links[3] = "/community/food_bank.cfm"; // items1names[-] = "PAINT THE TOWN"; // items1links[-] = "/community/paint_the_town.cfm"; items1names[4] = "GLOBAL AID"; items1links[4] = "/community/global_aid.cfm"; // items1names[-] = "HABITAT FOR HUMANITY"; // items1links[-] = "1"; // items1names[-] = "LOCAL CHAPTER"; // items1links[-] = "/community/habitat/index.cfm"; // Menu 2 - Defined this Menu menus[2] = "thearts"; menus_toppos[2] = 108; menus_leftpos[2] = 303; menus_border[2] = 1; menus_class[2] = "dropmenu"; menus_classcat[2] = "dropmenucat"; numberofitems[2] = 4; items2names = new Array(numberofitems[2]); items2links = new Array(numberofitems[2]); items2names[0] = "DANCE & DRAMA"; items2links[0] = "1"; items2names[1] = "EAGLE PERFORMING ARTS CENTER"; items2links[1] = "/performing_arts/index.cfm"; // items2names[2] = "COMMUNITY THEATER"; // items2links[2] = "1"; // items2names[3] = "MISSOULA CHILDRENS THEATER"; // items2links[3] = "/theater/index.cfm"; // items2names[4] = "LANDING ART INSTITUTE"; // items2links[4] = "1"; // items2names[5] = "ABOUT THE INSTITUTE"; // items2links[5] = "/art_institute/about.cfm"; // items2names[6] = "MISSION & VISION"; // items2links[6] = "/art_institute/mission.cfm"; items2names[2] = "ART PROGRAMS"; items2links[2] = "1"; items2names[3] = "COMMUNITY ART PROGRAMS"; items2links[3] = "/art_institute/community.cfm"; // Menu 3 - Defined this Menu menus[3] = "education"; menus_toppos[3] = 108; menus_leftpos[3] = 399; menus_border[3] = 1; menus_class[3] = "dropmenu"; menus_classcat[3] = "dropmenucat"; numberofitems[3] = 4; items3names = new Array(numberofitems[3]); items3links = new Array(numberofitems[3]); items3names[0] = "FAMILY CLASSES"; items3links[0] = "1"; items3names[1] = "HEALTHY COMMUNITY / HEALTHY YOUTH"; items3links[1] = "/education/healthy_community_healthy_youth.cfm"; // items3names[3] = "MISSION & VISION"; // items3links[3] = "/education/mission.cfm"; // items3names[4] = "PROGRAMS"; // items3links[4] = "/education/programs.cfm"; // items3names[5] = "BIRTHING CLASSES"; // items3links[5] = "1"; // items3names[6] = "CONFIDENT BIRTHING™"; // items3links[6] = "/education/confident-birthing.cfm"; // items3names[7] = "ENDORSEMENTS"; // items3links[7] = "/education/confident-birthing-endorsements.cfm"; items3names[2] = "COMMUNITY CLASSES"; items3links[2] = "1"; items3names[3] = "COMMUNITY EDUCATION"; items3links[3] = "/education/communityed.cfm"; // Menu 4 - Defined this Menu menus[4] = "youth"; menus_toppos[4] = 108; menus_leftpos[4] = 495; menus_border[4] = 1; menus_class[4] = "dropmenu"; menus_classcat[4] = "dropmenucat"; numberofitems[4] = 9; items4names = new Array(numberofitems[4]); items4links = new Array(numberofitems[4]); items4names[0] = "CAMPAIGNS"; items4links[0] = "1"; items4names[1] = "AMERICA'S PROMISE"; items4links[1] = "/about/americas_promise.cfm"; items4names[2] = "AFTER SCHOOL PROGRAM"; items4links[2] = "1"; items4names[3] = "PROGRAM UPDATES"; items4links[3] = "/youth/after_school_program.cfm"; items4names[4] = "EAGLE TEEN CENTER"; items4links[4] = "1"; items4names[5] = "TEEN CENTER HOME PAGE"; items4links[5] = "/teen_center/"; items4names[6] = "MISSION & VISION"; items4links[6] = "/teen_center/mission.cfm"; items4names[7] = "PHILOSOPHY"; items4links[7] = "/teen_center/teen_philosophy.cfm"; items4names[8] = "SUMMER DAY CAMP"; items4links[8] = "/youth/summer_daycamp.cfm"; //items4names[8] = "VOCATIONAL INITIATIVE"; //items4links[8] = "/youth/vocational.cfm"; // items4names[8] = "SUMMER DAY CAMP"; // items4links[8] = "1"; // items4names[9] = "DAY CAMP HOME PAGE"; // items4links[9] = "/youth/summer_day_camp2007.cfm"; // items4names[10] = "SUMMER DAY CAMP NEWS"; // items4links[10] = "/youth/summer_day_camp_news.cfm"; // items4names[11] = "SUMMER DAY CAMP SCHEDULE"; // items4links[11] = "/youth/summer_day_camp_sched.cfm"; // Build Subs for (i = 0; i < menus.length; i++){ document.write("
") } // hideAll - Hides all items in navArray function hideNav(){ for (i = 0; i < menus.length; i++){ eval(d1 + menus[i] + d2 + "= 'hidden'"); } } // showHide() actually does the reveals/hides function showHide(which, direction){ if (direction != 'hide') direction = 'visible'; else direction = 'hidden'; hideNav(); // turn the selected div on eval(d1 + which + d2 + "= '" + direction + "'"); }