var indicator = new indicatorObj("indicator.gif", "spacer.gif", 8, 8);
var indNum = 0;
var itemSeperation = 4;
var menusLoaded = false;
deRef = ""; 

var menusList = new Array();

// variables for createMenuObj are
// menuId, menuLevel, top, left, width, bgcolor, dwn_index
menusList["ResidentialServiceMenu"] = new createMenuObj("ResidentialServiceMenu", 0, 72, 281, 160, "#DDDDDD", 1);

//menusList["AboutMadRiverMenu"]      = new createMenuObj("AboutMadRiverMenu", 0, 72, 0, 230, "#DDDDDD", 1);
menusList["OurNetworkMenu1"]        = new createMenuObj("OurNetworkMenu1", 1, 205, 308, 100, "#DDDDDD");

menusList["BusinessServiceMenu"]   = new createMenuObj("BusinessServiceMenu", 0, 72, 143, 175, "#DDDDDD", 2);
menusList["OurNetworkMenu2"]        = new createMenuObj("OurNetworkMenu2", 1, 80, 451, 100, "#DDDDDD");
menusList["VoiceServicesMenu"]      = new createMenuObj("VoiceServicesMenu", 1, 151, 319, 150, "#DDDDDD");
//menusList["DataMenu"]             = new createMenuObj("DataMenu", 1, 115, 451, 100, "#DDDDDD");

menusList["CustomerCareMenu"]       = new createMenuObj("CustomerCareMenu", 0, 72, 413, 200, "#DDDDDD", 3);

menusList["MyAccountMenu"]          = new createMenuObj("MyAccountMenu", 0, 72, 520, 150, "#DDDDDD", 4);

menusList["AgentsProgramMenu"]           = new createMenuObj("AgentsProgramMenu", 0, 72, 609, 160, "#DDDDDD", 5);
menusList["AgentsSupportMenu"]           = new createMenuObj("AgentsSupportMenu", 1, 99, 468, 140, "#DDDDDD");
menusList["PromotingYourProductsMenu"]   = new createMenuObj("PromotingYourProductsMenu", 1, 116, 438, 170, "#DDDDDD");
menusList["ManagingYourPartnershipMenu"] = new createMenuObj("ManagingYourPartnershipMenu", 1, 134, 513, 95, "#DDDDDD");


//menusList["madRiverMenu"]         = new createMenuObj("madRiverMenu", 0, 72, 50, 150, "#DDDDDD", 1);
//menusList["customerServiceMenu"]  = new createMenuObj("customerServiceMenu", 0, 72, 140, 200, "#DDDDDD", 2);

