// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. // but you can experiment with effect on loadtime. if (rsDropDown.isSupported()) { var ms = new rsDropDownSet(rsDropDown.direction.down, 0, 0, rsDropDown.reference.bottomLeft); var menu1 = ms.addMenu(document.getElementById("menu1")); var menu2 = ms.addMenu(document.getElementById("menu2")); menu2.addItem(" clery & staff", "clergy.html"); menu2.addItem(" announcements", "events.html"); menu2.addItem(" parish life", ""); menu2.addItem(" parish history", "history.html"); menu2.addItem(" life of st spiridon", "stspiridon.html"); menu2.addItem(" directions", "directions.html"); // submenu example var subMenu1 = menu2.addMenu(menu2.items[2]); subMenu1.addItem("Photos of Church Life", "photos.html"); subMenu1.addItem("Boy Scouts", "scouting.html"); subMenu1.addItem("Cookbook", "cookbook.html"); var menu3 = ms.addMenu(document.getElementById("menu3")); menu3.addItem(" monthly calendar", "calendar.htm"); menu3.addItem(" general schedule", "genschedule.html"); menu3.addItem(" special events", "events.html"); var menu4 = ms.addMenu(document.getElementById("menu4")); menu4.addItem(" orthodox worship", ""); menu4.addItem(" Q & A", "qanda.html"); menu4.addItem(" prayers", "prayers.html"); menu4.addItem(" fasting", "fasting.html"); // submenu example var subMenu1 = menu4.addMenu(menu4.items[0]); subMenu1.addItem("introduction", "worshipintro.html"); subMenu1.addItem("first visit?", "firstvisit.html"); subMenu1.addItem("worshiping the trinity", "trinity.html"); subMenu1.addItem("jesus christ", "christ.html"); subMenu1.addItem("eucharist", "eucharist.html"); subMenu1.addItem("theotokos", "theotokos.html"); var menu5 = ms.addMenu(document.getElementById("menu5")); menu5.addItem(" a parish video", "video.html"); menu5.addItem(" orthodox music", "music.html"); menu5.addItem(" photos", "photos.html"); menu5.addItem(" downloads", "downloads.html"); // submenu example var subMenu1 = menu5.addMenu(menu5.items[3]); subMenu1.addItem("Divine Liturgy", "liturgy.html"); menu5.addItem(" sermons", ""); var subMenu1 = menu5.addMenu(menu5.items[4]); subMenu1.addItem("bless my enemies", "bless.html"); subMenu1.addItem("the repose of st john", "stjohn.html"); subMenu1.addItem("paschal homily of st john", "paschalhomily.html"); subMenu1.addItem("rich man & lazarus", "sermon_richmanlazarus.html"); var menu6 = ms.addMenu(document.getElementById("menu6")); var menu7 = ms.addMenu(document.getElementById("menu7")); menu7.addItem(" contact info", "contact.html"); menu7.addItem(" directions", "directions.html"); //================================================================================================== // write drop downs into page //================================================================================================== // this method writes all the HTML for the menus into the page with document.write(). It must be // called within the body of the HTML page. //================================================================================================== rsDropDown.renderAll(); }