    // 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 (TransMenu.isSupported()) {

    //==================================================================================================
    // create a set of dropdowns
    //==================================================================================================
    // the first param should always be down, as it is here
    //
    // The second and third param are the top and left offset positions of the menus from their actuators
    // respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
    // something like -5, 5
    //
    // The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
    // of the actuator from which to measure the offset positions above. Here we are saying we want the
    // menu to appear directly below the bottom left corner of the actuator
    //==================================================================================================
    var ms = new TransMenuSet(TransMenu.direction.down, 0, 6, TransMenu.reference.bottomLeft);

    //==================================================================================================
    // create a dropdown menu
    //==================================================================================================
    // the first parameter should be the HTML element which will act actuator for the menu
    //==================================================================================================
    var menu1 = ms.addMenu(document.getElementById("aboutUs"));

    menu1.addItem("Contact Us", "contact_us.php");
    menu1.addItem("Meet Our Team", "meet_team.php");

    //==================================================================================================
    var menu2 = ms.addMenu(document.getElementById("products"));

    menu2.addItem("On-Site Consulting", "onsite_consulting.php");
    menu2.addItem("Portfolio Analysis", "portfolio_analysis.php");
    menu2.addItem("Reflection Training", "reflection_training.php");
    menu2.addItem("Mystery Shop", "mystery_shop.php");
    menu2.addItem("Preferred Vendors", "preferred_vendors.php");
    menu2.addItem("Rex Johnson's Seminars at Sea", "http://rexjohnson.home.mindspring.com/", "_blank");
    menu2.addItem("LSCI Products ", "javascript:return false;");
    menu2.addItem("Sales Training Modules", "sales_training_modules.php");
    menu2.addItem("HYLS", "hyls-info.php");
    menu2.addItem("HYLS Agreements", "hyls-agreements.php");

    var submenu1 = menu2.addMenu(menu2.items[6]);
        submenu1.addItem("University of Lending Merchandise", "products_merch.php");
        submenu1.addItem("Videos", "products_videos.php");
        submenu1.addItem("Training Manuals/Books", "products_books.php");

    //==================================================================================================

    var menu3 = ms.addMenu(document.getElementById("uofl"));

    menu3.addItem("Class Overview", "class_overview.php");
    menu3.addItem("Class Schedules", "class_schedule.php");
    menu3.addItem("Registration ", "uol_register.php");

    //==================================================================================================

    var menu4 = ms.addMenu(document.getElementById("webinars"));
    menu4.addItem("Information", "webinar-information.php");
    menu4.addItem("Registration", "webinar-registration.php");
    menu4.addItem("Webinar Archives", "webinar_links.php");
    menu4.addItem("Webinar Slides", "webinar_slides.php");

    //==================================================================================================
    var menu5 = ms.addMenu(document.getElementById("gold"));

    menu5.addItem("Current Advice", "current_advice.php");
    menu5.addItem("Case Studies", "case_studies.php");
    menu5.addItem("Success Stories", "success_stories.php");
    menu5.addItem("TT of the Month", "training_tools.php");
    menu5.addItem("Recommended Rates", "recommended_rates.php");
    menu5.addItem("Mapother's Message", "mapothers_message.php");
    menu5.addItem("Dave's Links ", "daves_links.php");

    //==================================================================================================
    var menu6 = ms.addMenu(document.getElementById("platinum"));
    menu6.addItem("HYLS Underwriting Guide", "https://www.24x7loans.com/HYLSUnderwritingGuide/Main.aspx", "_blank");
    menu6.addItem("Current Advice", "current_advice.php");
    menu6.addItem("Case Studies", "case_studies.php");
    menu6.addItem("Success Stories", "success_stories.php");
    menu6.addItem("TT of the Month", "training_tools.php");
    menu6.addItem("Recommended Rates", "recommended_rates.php");
    menu6.addItem("Mapother's Message", "mapothers_message.php");
    menu6.addItem("Dave's Links ", "daves_links.php");
    menu6.addItem("Ask Rex", "ask_us.php");
    menu6.addItem("Ask Rex FAQ", "faqs.php");
    menu6.addItem("Submit a Loan", "submit_loan.php");
    menu6.addItem("Webinars", "javascript:return false;");

    var submenu2 = menu6.addMenu(menu6.items[11]);
        submenu2.addItem("Information", "webinar-information.php");
        submenu2.addItem("Registration", "webinar-registration.php");
        submenu2.addItem("Webinar Archives", "webinar_links.php");
        submenu2.addItem("Webinar Slides", "webinar_slides.php");

    //==================================================================================================
    // 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.
    //==================================================================================================
  TransMenu.renderAll();
}

function init()
{

    //==========================================================================================
    // if supported, initialize TransMenus
    //==========================================================================================
    // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
    // This is better than server-side checking because it will also catch browsers which would
    // normally support the menus but have javascript disabled.
    //
    // If supported, call initialize() and then hook whatever image rollover code you need to do
    // to the .onactivate and .ondeactivate events for each menu.
    //==========================================================================================

    //==========================================================================================
    // if supported, initialize mtdropdowns
    //==========================================================================================
    // Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
    // This is better than server-side checking because it will also catch browsers which would
    // normally support the menus but have javascript disabled.
    //
    // If supported, call initialize() and then hook whatever image rollover code you need to do
    // to the .onactivate and .ondeactivate events for each menu.
    //==========================================================================================
    if (TransMenu.isSupported())
    {
        TransMenu.initialize();

        // hook all the image swapping of the main toolbar to menu activation/deactivation
        // instead of simple rollover to get the effect where the button stays highlighted until
        // the menu is closed.

        //menu1.onactivate = function() { swapImage("button1", preloaded[1][1].src) };
        //menu1.ondeactivate = function() { swapImage("button1", preloaded[1][0].src) };

    }

    // whatever stuff you need to do onload goes here.

}