// variables for createMenuItem are
// sepType, text, URL, showSub
with (menusList["ResidentialServiceMenu"]) {
  items[0]   = new createMenuItem(1, "Residential Service Home", "/residential_service/index.php");
  items[1]   = new createMenuItem(1, "Residential Promotions", "/residential_service/promotions.php");
  items[2]   = new createMenuItem(1, "Residential Voice Services", "/residential_service/voice.php");
  items[3]   = new createMenuItem(1, "Calling Features", "/business_service/calling_features.php");
  items[4]   = new createMenuItem(1, "Residential Data", "/residential_service/data.php");
  items[5]   = new createMenuItem(1, "Residential Long Distance", "/residential_service/long_distance.php");
  items[6]   = new createMenuItem(1, "On-line Training", "/business_service/training.php");
  items[7]   = new createMenuItem(1, "Residential Support", "/residential_service/support.php");
}
//with (menusList["AboutMadRiverMenu"]) {
//  items[0]   = new createMenuItem(1, "Madison River Communications Corporate", "http://www.madisonriver.net/");
//  items[1]   = new createMenuItem(1, "Careers", "/about/careers.php");
//  items[2]   = new createMenuItem(1, "Press Releases", "http://www.madisonriver.net/news/index.php");
//  items[3]   = new createMenuItem(1, "Leadership Bios", "/about/leadership/index.php");
//  items[4]   = new createMenuItem(1, "Letter from the President", "/about/letter_president.php");
//  items[5]   = new createMenuItem(1, "Madison River Companies", "/about/companies.php");
//  //items[6]   = new createMenuItem(1, "Our Network", "/about/network/index.php", "OurNetworkMenu1");
//  items[6]   = new createMenuItem(1, "Our Network", "/about/network/index.php");
//}
with (menusList["OurNetworkMenu1"]) {
  items[0]  = new createMenuItem(1, "Network Map", "none.html");
  items[1]  = new createMenuItem(1, "Technology", "none.html");
}
with (menusList["BusinessServiceMenu"]) {
  //items[0]  = new createMenuItem(1, "Our Network", "/about/network/index.php", "OurNetworkMenu2");
  //items[1]  = new createMenuItem(1, "Voice Services", "/business_service/voice.php", "VoiceServicesMenu");
  //items[2]  = new createMenuItem(1, "Long Distance", "/business_service/long_distance.php");
  //items[3]  = new createMenuItem(1, "Data", "/business_service/data.php", "DataMenu");
  items[0]  = new createMenuItem(1, "Business Service Home", "/business_service/index.php");
  items[1]  = new createMenuItem(1, "Calling Features", "/business_service/calling_features.php");
  items[2]  = new createMenuItem(1, "Data", "/business_service/data.php");
  items[3]  = new createMenuItem(1, "Long Distance", "/business_service/long_distance.php");
  items[4]  = new createMenuItem(1, "Voice Services", "/business_service/voice.php", "VoiceServicesMenu");
  items[5]  = new createMenuItem(1, "On-line Training", "/business_service/training.php");

}
with (menusList["OurNetworkMenu2"]) {
  items[0]  = new createMenuItem(1, "Network Map", "none.html");
  items[1]  = new createMenuItem(1, "Technology", "none.html");
}
with (menusList["VoiceServicesMenu"]) {
  items[0]  = new createMenuItem(1, "ABS Package", "/business_service/voice.php#abs");
  items[1]  = new createMenuItem(1, "Business Voice Service", "/business_service/voice.php#business_voice");
  items[2]  = new createMenuItem(1, "ISDN PRI", "/business_service/voice.php#isdn_pri");
}
with (menusList["CustomerCareMenu"]) {
  items[0]  = new createMenuItem(1, "Customer Care Home", "/customer/index.php");
}
with (menusList["MyAccountMenu"]) {
  //items[1]  = new createMenuItem(1, "Billing Information", "none.html");
  //items[2]  = new createMenuItem(1, "Moving", "none.html");
  //items[3]  = new createMenuItem(1, "Open a Trouble Ticket", "none.html");
  //items[4]  = new createMenuItem(1, "Add or Remove Services", "none.html");
  //items[5]  = new createMenuItem(1, "Billing Questions", "none.html");
  //items[6]  = new createMenuItem(1, "Sample Bill", "none.html");
  //items[7]  = new createMenuItem(1, "View Your Bill", "none.html");
  items[0]  = new createMenuItem(1, "My Account Home Page", "/my_account/index.php");
  items[1]  = new createMenuItem(1, "Access My Account", "https://www.centurytel.com/Pages/MyAccount/New/");
  items[2]  = new createMenuItem(1, "View a Sample Bill", "/my_account/sample_bill/index.php");
}

with (menusList["AgentsProgramMenu"]) {
  items[0]  = new createMenuItem(1, "Welcome", "/agents/index.php");
  items[1]  = new createMenuItem(1, "Support", "/agents/support/index.php", "AgentsSupportMenu");
  items[2]  = new createMenuItem(1, "Promoting Your Products", "/agents/promoting/index.php", "PromotingYourProductsMenu");
  items[3]  = new createMenuItem(1, "Managing Your Partnership", "/agents/managing/index.php", "ManagingYourPartnershipMenu");
}
with (menusList["AgentsSupportMenu"]) {
  items[0]  = new createMenuItem(1, "Escalation Procedure", "/agents/support/escalation.php");
}
with (menusList["PromotingYourProductsMenu"]) {
  items[0]  = new createMenuItem(1, "Forms", "/agents/promoting/forms/index.php");
  items[1]  = new createMenuItem(1, "Pricing/Products", "/agents/promoting/pricing_products.php");
  items[2]  = new createMenuItem(1, "Collateral", "/agents/promoting/collateral.php");
  items[3]  = new createMenuItem(1, "Numbers to Call", "/agents/promoting/numbers.php");
}
with (menusList["ManagingYourPartnershipMenu"]) {
  //items[0]  = new createMenuItem(1, "Commissions", "/agents/managing/commissions.php");
  items[0]  = new createMenuItem(1, "Training Site", "/agents/managing/training.php");
  items[1]  = new createMenuItem(1, "News", "/agents/managing/news.php");
}

