  if (typeof loc == "undefined" || loc == "") {
        var loc = "";
        if (document.body && document.body.innerHTML) {
            var tt = document.body.innerHTML;
            var ml = tt.match(/["']([^'"]*)goldpill.js["']/i);
            if (ml && ml.length > 1) {
                loc = ml[1];
            }
        }
    }
    var bd = 0;
    document.write("<style type=\"text/css\">");
    document.write("\n<!--\n");
    var tr = "filter:alpha(opacity=90);-moz-opacity:0.9;";
    if (IE5) {
        tr = "";
    }
    document.write(".goldpill1_menu {" + tr + "z-index:999;border-color:#000000;border-style:solid;border-width:" + bd + "px 0px " + bd + "px 0px;background-color:#ffffff;position:absolute;left:0px;top:0px;visibility:hidden;}");
    document.write(".goldpill1_plain, a.goldpill1_plain:link, a.goldpill1_plain:visited{text-align:left;background-color:#ffffff;color:#956340;text-decoration:none;border-color:#000000;border-style:solid;border-width:0px " + bd + "px 0px " + bd + "px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
    document.write("a.goldpill1_plain:hover, a.goldpill1_plain:active{background-color:#ffff99;color:#956340;text-decoration:none;border-color:#000000;border-style:solid;border-width:0px " + bd + "px 0px " + bd + "px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
    document.write("a.goldpill1_l:link, a.goldpill1_l:visited{text-align:left;background:#ffffff url(" + loc + "goldpill1_l.gif) no-repeat right;color:#956340;text-decoration:none;border-color:#000000;border-style:solid;border-width:0px " + bd + "px 0px " + bd + "px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
    document.write("a.goldpill1_l:hover, a.goldpill1_l:active{background:#ffff99 url(" + loc + "goldpill1_l.gif) no-repeat right;color: #956340;text-decoration:none;border-color:#000000;border-style:solid;border-width:0px " + bd + "px 0px " + bd + "px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:10pt;font-family:Arial, Helvetica, sans-serif;font-weight:bold;}");
    document.write("\n-->\n");
    document.write("</style>");
    var fc = 9790272;
    var bc = 16777113;
    if (typeof frames == "undefined") {
        var frames = 4;
        if (frames > 0) {
            animate();
        }
    }
    startMainMenu("", 0, 0, 2, 1, 0);
    mainMenuItem("goldpill1_b1", ".gif", 27, 114, "http://geocaching-zone.co.nz/", "", "", 2, 2, "goldpill1_plain");
    mainMenuItem("goldpill1_b2", ".gif", 27, 114, "http://geocaching-zone.co.nz/products-page/", "", "", 2, 2, "goldpill1_plain");
    mainMenuItem("goldpill1_b3", ".gif", 27, 114, "http://geocaching-zone.co.nz/products-page/category/special-offers/", "", "", 2, 2, "goldpill1_plain");
    mainMenuItem("goldpill1_b4", ".gif", 27, 114, "http://geocaching-zone.co.nz/products-page/checkout/", "", "", 2, 2, "goldpill1_plain");
    mainMenuItem("goldpill1_b5", ".gif", 27, 114, "http://geocaching-zone.co.nz/geocaching-zone/", "", "", 2, 2, "goldpill1_plain");
    mainMenuItem("goldpill1_b6", ".gif", 27, 114, "http://geocaching-zone.co.nz/contact-form/", "", "", 2, 2, "goldpill1_plain");
    var rnam = Math.floor(Math.random() * 50);
    var menuwalk = "walk_kiwi.gif";
    if (rnam < 6) {
        switch (rnam) {
          case 0:
            menuwalk = "car";
            break;
          case 1:
            menuwalk = "kick";
            break;
          case 2:
            menuwalk = "run";
            break;
          case 3:
            menuwalk = "shoes";
            break;
          case 4:
            menuwalk = "ted";
            break;
          case 5:
            menuwalk = "walk_person";
            break;
          default:;
        }
    } else {
        if (rnam < 28) {
            menuwalk = "walk_kiwi";
        } else {
            menuwalk = "jump_kiwi";
        }
    }
    document.write("<td width='21'>&nbsp;</td><td id='menuaniimage'><img src='/images/menu/" + menuwalk + ".gif'></td>");
    endMainMenu("", 0, 0);
    startSubmenu("goldpill1_b5", "goldpill1_menu", 166);
    submenuItem("About Geocaching-Zone", "http://geocaching-zone.co.nz/geocaching-zone/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    submenuItem("Shipping Information", "http://geocaching-zone.co.nz/geocaching-zone/shipping-information/", "", "goldpill1_plain");
    submenuItem("Trackable Release", "http://geocaching-zone.co.nz/2009/fast-post/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    submenuItem("FAQ", "http://geocaching-zone.co.nz/geocaching-zone/faq/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b5");
    startSubmenu("goldpill1_b2_5", "goldpill1_menu", 101);
    submenuItem("$5 and Under", "http://geocaching-zone.co.nz/products-page/category/5-and-under/", "", "goldpill1_plain");
    submenuItem("from $6 - $10", "http://geocaching-zone.co.nz/products-page/category/5-and-under/from-6---10/", "", "goldpill1_plain");
    submenuItem("from $11 - $15", "http://geocaching-zone.co.nz/products-page/category/5-and-under/from-11---15/", "", "goldpill1_plain");
    submenuItem("from $16 - $20", "http://geocaching-zone.co.nz/products-page/category/5-and-under/from-16---20/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2_5");
    startSubmenu("goldpill1_b2_3", "goldpill1_menu", 110);
    submenuItem("Groundspeak", "http://geocaching-zone.co.nz/products-page/?brand=1", "", "goldpill1_plain");
    submenuItem("Dr. B's", "http://geocaching-zone.co.nz/products-page/?brand=2", "", "goldpill1_plain");
    submenuItem("Rite in the rain", "http://geocaching-zone.co.nz/products-page/?brand=3", "", "goldpill1_plain");
    submenuItem("Bison", "http://geocaching-zone.co.nz/products-page/?brand=4", "", "goldpill1_plain");
    submenuItem("Cache Advance", "http://geocaching-zone.co.nz/products-page/?brand=5", "", "goldpill1_plain");
    submenuItem("Lock and Lock", "http://geocaching-zone.co.nz/products-page/?brand=6", "", "goldpill1_plain");
    submenuItem("TFTC.co.nz", "http://geocaching-zone.co.nz/products-page/?brand=7", "", "goldpill1_plain");
    submenuItem("Landsharkz", "http://geocaching-zone.co.nz/products-page/?brand=8", "", "goldpill1_plain");
    submenuItem("Fire Tacks", "http://geocaching-zone.co.nz/products-page/?brand=9", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2_3");
    startSubmenu("goldpill1_b2_1_3", "goldpill1_menu", 108);
    submenuItem("Travel Bugs", "http://geocaching-zone.co.nz/products-page/category/travel-bugs/", "", "goldpill1_plain");
    submenuItem("TB Accessories", "http://geocaching-zone.co.nz/products-page/category/travel-bugs/tb-accessories/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2_1_3");
    startSubmenu("goldpill1_b2_1_2", "goldpill1_menu", 157);
    submenuItem("Micro Geocoins", "http://geocaching-zone.co.nz/products-page/category/geocoins/micro-geocoins/", "", "goldpill1_plain");
    submenuItem("Geocoins", "http://geocaching-zone.co.nz/products-page/category/geocoins/", "", "goldpill1_plain");
    submenuItem("Achievement Geocoins", "http://geocaching-zone.co.nz/products-page/category/geocoins/achievement-geocoins/", "", "goldpill1_plain");
    submenuItem("Geocoin Accessories", "http://geocaching-zone.co.nz/products-page/category/geocoins/geocoin-accessories/", "", "goldpill1_plain");
    submenuItem("Travel Slugs", "http://geocaching-zone.co.nz/products-page/category/geocoins/travel-slugs/", "", "goldpill1_plain");
    submenuItem("Micro Geocoins", "http://geocaching-zone.co.nz/products-page/category/geocoins/micro-geocoins/", "", "goldpill1_plain");
    submenuItem("On Hold", "http://geocaching-zone.co.nz/products-page/category/geocoins/on-hold/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2_1_2");
    startSubmenu("goldpill1_b2_1", "goldpill1_menu", 179);
    submenuItem("Special Offers", "http://geocaching-zone.co.nz/products-page/category/special-offers/", "", "goldpill1_plain");
    submenuItem("Night Caching", "http://geocaching-zone.co.nz/products-page/category/night-caching/", "", "goldpill1_plain");
    submenuItem("Clothing", "http://geocaching-zone.co.nz/products-page/category/clothing/", "", "goldpill1_plain");
    submenuItem("Ready to Go! ", "http://geocaching-zone.co.nz/products-page/category/ready-to-go/", "", "goldpill1_plain");
    mainMenuItem("goldpill1_b2_1_2", "Geocoins", 0, 0, "http://geocaching-zone.co.nz/products-page/category/geocoins/", "", "", 1, 1, "goldpill1_l");
    mainMenuItem("goldpill1_b2_1_3", "Travel Bugs", 0, 0, "http://geocaching-zone.co.nz/products-page/category/travel-bugs/", "", "", 1, 1, "goldpill1_l");
    submenuItem("Night Caching", "http://geocaching-zone.co.nz/products-page/category/night-caching/", "", "goldpill1_plain");
    submenuItem("Caching Kits", "http://geocaching-zone.co.nz/products-page/category/caching-kits/", "", "goldpill1_plain");
    submenuItem("Cache Containers", "http://geocaching-zone.co.nz/products-page/category/cache-containers/", "", "goldpill1_plain");
    submenuItem("TFTC Cache Containers", "http://geocaching-zone.co.nz/products-page/category/tftc-cache-containers/", "", "goldpill1_plain");
    submenuItem("Cache Stickers", "http://geocaching-zone.co.nz/products-page/category/cache-stickers/", "", "goldpill1_plain");
    submenuItem("Camo", "http://geocaching-zone.co.nz/products-page/category/camo/", "", "goldpill1_plain");
    submenuItem("Log Books", "http://geocaching-zone.co.nz/products-page/category/log-books/", "", "goldpill1_plain");
    submenuItem("Accessories", "http://geocaching-zone.co.nz/products-page/category/accessories/", "", "goldpill1_plain");
    submenuItem("Stickers", "http://geocaching-zone.co.nz/products-page/category/stickers/", "", "goldpill1_plain");
    submenuItem("Swag, Swaps, Trinkets", "http://geocaching-zone.co.nz/products-page/category/swag-swaps-trinkets/", "", "goldpill1_plain");
    submenuItem("Car Products", "http://geocaching-zone.co.nz/products-page/category/car-products/", "", "goldpill1_plain");
    submenuItem("Jewellery", "http://geocaching-zone.co.nz/products-page/category/jewellery/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    submenuItem("Sold Out", "http://geocaching-zone.co.nz/products-page/category/sold-out/", "", "goldpill1_plain");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2_1");
    startSubmenu("goldpill1_b2", "goldpill1_menu", 114);
    mainMenuItem("goldpill1_b2_1", "Categories", 0, 0, "javascript:;", "", "", 1, 1, "goldpill1_l");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    mainMenuItem("goldpill1_b2_3", "Brands", 0, 0, "javascript:;", "", "", 1, 1, "goldpill1_l");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    mainMenuItem("goldpill1_b2_5", "Price Range", 0, 0, "javascript:;", "", "", 1, 1, "goldpill1_l");
    submenuItem("---", "javascript:;", "", "goldpill1_plain");
    endSubmenu("goldpill1_b2");
    loc = "";

    function animenu(elementID, newLeft, newTop, newWidth, newHeight, time, callback) {
        var el = document.getElementById(elementID);
        if (el == null) {
            return;
        }
        var cLeft = parseInt(el.style.left);
        var cTop = parseInt(el.style.top);
        var cWidth = parseInt(el.style.width);
        var cHeight = parseInt(el.style.height);
        var totalFrames = 1;
        if (time > 0) {
            totalFrames = time / 40;
        }
        var fLeft = newLeft - cLeft;
        if (fLeft != 0) {
            fLeft /= totalFrames;
        }
        var fTop = newTop - cTop;
        if (fTop != 0) {
            fTop /= totalFrames;
        }
        var fWidth = newWidth - cWidth;
        if (fWidth != 0) {
            fWidth /= totalFrames;
        }
        var fHeight = newHeight - cHeight;
        if (fHeight != 0) {
            fHeight /= totalFrames;
        }
        doFrame(elementID, cLeft, newLeft, fLeft, cTop, newTop, fTop, cWidth, newWidth, fWidth, cHeight, newHeight, fHeight, callback);
    }


    function doFrame(eID, cLeft, nLeft, fLeft, cTop, nTop, fTop, cWidth, nWidth, fWidth, cHeight, nHeight, fHeight, callback) {
        var el = document.getElementById(eID);
        if (el == null) {
            return;
        }
        cLeft = moveSingleVal(cLeft, nLeft, fLeft);
        cTop = moveSingleVal(cTop, nTop, fTop);
        cWidth = moveSingleVal(cWidth, nWidth, fWidth);
        cHeight = moveSingleVal(cHeight, nHeight, fHeight);
        el.style.left = Math.round(cLeft) + "px";
        el.style.top = Math.round(cTop) + "px";
        el.style.width = Math.round(cWidth) + "px";
        el.style.height = Math.round(cHeight) + "px";
        if (cLeft == nLeft &&
            cTop == nTop && cHeight == nHeight && cWidth == nWidth) {
            if (callback != null) {
                callback();
            }
            return;
        }
        anitime = setTimeout("doFrame(\"" + eID + "\"," + cLeft + "," + nLeft + "," + fLeft + "," + cTop + "," + nTop + "," + fTop + "," + cWidth + "," + nWidth + "," + fWidth + "," + cHeight + "," + nHeight + "," + fHeight + "," + callback + ")", 40);
    }


    function moveSingleVal(currentVal, finalVal, frameAmt) {
        if (frameAmt == 0 || currentVal == finalVal) {
            return finalVal;
        }
        currentVal += frameAmt;
        if (frameAmt > 0 && currentVal >= finalVal ||
            (frameAmt < 0 && currentVal <= finalVal)) {
            return finalVal;
        }
        return currentVal;
    }

    animenu("menuani", 17, 0, 800, 50, 10000);