var indicator = new indicatorObj("indicator.gif", "spacer.gif", 8, 8);
var indNum = 0;
var itemSeperation = 4;
var menusLoaded = false;
deRef = ""; 

var menusList = new Array();
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, 210, 393, 162, "#5E9DEB");
menusList["legalMenu"] = new createMenuObj("legalMenu", 1, 225, 393, 162, "#5E9DEB");

menusList["custcareMenu"] = new createMenuObj("custcareMenu", 0, 85, 324, 162, "#5E9DEB", 4);
menusList["repMenu"] = new createMenuObj("repMenu", 1, 110, 486, 162, "#5E9DEB");
menusList["billMenu"] = new createMenuObj("billMenu", 1, 127, 486, 162, "#5E9DEB");
menusList["howToMenu"] = new createMenuObj("howToMenu", 1, 145, 486, 162, "#5E9DEB");
menusList["fastAccessMenu"] = new createMenuObj("fastAccessMenu", 1, 157, 486, 162,"#5E9DEB");
menusList["emailMenu"] = new createMenuObj("emailMenu", 1, 172, 486, 162, "#5E9DEB");
menusList["callMenu"] = new createMenuObj("callMenu", 1, 185, 486, 162, "#5E9DEB");
menusList["orderMenu"] = new createMenuObj("orderMenu", 1, 200, 486, 162, "#5E9DEB");
menusList["passwdMenu"] = new createMenuObj("passwdMenu", 1, 220, 486, 162, "#5E9DEB");
menusList["feedbackMenu"] = new createMenuObj("feedbackMenu", 1, 260, 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 Solutions", "http://www.bellsouth.com/shop/residential-catalog/ps_solutions-pkg.html");
  items[1] = new createMenuItem(1, "Local Telephone Service", "http://www.bellsouth.com/shop/residential-catalog/ps_homephone.html");
  items[2] = new createMenuItem(1, "DSL &amp; Internet Access", "http://www.bellsouth.com/shop/residential-catalog/ps_internet_services.html");
  items[3] = new createMenuItem(1, "Wireless &amp; Paging", "http://www.bellsouth.com/shop/residential-catalog/ps_wireless_paging.html");
  items[4] = new createMenuItem(2, "Browse Catalog", "http://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+EnterCatalogAppLogic?appName=consumer&applDomain=conscatalog");
  items[5] = new createMenuItem(1, "Home Office", "http://www.bellsouth.com/homeoffice/");
  items[6] = new createMenuItem(2, "Special Needs", "http://www.bellsouth.com/specialneeds/index.html");
  items[7] = new createMenuItem(1, "Establish New Service", "https://www.bellsouth.com/NASApp/cnorder/jsp/res_newsvc_intro.jsp");
  items[8] = new createMenuItem(1, "Change Existing Service", "https://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+eConsOrdLoginAppLogic?HOST=bsol.bellsouthonline.com");
  items[9] = new createMenuItem(1, "Move Existing Service", "http://www.bellsouth.com/shop/residential-catalog/ps_homephone_move-service.html");
  items[10] = new createMenuItem(2, "Phone Books", "http://www.bellsouth.com/shop/residential-catalog/ps_phonebooks.html");
  items[11] = new createMenuItem(1, "Review &amp; Pay My Bill", "https://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+ecnmemsvcnas.LoginAppLogic?HOST=bsol.bellsouthonline.com;bsolbellsouthonline.com");       
}

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[5] = new createMenuItem(1, "Savings &amp; Rewards", "http://contact.bellsouth.com/smallbusiness/discounts/index.asp");
  items[6] = new createMenuItem(2, "e-Seminars", "http://www.bellsouth.com/smallbusiness/calendar/");
  items[7] = new createMenuItem(1, "Local Service Packages", "http://www.bellsouth.com/smallbusiness/products/wireline/");  
  items[8] = new createMenuItem(1, "Data Services", "http://www.bellsouth.com/smallbusiness/products/data/");
  items[9] = new createMenuItem(1, "DSL &amp; Internet Access", "http://www.bellsouth.com/smallbusiness/products/internet/");
  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://cluser1.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+EnterCatalogAppLogic?appName=smallbiz&applDomain=smallbizcatalog");
  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, "Data", "http://www.bellsouth.com/business/products_services/services_dataservices.html");
  items[1] = new createMenuItem(1, "Equipment", "http://www.bellsouth.com/business/products_services/services_equipmentservices.html");
  items[2] = new createMenuItem(1, "Internet Services", "http://www.bellsouth.com/business/products_services/services_internetservices.html");
  items[3] = new createMenuItem(1, "Business Solutions", "http://www.bellsouth.com/business/products_services/services_solutions.html");
  items[4] = new createMenuItem(1, "Voice Services", "http://www.bellsouth.com/business/products_services/services_voiceservices.html");
  items[5] = new createMenuItem(1, "Interactive Paging", "http://www.bellsouthwd.com/solutions/bus_messaging_plus.html");
  items[6] = new createMenuItem(1, "Industry Solutions", "http://www.bellsouth.com/business/industry_mainpage.html");
  items[7] = new createMenuItem(1, "Operator Services", "http://www.bellsouth.com/os/");
  items[8] = new createMenuItem(1, "Public Payphones", "http://www.bellsouth.com/public/");
  items[9] = new createMenuItem(1, "Consultant Liaison Program", "http://www.bellsouth.com/business/consultliaison/");
  items[10] = 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/");
}