//
//with (menusList["madRiverMenu"]) {
//  items[0] = new createMenuItem(1, "Fox News", "http://www.foxnews.com/");
//  items[1] = new createMenuItem(1, "MSNBC", "http://www.msnbc.com/");
//  items[2] = new createMenuItem(1, "CNN", "http://www.cnn.com/");
//  items[3] = new createMenuItem(1, "ABC News", "http://abcnews.go.com/");
//}
//
//with (menusList["customerServiceMenu"]) {
//  items[0] = new createMenuItem(1, "Google", "http://www.google.com/");
//  items[1] = new createMenuItem(1, "AltaVista", "http://www.altavista.com/");
//  items[2] = new createMenuItem(1, "Northern Light", "http://www.northernlight.com/");
//  items[3] = new createMenuItem(1, "Excite", "http://www.excite.com/");
//  items[4] = new createMenuItem(1, "HotBot", "http://www.hotbot.com/");
//  items[5] = new createMenuItem(1, "Lycos", "http://www.lycos.com/");
//  items[6] = new createMenuItem(1, "MSN", "http://search.msn.com/");
//}


//menusList["shopMenu"] = new createMenuObj("shopMenu", 0, 85, 69, 162, "#5E9DEB", 1);
//menusList["resCatMenu"] = new createMenuObj("resCatMenu", 1, 95, 231, 162, "#5E9DEB");
//menusList["sbCatMenu"] = new createMenuObj("sbCatMenu", 1, 110, 231, 162, "#5E9DEB");
//menusList["lbCatMenu"] = new createMenuObj("lbCatMenu", 1, 127, 231, 162, "#5E9DEB");
//
//menusList["manageMenu"] = new createMenuObj("manageMenu", 0, 85, 143, 162, "#5E9DEB", 2);
//menusList["myBillsMenu"] = new createMenuObj("myBillsMenu", 1, 95, 305, 162, "#5E9DEB");
//menusList["myRepMenu"] = new createMenuObj("myRepMenu", 1, 110, 305, 162, "#5E9DEB");
//
//menusList["aboutMenu"] = new createMenuObj("aboutMenu", 0, 85, 231, 162, "#5E9DEB", 3);
//menusList["commMenu"] = new createMenuObj("commMenu", 1, 240, 393, 162, "#5E9DEB");
//menusList["legalMenu"] = new createMenuObj("legalMenu", 1, 290, 393, 162, "#5E9DEB");
//
//menusList["custcareMenu"] = new createMenuObj("custcareMenu", 0, 85, 324, 162, "#5E9DEB", 4);
//menusList["repMenu"] = new createMenuObj("repMenu", 1, 120, 486, 162, "#5E9DEB");
//menusList["billMenu"] = new createMenuObj("billMenu", 1, 137, 486, 162, "#5E9DEB");
//menusList["howToMenu"] = new createMenuObj("howToMenu", 1, 160, 486, 162, "#5E9DEB");
//menusList["fastAccessMenu"] = new createMenuObj("fastAccessMenu", 1, 190, 486, 162,"#5E9DEB");
//menusList["emailMenu"] = new createMenuObj("emailMenu", 1, 213, 486, 162, "#5E9DEB");
//menusList["callMenu"] = new createMenuObj("callMenu", 1, 231, 486, 162, "#5E9DEB");
//menusList["orderMenu"] = new createMenuObj("orderMenu", 1, 248, 486, 162, "#5E9DEB");
//menusList["passwdMenu"] = new createMenuObj("passwdMenu", 1, 265, 486, 162, "#5E9DEB");
//menusList["feedbackMenu"] = new createMenuObj("feedbackMenu", 1, 310, 486, 162, "#5E9DEB");
//
//
//with (menusList["shopMenu"])
//{ items[0] = new createMenuItem(1, "Residential Catalog", "#", "resCatMenu");
//  items[1] = new createMenuItem(1, "Small Business Catalog", "#", "sbCatMenu");
//  items[2] = new createMenuItem(1, "Large Business Catalog", "#", "lbCatMenu");
//  items[3] = new createMenuItem(1, "Surplus Equipment", "http://surplus.bellsouth.com/");
//}
//
//with (menusList["resCatMenu"])
//{ items[0] = new createMenuItem(2, "Residential Home Page", "http://www.bellsouth.com/consumer/index.html");
//  items[1] = new createMenuItem(1, "Local Telephone Service", "http://www.bellsouth.com/shop/residential-catalog/ps_homephone.html");
//  items[2] = new createMenuItem(1, "Long Distance", "http://www.bellsouth.com/longdistance");
//  items[3] = new createMenuItem(1, "DSL &amp; Internet Access", "http://www.bellsouth.com/shop/residential-catalog/ps_internet_services.html");
//  items[4] = new createMenuItem(1, "Wireless &amp; Paging", "http://www.bellsouth.com/shop/residential-catalog/ps_wireless_paging.html");
//  items[5] = new createMenuItem(1, "Home Security Systems", "http://www.bellsouth.com/security/index.html");     
//  items[6] = new createMenuItem(1, "Telephone Equipment", "http://www.bellsouth.com/consumer/equipment.html");
//  items[7] = new createMenuItem(2, "Browse Catalog", "http://www.bellsouth.com/NASApp/ipc/ICReqDispatcher?userEvent=getAllCategoriesEvent&segmentId=2");
//  items[8] = new createMenuItem(1, "Home Office", "http://www.bellsouth.com/homeoffice/");
//  items[9] = new createMenuItem(2, "Special Needs", "http://www.bellsouth.com/specialneeds/index.html");
//  items[10] = new createMenuItem(1, "Establish New Service", "https://www.bellsouth.com/NASApp/cnorder/jsp/res_newsvc_intro.jsp");
//  items[11] = new createMenuItem(1, "Change Existing Service", "https://www.bellsouth.com/NASApp/corder/COrderReqDispatcher/HomeEvent");
//  items[12] = new createMenuItem(1, "Move Existing Service", "http://www.bellsouth.com/shop/residential-catalog/ps_homephone_move-service.html");
//  items[13] = new createMenuItem(2, "Phone Books", "http://www.bellsouth.com/shop/residential-catalog/ps_phonebooks.html");
//  items[14] = new createMenuItem(1, "Review &amp; Pay My Bill", "https://www.bellsouth.com/NASApp/ebpp/home/main?busUnit=csr");       
//}
//
//with (menusList["sbCatMenu"])
//{ items[0] = new createMenuItem(2, "Small Business Home", "http://www.bellsouth.com/smallbusiness");
//  items[1] = new createMenuItem(1, "Start a New Business", "http://www.bellsouth.com/smallbusiness/products/startyourbusiness.html");
//  items[2] = new createMenuItem(1, "Grow Your Business", "http://www.bellsouth.com/smallbusiness/products/growyourbusiness.html");
//  items[3] = new createMenuItem(1, "Move Your Service", "https://contact.bellsouth.com/smallbusiness/MoveService.asp");  
////  items[4] = new createMenuItem(2, "Change Your Service", "https://cluser1.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+net.bellsouth.bsonline.sbmemsvcnas.LoginAppLogic");  
//  items[4] = new createMenuItem(1, "Savings &amp; Rewards", "http://contact.bellsouth.com/smallbusiness/discounts/index.asp");
//  items[5] = new createMenuItem(2, "e-Seminars", "http://www.bellsouth.com/smallbusiness/calendar/");
//  items[6] = new createMenuItem(1, "Local Telephone Service", "http://www.bellsouth.com/smallbusiness/products/wireline/");  
//  items[7] = new createMenuItem(1, "Long Distance", "http://www.bellsouth.com/longdistance");
//  items[8] = new createMenuItem(1, "DSL &amp; Internet Services", "http://www.bellsouth.com/smallbusiness/products/internet/");
//  items[9] = new createMenuItem(1, "Data Services", "http://www.bellsouth.com/smallbusiness/products/data/");
//  items[10] = new createMenuItem(1, "Hosting &amp; Co-Location", "http://www.bellsouth.com/smallbusiness/products/hosting/");
//  items[11] = new createMenuItem(1, "Wireless &amp; Paging", "http://www.bellsouth.com/smallbusiness/products/wireless/");
//  items[12] = new createMenuItem(1, "Equipment", "http://www.bellsouth.com/smallbusiness/products/equipment/");
//  items[13] = new createMenuItem(2, "Browse Product Catalog", "http://www.bellsouth.com/NASApp/ipc/ICReqDispatcher?userEvent=getAllCategoriesEvent&segmentId=1");
//  items[14] = new createMenuItem(1, "Yellow Page Advertising", "http://www.bellsouth.com/bapco/");
//  items[15] = new createMenuItem(2, "Phone Books", "http://www.bellsouth.com/smallbusiness/products/directories/");
//  items[16] = new createMenuItem(1, "Review &amp; Pay My Bill", "http://www.bellsouth.com/smallbusiness/bill/");  
//}
//
//with (menusList["lbCatMenu"])
//{ items[0] = new createMenuItem(1, "Large Business Home Page", "http://www.bellsouth.com/business/");
//  items[1] = new createMenuItem(1, "Data", "http://www.bellsouth.com/business/products_services/services_dataservices.html");
//  items[2] = new createMenuItem(1, "DSL", "http://www.bellsouth.com/business/products_services/data_adsl.html");  
//  items[3] = new createMenuItem(1, "Equipment", "http://www.bellsouth.com/bus_equipment/Landing_Page/html/Landing_Page.html");
//  items[4] = new createMenuItem(1, "Internet Services", "http://www.bellsouth.com/business/products_services/services_internetservices.html");
//  items[5] = new createMenuItem(1, "Business Solutions", "http://www.bellsouth.com/business/products_services/services_solutions.html");
//  items[6] = new createMenuItem(1, "Voice Services", "http://www.bellsouth.com/business/products_services/services_voiceservices.html");
//  items[7] = new createMenuItem(1, "Interactive Paging", "http://www.bellsouthwd.com/solutions/bus_messaging_plus.html");
//  items[8] = new createMenuItem(1, "Industry Solutions", "http://www.bellsouth.com/business/industry_mainpage.html");
//  items[9] = new createMenuItem(1, "Operator Services", "http://interconnection.bellsouth.com/operator/");
//  items[10] = new createMenuItem(1, "Public Payphones", "http://www.bellsouth.com/public/");
//  items[11] = new createMenuItem(1, "Consultant Liaison Program", "http://www.bellsouth.com/business/consultliaison/");
//  items[12] = new createMenuItem(1, "Resource Library", "http://www.bellsouth.com/business/resource_mainpage.html");
//}
//
//with (menusList["manageMenu"])
//{ items[0] = new createMenuItem(1, "My Bills", "#", "myBillsMenu");
//  items[1] = new createMenuItem(1, "My Repairs", "#", "myRepMenu");
//  items[2] = new createMenuItem(1, "My WebMail", "http://www.bellsouth.com/webmail/");
//  items[3] = new createMenuItem(1, "My Profile", "http://www.bellsouth.com/NASApp/cpr/home/editreg/editRegForm");
//}
//
//with (menusList["myBillsMenu"])
//{ items[0] = new createMenuItem(1, "Residential Account", "https://www.bellsouth.com/NASApp/ebpp/home/main?busUnit=csr");
//  items[1] = new createMenuItem(1, "Small Business Account", "http://www.bellsouth.com/smallbusiness/bill/");
//  items[2] = new createMenuItem(1, "Large Business Account", "https://contact.bellsouth.com/EMRSFEEDBACK/fbbusiness.asp?cou=B2&bu=http://www.bellsouth.com/bbs/");
//}
//
//with (menusList["myRepMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/residential/ps_manage_repairs_res_index.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/help/writeus/repair/");
//}
//
//with (menusList["aboutMenu"])
//{ items[0] = new createMenuItem(1, "BellSouth Corporation", "http://bellsouthcorp.com/");
//  items[1] = new createMenuItem(1, "Investor Relations", "http://www.bellsouth.com/investor/");
//  items[2] = new createMenuItem(1, "Careers", "http://www.bellsouth.com/employment/car_hom.htm");
//  items[3] = new createMenuItem(1, "Ethics and Compliance", "http://ethics.bellsouth.com/eth_hom.htm");
//  items[4] = new createMenuItem(1, "Interconnection Services", "http://www.interconnection.bellsouth.com/");  
//  items[5] = new createMenuItem(1, "Supplier Information", "http://www.bellsouth.com/suppliers/");
//  items[6] = new createMenuItem(1, "International", "http://www.bellsouth.com/international/");
//  items[7] = new createMenuItem(1, "Federal Sales Division", "http://www.bellsouth.com/federal/");
//  items[8] = new createMenuItem(1, "News", "http://bellsouthcorp.com/newsroom/");
//  items[9] = new createMenuItem(1, "Community", "#", "commMenu");
//  items[10] = new createMenuItem(1, "Diversity", "http://bellsouthcorp.com/policy/diversity/");
//  items[11] = new createMenuItem(1, "BellSouth Foundation", "http://www.bellsouthcorp.com/bsf/");    
//  items[12] = new createMenuItem(1, "Policies &amp; Legal", "#", "legalMenu");
//  items[13] = new createMenuItem(1, "Distribution Advantage Program", "http://wow.bellsouth.com/index.html");
//}
//
//with (menusList["commMenu"])
//{ items[0] = new createMenuItem(2, "Community Home Page", "http://www.bellsouth.com/community/index.html");
//  items[1] = new createMenuItem(1, "Neighborhood Watch", "http://www.bellsouth.com/neighborhood/");
//  items[2] = new createMenuItem(1, "Recycling", "http://www.bellsouth.com/bapco/customerservice/recycle/index.html");
//  items[3] = new createMenuItem(1, "Sports Sponsorships", "http://www.bellsouth.com/Sports/estore/content/spo/spo_scr.htm");
//}
//
//with (menusList["legalMenu"])
//{ items[0] = new createMenuItem(1, "Public Policy", "http://bellsouthcorp.com/policy/");
//  items[1] = new createMenuItem(1, "Annoyance Calls", "http://contact.bellsouth.com/acc/");
//  items[2] = new createMenuItem(1, "Tariffs", "http://www.bellsouth.com/tariffs/");
//  items[3] = new createMenuItem(1, "CEI Plans", "http://www.interconnection.bellsouth.com/notifications/carrier/isp_psp_notific.html");
//  items[4] = new createMenuItem(1, "Network Disclosures", "http://www.interconnection.bellsouth.com/notifications/network/index.html");
//  items[5] = new createMenuItem(1, "Legal", "http://www.bellsouth.com/legal.html");
//}
//
//with (menusList["custcareMenu"])
//{ items[0] = new createMenuItem(1, "Check Order Status", "http://www.bellsouth.com/NASApp/orderstatus/jsp/checkordstatus.jsp");
//  items[1] = new createMenuItem(1, "Area Codes", "http://www.bellsouth.com/areacode/");
//  items[2] = new createMenuItem(1, "Repairs", "#", "repMenu");
//  items[3] = new createMenuItem(1, "Billing", "#", "billMenu");
//  items[4] = new createMenuItem(1, "How To Use Calling Features", "#", "howToMenu");
//  items[5] = new createMenuItem(1, "FastAccess&reg; Internet Service Assistance", "#", "fastAccessMenu");
//  items[6] = new createMenuItem(1, "E-mail Us", "#", "emailMenu");
//  items[7] = new createMenuItem(1, "Call Us", "#", "callMenu");
//  items[8] = new createMenuItem(1, "Ordering Options", "#", "orderMenu");
//  items[9] = new createMenuItem(1, "Password Help", "#", "passwdMenu");
//  items[10] = new createMenuItem(1, "Help with Annoyance Calls", "http://contact.bellsouth.com/acc/");
//  items[11] = new createMenuItem(1, "Web Site Feedback", "#", "feedbackMenu");
//}
//
//with (menusList["repMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/residential/ps_manage_repairs_res_index.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/help/writeus/repair/");
//}
//
//with (menusList["billMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "https://www.bellsouth.com/NASApp/ebpp/home/main?busUnit=csr");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/bill/");
//  items[2] = new createMenuItem(1, "Large Business", "https://contact.bellsouth.com/EMRSFEEDBACK/fbbusiness.asp?cou=B2&bu=http://www.bellsouth.com/bbs/");
//}
//
//with (menusList["howToMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+EnterCatalogAppLogic?appName=consumer&applDomain=conscatalog&usageInst=bellsouth");
//  items[1] = new createMenuItem(1, "Small Business", "http://cluser1.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+EnterCatalogAppLogic?appName=smallbiz&applDomain=smallbizcatalog");
//}
//with (menusList["emailMenu"])
//{ items[0] = new createMenuItem(1, "BellSouth Advertising &amp; Publishing", "http://www.bellsouth.com/bapco/contactbapco/index.html");
//  items[1] = new createMenuItem(1, "BellSouth Corporation", "http://www.bellsouth.com/customer_care/email_us/bellsouthcorp.html");
//  items[2] = new createMenuItem(1, "Business, Small", "http://contact.bellsouth.com/smallbusiness/contactusfilter.asp");
//  items[3] = new createMenuItem(1, "Business, Large", "https://contactus.bellsouth.com/emrs/jsp/LargeBizCurrentContactUsForm");
//  items[4] = new createMenuItem(1, "Equipment &amp; Equipment Services for Business", "https://contact.bellsouth.com/email/ProductsContactUs.asp?formtype=home");
//  items[5] = new createMenuItem(1, "Internet Service", "http://services.bellsouth.net/footer/feedback.html");
//  items[6] = new createMenuItem(1, "Residential", "https://contactus.bellsouth.com/emrs/jsp/ResidentialFAQ");
//  items[7] = new createMenuItem(1, "Wholesale Services", "https://contact.bellsouth.com/email/InterconnectContactUs.asp");
//  items[8] = new createMenuItem(1, "BellSouth&reg; MasterCard&reg;", "http://www.bellsouth.com/mc_contactus.html");
//}
//
//with (menusList["callMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/residential/ps_call-us.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/help/callus/");
//}
//
//with (menusList["orderMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/residential/ps_ordering-options.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/ps_order-options.html");
//}
//
//with (menusList["passwdMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/residential/ps_password-help.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/smallbusiness/ps_password-help.html");
//}
//
//with (menusList["feedbackMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.bellsouth.com/survey/consumer.html");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.bellsouth.com/survey/business.html");
//}
//
//with (menusList["fastAccessMenu"])
//{ items[0] = new createMenuItem(1, "Residential", "http://www.fastaccess.com/consumer/blsc_contactus.jsp");
//  items[1] = new createMenuItem(1, "Small Business", "http://www.fastaccess.com/business/blss_service.jsp");
//}

