
//  [ "htmlpage excl .html",         "Title",                                  "Category" ]

url =
[
    [ "zulu_grain_beer",             "Baskets &amp; Bowls",                    "Interior Decorations" ],
    [ "meru_masks",                  "Masks",                                  "Interior Decorations" ],
    [ "Picture_frames",              "Picture Clips &amp; Frames",             "Interior Decorations" ],
    [ "Candles",                     "Candles",                                "Interior Decorations" ],
    [ "Candle_holders",              "Candle Holders",                         "Interior Decorations" ],
    [ "fridge_magnets",              "Fridge Magnets",                         "Interior Decorations" ],
    [ "African figures",             "African Figurines",                      "Interior Decorations" ],
    [ "Cushion_covers",              "Cushion Covers",                         "Interior Decorations" ],

    [ "african_clothing",            "African Clothing",                       "Clothing &amp; Accessories" ],
    [ "sandals",                     "Sandals",                                "Clothing &amp; Accessories" ],
    [ "shawls",                      "Shawls",                                 "Clothing &amp; Accessories" ],
    [ "scarfs&ties",                 "Scarfs &amp; Ties",                      "Clothing &amp; Accessories" ],
    [ "hats-bags-belts",             "Hats, bags, belts",                      "Clothing &amp; Accessories" ],

    [ "Necklaces Fimo",              "Fimo",                                   "Jewelry: necklaces" ],
    [ "Necklaces Cowrie",            "Cowrie",                                 "Jewelry: necklaces" ],
    [ "Necklaces Traditional Beads", "Traditional Beads",                      "Jewelry: necklaces" ],
    [ "Necklaces Copper & Brass",    "Copper&amp;Brass + Silver Plated",       "Jewelry: necklaces" ],
    [ "bracelets",                   "Bracelets",                              "Jewelry: other" ],
    [ "brooches",                    "Brooches",                               "Jewelry: other" ],
    [ "earrings",                    "Earrings",                               "Jewelry: other" ],
    [ "dental_jewelry",              "Dental Jewelry",                         "Jewelry: other" ],
    [ "pendants",                    "Pendants",                               "Jewelry: other" ],

    [ "giftbags",                    "Gift Bags &amp; Boxes",                  "Miscellaneous" ],
    [ "cards",                       "Cards",                                  "Miscellaneous" ],
    [ "xmas",                        "Christmas",                              "Miscellaneous" ],
    [ "keyrings",                    "Keyrings",                               "Miscellaneous" ],
    [ "cutlery",                     "Cutlery",                                "Miscellaneous" ]
];

function drawCatalog() {
   document.writeln("<FORM><SELECT NAME=SelectMenu onChange=\"jumpPage(this.form)\" ");
   document.writeln("STYLE=\"color: #0b4214; background: #E2C287; font-weight: bold; font-size: 8pt; font-family: verdana;\">");
   document.writeln("<OPTION>Our Catalogue</OPTION>");
   var prev = "";
   var tot = url.length;
   for (var i = 0; i < tot; i++) {
      if(url[i][2] != prev) document.writeln("<OPTGROUP LABEL=\""+url[i][2]+"\">");
      document.writeln("<OPTION>"+url[i][1]+"</OPTION>");
      prev = url[i][2];
   }
   document.writeln("</SELECT></FORM>");
}
 
function jumpPage(form) {
   i = form.SelectMenu.selectedIndex;
   form.SelectMenu.selectedIndex = 0;
   if (i < 1 || i > url.length) return;
   else if (url[i-1][0] == "") return;
   else window.location.href = url[i-1][0] + ".html";
}