with (menusList["myBillsMenu"])
{ items[0] = new createMenuItem(1, "Residential Account", "https://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+ecnmemsvcnas.LoginAppLogic?HOST=bsol.bellsouthonline.com;bsolbellsouthonline.com");
  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://www.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, "International", "http://www.bellsouth.com/international/");
  items[6] = new createMenuItem(1, "Federal Sales Division", "http://www.bellsouth.com/federal/");
  items[7] = new createMenuItem(1, "News", "http://www.bellsouthcorp.com/headlines/");
  items[8] = new createMenuItem(1, "Community", "#", "commMenu");
  items[9] = new createMenuItem(1, "Policies &amp; Legal", "#", "legalMenu");
  items[10] = new createMenuItem(1, "Authorized Agents", "http://wow.bellsouth.com/agentindex.html");
}

with (menusList["commMenu"])
{ items[0] = new createMenuItem(1, "BellSouth Foundation", "http://www.bellsouthcorp.com/bsf/");
  items[1] = new createMenuItem(1, "Education", "http://cluser1.bellsouthonline.com/comcalendar/education/bscomm_education.html");
  items[2] = new createMenuItem(1, "Volunteerism", "http://cluser1.bellsouthonline.com/comcalendar/volunteer/bscomm_volunteerism.html");
  items[3] = new createMenuItem(1, "Neighborhood Watch", "http://www.bellsouth.com/neighborhood/");
  items[4] = new createMenuItem(1, "Recycling", "http://www.bellsouth.com/bapco/customerservice/recycle/index.html");
  items[5] = new createMenuItem(1, "Sports Sponsorships", "http://www.bellsouth.com/Sports/estore/content/spo/spo_scr.htm");
  items[6] = new createMenuItem(1, "Community Calendar", "http://cluser1.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic%2bnet.bellsouth.bsonline.comcalendar.MonthlyAppLogic");
}

with (menusList["legalMenu"])
{ items[0] = new createMenuItem(1, "Public Policy", "http://www.bellsouthcorp.com/issues/");
  items[1] = new createMenuItem(1, "Annoyance Calls", "http://contact.bellsouth.com/acc/");
  items[2] = new createMenuItem(1, "Tariffs", "http://cpr.bst.bellsouth.com/");
  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, "Area Codes", "http://www.bellsouth.com/areacode/");
  items[1] = new createMenuItem(1, "Repairs", "#", "repMenu");
  items[2] = new createMenuItem(1, "Billing", "#", "billMenu");
  items[3] = new createMenuItem(1, "How To Use Calling Features", "#", "howToMenu");
  items[4] = new createMenuItem(1, "FastAccess&reg; Internet Service Assistance", "#", "fastAccessMenu");
  items[5] = new createMenuItem(1, "E-mail Us", "#", "emailMenu");
  items[6] = new createMenuItem(1, "Call Us", "#", "callMenu");
  items[7] = new createMenuItem(1, "Ordering Options", "#", "orderMenu");
  items[8] = new createMenuItem(1, "Password Help", "#", "passwdMenu");
  items[9] = new createMenuItem(1, "Help with Annoyance Calls", "http://contact.bellsouth.com/acc/");
  items[10] = 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://bsol.bellsouthonline.com/cgi-bin/gx.cgi/AppLogic+ecnmemsvcnas.LoginAppLogic?HOST=bsol.bellsouthonline.com;bsolbellsouthonline.com");
  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://contact.bellsouth.com/email/LargeBizCurrentContactUs.asp");
  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://contact.bellsouth.com/email/ResidentialFAQ.asp");
  items[7] = new createMenuItem(1, "Wholesale Services", "https://contact.bellsouth.com/email/InterconnectContactUs.asp");
}

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/custsurvey/");
  items[1] = new createMenuItem(1, "Small Business", "https://contact.bellsouth.com/smallbusiness/sitefeedback.asp");
}

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 || menuLevel == "")
    this.menuLevel = 0;
  else
    this.menuLevel = menuLevel;
  if (!top || top == "")
    this.top = 79;
  else
    this.top = top;
  if (!left || left == "")
    this.left = 100;
  else
    this.left = left;
  if (!width || width == "")
    this.width = 125;
  else
    this.width = width;
  if (!bgcolor || bgcolor == "")
    this.bgcolor = "#FFFFFF";
  else
    this.bgcolor = bgcolor;
  if (!dwn_index || dwn_index == "")
    this.dwn_index = 1;
  else
    this.dwn_index = dwn_index;
  this.items = new Array();
}

function createMenuItem(sepType, text, URL, showSub)
{ 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 + 'buttons/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';
}

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" class="menu"><a href="';

  if (iURL == "#")
    tOut += 'JavaScript: myvoid();';
  else
    tOut +=  deRef + iURL;

  tOut += '" class="menu" 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 += iText + '</a></td>';
  return tOut;
}

function generateMenus()
{ for (currMenu in menusList)
  { menusList[currMenu].genMenu();
    add2myLayers(currMenu);
  }
}