// ///////////////////////////////////////////////////////////////

function createMenuObj(menuId, menuLevel, top, left, width, bgcolor, dwn_index)
{ this.menuId = menuId;
  if (menuLevel != "0" && (!menuLevel || menuLevel == ""))
    this.menuLevel = 0;
  else
    this.menuLevel = menuLevel;
  if (top != "0" && (!top || top == ""))
    this.top = 79;
  else
    this.top = top;
  if (left != "0" && (!left || left == ""))
    this.left = 100;
  else
    this.left = left;
  if (width != "0" && (!width || width == ""))
    this.width = 125;
  else
    this.width = width;
  if (bgcolor != "0" && (!bgcolor || bgcolor == ""))
    this.bgcolor = "#FFFFFF";
  else
    this.bgcolor = bgcolor;
  if (dwn_index != "0" && (!dwn_index || dwn_index == ""))
    this.dwn_index = 1;
  else
    this.dwn_index = dwn_index;
  this.items = new Array();
}

function createMenuItem(sepType, text, URL, showSub)
{ 
  //alert('hello world' + ' - ' + sepType + ' - ' + text + ' - ' + URL);
  this.sepType = sepType;
  this.text = text;
  this.URL = URL;
  this.showSub = showSub;
}

function generateMenu()
{ if (this.menuLevel == 0)
    genTopMenu(this.top, this.left, this.width, this.menuId, this.bgcolor, this.items, this.dwn_index)
  else
    genSubMenu(this.top, this.left, this.width, this.menuId, this.bgcolor, this.items)
}

