function Start(page) { OpenWin = this.open(page, "CtrlWindow", "top=60,left=70, width=800, height=650, buttons=yes, scrollbars=yes, location=no, menubar=no, resizable=yes, status=yes, directories=no, toolbar=no"); } /*TOP MENU */ /* Initialize and render the MenuBar when its elements are ready to be scripted. */ YAHOO.util.Event.onContentReady("nav_top_innerwrapper", function () { /* Instantiate a MenuBar: The first argument passed to the constructor is the id of the element in the page representing the MenuBar; the second is an object literal of configuration properties. */ var oMenuBar = new YAHOO.widget.MenuBar("nav_top_innerwrapper", { autosubmenudisplay: true, hidedelay: 750, lazyload: true }); /* Define an array of object literals, each containing the data necessary to create a submenu. */ var aSubmenuData = [ { id: "ixx77231", itemdata: [ { text: "Grand Jury Reports 2009-2010", url: "/GrandJury/GrandJuryReports20092010.html" }, { text: "Grand Jury Reports 2008-2009", url: "/GrandJury/GrandJuryReports20082009.html" }, { text: "Grand Jury Reports 2007-2008", url: "/GrandJury/GrandJuryReports20072008.html" }, { text: "Grand Jury Reports 2006-2007", url: "/GrandJury/GrandJuryReports20062007.html" }, { text: "Grand Jury Final Report 2007", url: "/GrandJury/GrandJuryFinalReport2007.html" }, { text: "Grand Jury Reports 2005-2006", url: "/GrandJury/GrandJuryReports20052006.html" }, { text: "Grand Jury Final Report 2005-2006", url: "/GrandJury/GrandJuryFinalReport20052006.html" }, { text: "Grand Jury Reports 2004-2005", url: "/GrandJury/GrandJuryReports20042005.html" }, { text: "Grand Jury Reports 2003-2004", url: "/GrandJury/GrandJuryReports20032004.html" }, { text: "Grand Jury Reports 2002-2003", url: "/GrandJury/GrandJuryReports20022003.html" } ] }, { id: "ixx77428", itemdata: [ ] }, { id: "ixx77234", itemdata: [ ] }, { id: "ixx382", itemdata: [ ] }, { id: "ixx380", itemdata: [ ] }, { id: "ixx220", itemdata: [ { text: "Adoptions Court", url: "/Courts/AdoptionsCourt.html" }, { text: "Civil Court / ADR Program", url: "/Courts/CivilCourtADRProgram.html" }, { text: "Criminal Court", url: "/Courts/CriminalCourt.html" }, { text: "Drug Courts", url: "/Courts/DrugCourts.html" }, { text: "Family Law", url: "/Courts/FamilyLaw.html" }, { text: "Probate & Conservatorship/Guardianship", url: "/Courts/ProbateConservatorshipGuardianship.html" }, { text: "Small Claims", url: "/Courts/SmallClaims.html" }, { text: "Traffic", url: "/Courts/Traffic.html" } ] } ]; /* Subscribe to the "beforerender" event, adding a submenu to each of the items in the MenuBar instance. */ oMenuBar.subscribe("beforeRender", function () { if (this.getRoot() == this) { this.getItem(0).cfg.setProperty("submenu", aSubmenuData[0]); this.getItem(5).cfg.setProperty("submenu", aSubmenuData[5]); } }); /* Call the "render" method with no arguments since the markup for this MenuBar instance is already exists in the page. */ oMenuBar.render(); }); /* SIDE MENU */ /* Initialize and render the Menu when its elements are ready to be scripted. */ YAHOO.util.Event.onContentReady("nav_side", function () { /* Instantiate a Menu: The first argument passed to the constructor is the id of the element in the page representing the Menu; the second is an object literal of configuration properties. */ var oMenu = new YAHOO.widget.Menu("nav_side", { position: "static", hidedelay: 750, lazyload: true }); /* Define an array of object literals, each containing the data necessary to create a submenu. */ var aSubmenuData = [ { id: "ixx223", itemdata: [ { text: 'General Information', url: '/GeneralInformation/' }, { text: "Administration", url: "/GeneralInformation/Administration.html" } , { text: "Community Outreach & Strategic Plan", url: "/GeneralInformation/CommunityOutreachStrategicPlan.html" } , { text: "Judicial Directory", url: "/GeneralInformation/JudicialDirectory.html" } , { text: "Court Locations, Parking & Access", url: "/GeneralInformation/CourtLocationsParkingAccess.html" } , { text: "Press Releases & Public Notices", url: "/GeneralInformation/PressReleasesPublicNotices.html" } , { text: "Court Public Wireless Access", url: "/GeneralInformation/CourtPublicWirelessAccess.html" } , { text: "Accommodations for Persons with Disabilities Using Court Facilities", url: "/GeneralInformation/AccommodationsforPersonswithDisabilitiesUsingCourtFacilities.html" } , { text: "Court Holiday Schedule", url: "/GeneralInformation/CourtHolidaySchedule.html" } , { text: "Request for Proposals", url: "/GeneralInformation/RequestforProposals.html" } ] } , { id: "ixx77232", itemdata: [ { text: 'Daily Calendar', url: '/CourtCalendars/' }, { text: "Civil Setting Guide", url: "/CourtCalendars/CivilSettingGuide.html" } , { text: "Criminal Setting Guide", url: "/CourtCalendars/CriminalSettingGuide.html" } , { text: "Family Law Setting Guide", url: "/CourtCalendars/FamilyLawSettingGuide.html" } , { text: "Juvenile Setting Guide", url: "/CourtCalendars/JuvenileSettingGuide.html" } , { text: "Traffic Setting Guide", url: "/CourtCalendars/TrafficSettingGuide.html" } ] } , { id: "ixx78700", itemdata: [ ] } , { id: "ixx393", itemdata: [ ] } , { id: "ixx225", itemdata: [ { text: "Adoptions Court", url: "/Courts/AdoptionsCourt.html" } , { text: "Civil Court / ADR Program", url: "/Courts/CivilCourtADRProgram.html" } , { text: "Criminal Court", url: "/Courts/CriminalCourt.html" } , { text: "Drug Courts", url: "/Courts/DrugCourts.html" } , { text: "Family Law", url: "/Courts/FamilyLaw.html" } , { text: "Juvenile Court", url: "/Courts/JuvenileCourt.html" } , { text: "Small Claims", url: "/Courts/SmallClaims.html" } , { text: "Probate & Conservatorship/Guardianship", url: "/Courts/ProbateConservatorshipGuardianship.html" } , { text: "Traffic", url: "/Courts/Traffic.html" } , { text: "Solano Legal Access Center (SLAC) and Family Law Facilitator", url: "/Courts/SolanoLegalAccessCenterSLACandFamilyLawFacilitator.html" } ] } , { id: "ixx394", itemdata: [ ] } , { id: "ixx78691", itemdata: [ ] } ]; // Subscribe to the Menu instance's "beforeRender" event oMenu.subscribe("beforeRender", function () { if (this.getRoot() == this) { this.getItem(0).cfg.setProperty("submenu", aSubmenuData[0]); this.getItem(1).cfg.setProperty("submenu", aSubmenuData[1]); this.getItem(4).cfg.setProperty("submenu", aSubmenuData[4]); } }); /* Call the "render" method with no arguments since the markup for this Menu instance is already exists in the page. */ oMenu.render(); });