// 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 = 9; // 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] = "mygk"; menus_toppos[0] = 147; menus_leftpos[0] = 65; menus_border[0] = 0; menus_class[0] = "dropmenu"; menus_classcat[0] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[0] = 9; items0names = new Array(numberofitems[0]); items0links = new Array(numberofitems[0]); items0popuplocation = new Array(numberofitems[0]); items0popupwinname = new Array(numberofitems[0]); items0popupheight = new Array(numberofitems[0]); items0popupwidth = new Array(numberofitems[0]); items0popupscrollbars = new Array(numberofitems[0]); items0names[0] = "My GK Homepage"; items0links[0] = "/mygk/index.cfm"; items0names[1] = "My Mail Center"; items0links[1] = "2"; items0popuplocation[1] = "/mailcenter/index.cfm"; items0popupwinname[1] = "mailcenter"; items0popupheight[1] = "580"; items0popupwidth[1] = "780"; items0popupscrollbars[1] = "1"; items0names[2] = "My Buddies"; items0links[2] = "/mybuddies/index.cfm"; items0names[3] = "My GK Space Editor"; items0links[3] = "/registry/editregistry.cfm"; items0names[4] = "My GK Handicap Tracker"; items0links[4] = "/handicaptracker/handicaptrackersample.cfm"; items0names[5] = "My Activity Calendar"; items0links[5] = "/calendar/index.cfm"; items0names[6] = "ACCOUNT INFO"; items0links[6] = "1"; items0names[7] = "Sign Up for Free"; items0links[7] = "/accounts/signup.cfm"; items0names[8] = "Log In"; items0links[8] = "/login.cfm"; // Menu 1 - Defined this Menu menus[1] = "golfcourses"; menus_toppos[1] = 147; menus_leftpos[1] = 141; menus_border[1] = 0; menus_class[1] = "dropmenu"; menus_classcat[1] = "dropmenucat"; numberofitems[1] = 14; items1names = new Array(numberofitems[1]); items1links = new Array(numberofitems[1]); items1names[0] = "Course Finder"; items1links[0] = "/golf_courses/searchcourses.cfm"; items1names[1] = "Southern California"; items1links[1] = "/southern_california/golf_courses/index.cfm/southern_california"; items1names[2] = "Central California"; items1links[2] = "/central_california/golf_courses/index.cfm/central_california"; items1names[3] = "Northern California"; items1links[3] = "/northern_california/golf_courses/index.cfm/northern_california"; items1names[4] = "Southern Nevada"; items1links[4] = "/southern_nevada/golf_courses/index.cfm/las_vegas_nevada"; items1names[5] = "Arizona"; items1links[5] = "/arizona/golf_courses/index.cfm/arizona"; items1names[6] = "Colorado"; items1links[6] = "/colorado/golf_courses/index.cfm/colorado"; items1names[7] = "GOLF COURSE FEATURES"; items1links[7] = "1"; items1names[8] = "Golf Course Specials"; items1links[8] = "/golf_courses/allspecials.cfm"; items1names[9] = "Golf Course Reviews"; items1links[9] = "/recentfeedback.cfm"; items1names[10] = "Rate a Golf Course"; items1links[10] = "/rating_system/start_survey.cfm"; items1names[11] = "Valued Feedback Members"; items1links[11] = "/mygk/vfm.cfm"; items1names[12] = "Top 25 Rankings"; items1links[12] = "/golf_courses/ratings.cfm"; items1names[13] = "Year End Awards"; items1links[13] = "/golf_courses/awards.cfm"; // Menu 2 - Defined this Menu menus[2] = "clubhouse"; menus_toppos[2] = 147; menus_leftpos[2] = 356; menus_border[2] = 0; menus_class[2] = "dropmenu"; menus_classcat[2] = "dropmenucat"; numberofitems[2] = 16; items2names = new Array(numberofitems[2]); items2links = new Array(numberofitems[2]); items2names[0] = "COMMUNITY"; items2links[0] = "1"; items2names[1] = "Forums"; items2links[1] = "/forums/"; items2names[2] = "My GK Spaces"; items2links[2] = "/registry/"; items2names[3] = "Meet Me At..."; items2links[3] = "/meets/"; items2names[4] = "Find Playing Partners"; items2links[4] = "/fpp/"; items2names[5] = "Chat"; items2links[5] = "/chat/"; items2names[6] = "Online Newsletter"; items2links[6] = "/newsletters/onlinenewsletter.cfm"; items2names[7] = "Community Guidelines"; items2links[7] = "/siteinfo/community_rules.cfm"; //- Member Articles (Comes Later) items2names[8] = "YOUR OPINIONS"; items2links[8] = "1"; items2names[9] = "Product Reviews"; items2links[9] = "/productreviews/"; items2names[10] = "Golf Course Reviews"; items2links[10] = "/recentfeedback.cfm"; items2names[11] = "Rate a Golf Course"; items2links[11] = "/rating_system/start_survey.cfm"; items2names[12] = "Polls"; items2links[12] = "/polls/"; items2names[13] = "GOLF ACADEMY"; items2links[13] = "1"; items2names[14] = "Golf Instructors"; items2links[14] = "/instructors/"; items2names[15] = "Golf Instructors Sign-Up"; items2links[15] = "/instructors/sign-up.cfm"; // Menu 3 - Defined this Menu menus[3] = "gkgolfclub"; menus_toppos[3] = 147; menus_leftpos[3] = 708; menus_border[3] = 0; menus_class[3] = "dropmenu"; menus_classcat[3] = "dropmenucat"; numberofitems[3] = 2; items3names = new Array(numberofitems[3]); items3links = new Array(numberofitems[3]); items3names[0] = "USGA Index Sign Up"; items3links[0] = "/gkgolfclub/index.cfm"; items3names[1] = "GK Golf Club FAQ's"; items3links[1] = "/gkgolfclub/gkclubfaq.cfm"; // Menu 4 - Defined this Menu menus[4] = "tournaments"; menus_toppos[4] = 147; menus_leftpos[4] = 602; menus_border[4] = 0; menus_class[4] = "dropmenu"; menus_classcat[4] = "dropmenucat"; numberofitems[4] = 1; items4names = new Array(numberofitems[4]); items4links = new Array(numberofitems[4]); items4names[0] = "GK Casual Outings"; items4links[0] = "/golforganizer/index.cfm"; // items4names[1] = "Charity Golf Listings"; // items4links[1] = "/charity_golf_tournaments/"; // items4names[2] = "Tournament Calendar"; // items4links[2] = "/calendar/"; // Menu 5 - Defined this Menu menus[5] = "travel"; menus_toppos[5] = 147; menus_leftpos[5] = 702; menus_border[5] = 0; menus_class[5] = "dropmenu"; menus_classcat[5] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[5] = 1; items5names = new Array(numberofitems[5]); items5links = new Array(numberofitems[5]); items5names[0] = "Packages & Deals"; items5links[0] = "/travel/packages.cfm"; // items5names[0] = "TRAVEL GUIDES"; // items5links[0] = "1"; // items5names[1] = "Nevada/Las Vegas"; // items5links[1] = "/golf_travel/las_vegas_henderson_mesquite_laughlin.cfm"; // items5names[2] = "Palm Springs"; // items5links[2] = "/golf_travel/palm_springs_indio_laquinta_cathedral_city.cfm"; // items5names[3] = "Hawaii"; // items5links[3] = "/golf_travel/hawaii_oahu_maui_kauai_other_islands.cfm"; // items5names[4] = "NW Nevada/Tahoe"; // items5links[4] = "/golf_travel/lake_tahoe_reno_carson_city_sierra.cfm"; // Menu 6 - Defined this Menu menus[6] = "teetimes"; menus_toppos[6] = 147; menus_leftpos[6] = 261; menus_border[6] = 0; menus_class[6] = "dropmenu"; menus_classcat[6] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[6] = 2; items6names = new Array(numberofitems[6]); items6links = new Array(numberofitems[6]); items6popuplocation = new Array(numberofitems[6]); items6popupwinname = new Array(numberofitems[6]); items6popupheight = new Array(numberofitems[6]); items6popupwidth = new Array(numberofitems[6]); items6popupscrollbars = new Array(numberofitems[6]); items6names[0] = "Book Tee Times"; items6links[0] = "/golf_courses/teetimes.cfm"; items6names[1] = "GK Member Tee Times"; items6links[1] = "/teetime/"; // Menu 7 - Defined this Menu menus[7] = "gkorg"; menus_toppos[7] = 147; menus_leftpos[7] = 824; menus_border[7] = 0; menus_class[7] = "dropmenu"; menus_classcat[7] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[7] = 10; items7names = new Array(numberofitems[7]); items7links = new Array(numberofitems[7]); items7names[0] = "About GK"; items7links[0] = "/about_gk.cfm"; items7names[1] = "Advertise"; items7links[1] = "/advertise.cfm"; items7names[2] = "Link to Us"; items7links[2] = "/siteinfo/linktous.cfm"; items7names[3] = "Superintendent Info"; items7links[3] = "/superintendents/sign-up.cfm"; items7names[4] = "Golf Instructor Info"; items7links[4] = "/instructors/sign-up.cfm"; items7names[5] = "Contact Us"; items7links[5] = "/contact_gk.cfm"; items7names[6] = "INFO"; items7links[6] = "1"; items7names[7] = "Contests/Prizes"; items7links[7] = "/contests/index.cfm"; items7names[8] = "The Rating System"; items7links[8] = "/rating_system/info.cfm"; items7names[9] = "GK Classifieds"; items7links[9] = "/classifieds/"; // Menu 8 - Defined this Menu menus[8] = "golfnews"; menus_toppos[8] = 147; menus_leftpos[8] = 348; menus_border[8] = 0; menus_class[8] = "dropmenu"; menus_classcat[8] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[8] = 1; items8names = new Array(numberofitems[1]); items8links = new Array(numberofitems[1]); items8names[0] = "Southern California Golf News"; items8links[0] = "/southern_california_golf_news/"; // Menu 9 - Defined this Menu menus[9] = "productreviews"; menus_toppos[9] = 147; menus_leftpos[9] = 462; menus_border[9] = 0; menus_class[9] = "dropmenu"; menus_classcat[9] = "dropmenucat"; // Declare the number of drop items for this menu numberofitems[9] = 3; items9names = new Array(numberofitems[9]); items9links = new Array(numberofitems[9]); items9popuplocation = new Array(numberofitems[9]); items9popupwinname = new Array(numberofitems[9]); items9popupheight = new Array(numberofitems[9]); items9popupwidth = new Array(numberofitems[9]); items9popupscrollbars = new Array(numberofitems[9]); items9names[0] = "Product Reviews"; items9links[0] = "/productreviews/"; items9names[1] = "Search All Reviews"; items9links[1] = "/productreviews/reviews.cfm"; items9names[2] = "Submit a Product"; items9links[2] = "/productreviews/submit.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 + "'"); }