if (isDHTML) createMenuObj.prototype.genMenu = generateMenu;

function genTopMenu(top, left, width, menuId, bgcolor, items, dwn_index)
{ var contentWidth = width - 2 - (2 * indicator.width);
  var textOut = "";

  textOut += showDiv(menuId, top, left, width, 0);

  textOut += '<tr bgcolor="' + bgcolor + '"><td width="2px" rowspan="' + ((items.length * 2) + 1) + '" background="' + img_folder + 'menu_vert.gif"><img src="' + img_folder + 'spacer.gif" width="2" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + indicator.width + 'px"><img src="' + img_folder + 'spacer.gif" width="' + indicator.width + '" height="6" alt="" border="0"></td>';
  textOut += '<td width="' + contentWidth + 'px"><img src="' + img_folder + 'spacer.gif" width="' + contentWidth + '" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + indicator.width + 'px"><img src="' + img_folder + 'spacer.gif" width="' + indicator.width + '" height="1" alt="" border="0"></td>';
  textOut += '</tr>\n\n';

  for (i = 0; i < items.length; i++)
  { textOut += '<tr valign="top" bgcolor="' + bgcolor + '">';
    if (items[i].URL == 2) {
      textOut += showHeader(contentWidth, items[i].text);
    } else {
      textOut += showItem1(contentWidth, items[i].URL) + 'clearCurrent2(\'' + items[i].showSub + '\');';
      textOut += showItem2(items[i].showSub, items[i].URL, items[i].text);

      textOut += '<td width="' + indicator.width + 'px" valign="middle">';
      if (items[i].showSub)
        textOut += '<img src="' + img_folder + 'indicat_sub.gif" width="' + indicator.width + '" height="' + indicator.height + '" alt="" border="0">';
      else
        textOut += '<img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0">';
      textOut += '</td></tr>\n\n';

      indNum++;
    }
    if (i < items.length - 1)
      textOut += showSeparator(items[i].sepType, bgcolor, width);
  }
  textOut += '<tr><td width="' + indicator.width + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + contentWidth + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="' + contentWidth + '" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + indicator.width + 'px" align="right"><img src="' + img_folder + 'menu_br.gif" width="8" height="6" alt="" border="0"></td></tr>\n\n';

  textOut += '<tr><td colspan="5"><img src="' + img_folder + 'sub_dwn_' + dwn_index + '.gif" border="0" alt=""></td></tr>\n\n';

  textOut += '</table></div>\n\n';
  
  document.write(textOut);
}

