
            /*
                 Initialize and render the MenuBar when its elements are ready 
                 to be scripted.
            */

            YAHOO.util.Event.onContentReady("topMenu", 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("topMenu", { 
                                                            autosubmenudisplay: true, 
                                                            hidedelay: 250, 
                                                            lazyload: true });

                /*
                     Define an array of object literals, each containing 
                     the data necessary to create a submenu.
                */

                var aSubmenuData = [

    {
      id: "newspages",
      itemdata: [{text: "News Pages", url: "newsPages/news_index.html"}]
    },
    {
          id: "familytrees",
          itemdata: [
            {
              text: "Official Family Tree",
              url: "http://familytreemaker.genealogy.com/users/g/i/l/Michael-L-Gililland/index.html"
            },
            {
              text: "Family Tree Narrative",
              url: "Gililland/Register/RR_TOC.htm"
            },
            {
              text: "John Gilliland and Hester Rome",
              url: "Gililland/Register_2/RR_TOC.htm"
            },
            {
              text: "John Gilliland, 1689",
              url: "Gililland/R244931/RR_TOC.htm"
            },
            {
              text: "Alexander Gililland",
              url: "Gililland/R254778/RR_TOC.htm"
            },
            {
              text: "Family Register Report",
              url: "Gililland/Gililland Family Register/RR_TOC.htm"
            },
            {
              text: "Hewit Family Tree",
              url: "Gililland/Hewit Family Register/RR_TOC.htm"
            },
            {
              text: "Holloway Family Tree",
              url: "Gililland/Holloway Family Register/RR_TOC.htm"
            }
          ]
        },
    {
          id: "funpages",
          itemdata: [
            
            {
              text: "The Name Game",
              url: "name_game.html"
            },
            {
              text: "The Name History",
              url: "namehistory.html" 
            },
            {
              text: "John Sanford Gililland",
              url: "Stories/js_escape.html"
            },
            {
              text: "Jim Gililland, Part 1",
              url: "http://alvyray.com/Family/Stories/FountainMurders.html"
            },
            {
              text: "Jim Gililland, Part 2",
              url: "Stories/jimgililland.html"
            },
            {
              text: "Aunt Minnie",
              url: "Stories/minnieo.html"
            },
            {
              text: "Uncle Roy",
              url: "Stories/doc_005.html"
            }
          ]
        },
    {
          id: "cemeteries",
          itemdata: [
            {
              text: "Sulfur Lick Cemetery",
              url: "Cemeteries/sulphur_lick.html"
            },
            {
              text: "Fairview Cemetery",
              url: "Cemeteries/fairview.html"
            },
            {
              text: "Other Cemeteries",
              url: "Cemeteries/misc.html"
            }
          ]
        },
    {
          id: "documents",
          itemdata: [
            {
              text: "Marriage Records",
              url: "marriages.html"
            },
            {
              text: "Will and Probate Records",
              url: "Wills/wills.html"
            },
            {
              text: "Missouri Land Grants",
              url: "Prop_Records.html"
            },
            {
              text: "Wise County, TX",
              url: "Records/wisecounty.html"
            }
          ]
        },
        {
          id: "inmemorium",
          itemdata: [{text: "Go There!", url: "Members/inMemorium/main.html"},
                      {text: "Contributor Login", url: "Members/inMemorium/contribLogin.php"}
                    ]
        },
        {
          id: "membersonly",
          itemdata: [{text: "Log In", url: "Members/index.php"}
//                      {text: "Nana's Blog", url: "http://nanagililland.blogspot.com"},
//                      {text: "Papa's Blog", url: "http://s163519555.onlinehome.us"},
//                      {text: "Gililland Brand", url: "http://223066.spreadshirt.com"}
				]
        }
                ];  // END of subMenuData object


                /*
                     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(1).cfg.setProperty("submenu", aSubmenuData[1]);
                        this.getItem(2).cfg.setProperty("submenu", aSubmenuData[2]);
                        this.getItem(3).cfg.setProperty("submenu", aSubmenuData[3]);
                        this.getItem(4).cfg.setProperty("submenu", aSubmenuData[4]);
                        this.getItem(5).cfg.setProperty("submenu", aSubmenuData[5]);
                        this.getItem(6).cfg.setProperty("submenu", aSubmenuData[6]);

                    }

                });


                /*
                     Call the "render" method with no arguments since the 
                     markup for this MenuBar instance is already exists in 
                     the page.
                */

                oMenuBar.render();         
            
            });