function genSubMenu(top, left, width, menuId, bgcolor, items)
{ var contentWidth = width - 4 - (2 * indicator.width);
  var textOut = "";

  textOut += showDiv(menuId, top, left, width, 1);

  textOut += '<tr><td width="4px" rowspan="' + (items.length * 2 + 1) + '" background="' + img_folder + 'menu_shad.gif" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="4" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + indicator.width + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="' + indicator.width + '" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + contentWidth + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="' + contentWidth + '" height="1" alt="" border="0"></td>';
  textOut += '<td width="' + indicator.width + 'px" align="right"><img src="' + img_folder + 'menu_tr.gif" width="8" height="6" alt="" border="0"></td>';
  textOut += '</tr>\n\n';

  for (i = 0; i < items.length; i++)
  { textOut += '<tr valign="top" bgcolor="' + bgcolor + '">';
    if (items[i].URL == 2)
      textOut += showHeader(contentWidth, items[i].text);
    else
    { textOut += showItem1(contentWidth, items[i].URL);
      textOut += showItem2(items[i].showSub, items[i].URL, items[i].text);
      textOut += '<td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td>\n';
      textOut += '</tr>\n\n';
    
      indNum++;
    }
    if (i < items.length - 1)
      textOut += showSeparator(items[i].sepType, bgcolor, width);
  }

  textOut += '<tr><td width="' + indicator.width + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td><td width="' + contentWidth + 'px" bgcolor="' + bgcolor + '"><img src="' + img_folder + 'spacer.gif" width="' + contentWidth + '" height="1" alt="" border="0"></td><td width="' + indicator.width + 'px" align="right"><img src="' + img_folder + 'menu_br.gif" width="8" height="6" alt="" border="0"></td></tr>\n\n';

  textOut += '</table></div>\n\n';

  document.write(textOut);
}

function showDiv(menuId, top, left, width, zOffset)
{ tOut = "";
    tOut += '<div id="' + menuId + '" ';
  if (is_nav4)
    tOut += 'class="dropdown"';
  else
    tOut += 'style="position: absolute; z-index: ' + (30 + zOffset) + '; visibility: hidden; top: ' + top + '; left: ' + left + '; width: ' + width + ';"';
  tOut += '><table width="' + width + 'px" border="0" cellspacing="0" cellpadding="0" vspace="0" hspace="0">\n\n';
  
  return tOut;
}

function showHeader(cwidth, htext)
{
	//return '<td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td><td width="' + cwidth + 'px" valign="middle" class="menuBold">' + htext + '</td><td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td></tr>\n\n';
	return '<td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td><td width="' + cwidth + 'px" valign="middle" class="menuBold">' + htext + '</td><td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + 'spacer.gif" width="1" height="1" alt="" border="0"></td></tr>\n\n';
}

function showSeparator(type, bgcolor, width)
{ if (type == 2)
    return '<tr bgcolor="' + bgcolor + '"><td colspan="3" valign="middle" align="center"><img src="' + img_folder + 'menu_sep.gif" width="' + (width - 8) + '" height="1" alt="" border="0" vspace="' + itemSeperation + '"></td></tr>\n\n';
  else
    return '<tr bgcolor="' + bgcolor + '"><td colspan="3"><img src="' + img_folder + 'spacer.gif" width="1" height="' + itemSeperation + '" alt="" border="0"></td></tr>\n\n';
}

function showItem1(cwidth, iURL)
{ tOut = "";
  tOut = '<td width="' + indicator.width + 'px" valign="middle"><img src="' + img_folder + indicator.off + '" width="' + indicator.width + '" height="' + indicator.height + '" alt="" border="0" name="ind' + indNum + '"></td><td width="' + cwidth + '" valign="middle" xclass="menu"><a href="';

  if (iURL == "#")
    tOut += 'JavaScript: myvoid();';
  else
    tOut +=  deRef + iURL;

  tOut += '" class="dropmenu" onMouseover="'
  if (!is_nav5up)
    tOut += 'changeImage(\'ind' + indNum + '\', \'ind_on\');';
  return tOut;
}

function showItem2(showSub, iURL, iText)
{ tOut = "";
  if (showSub) {
    tOut += ' showMenu(\'' + showSub + '\');';
  }
  tOut += '" onMouseout="'
  if (!is_nav5up) {
    tOut += 'changeImage(\'ind' + indNum + '\', \'ind_off\');';
  }

  if (showSub) {
    tOut += ' initCheckMenu();">';
  } else {
    tOut += '">';
  }
  //tOut += '<font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#000000">'
  tOut += iText + '</a></td>';
  //tOut += '</font>';
  return tOut;
}

function generateMenus()
{ for (currMenu in menusList)
  { menusList[currMenu].genMenu();
    add2myLayers(currMenu);
  }
}
