    // info to control the rotating shoe displays
    allshoes = new Array (
          "blacks2", "blueplaids", "flats", "gold", "golds3", "greys",
	  "hotcolors", "newbluepumps", "polkared", "rubies", "yellow"
        );
    shoeindex = new Array (
          8,            // polkared
          2,            // flats
          // 3,            // gold
          9             // rubies
        );
    lastwhere = shoeindex.length - 1;

    // preload pictures of shoes
    if (document.images) {
	for (i = shoeindex.length - 1; i >= 0; i--) {
	    myimage = new Image();
	    myimage.src = "Shoes/" + allshoes[i] + ".jpg";
	}
    }

    // rotate to a picture of the next pair of shoes
    function setShoe() {
        if (!document.images)
	    return;
        if (++lastwhere >= shoeindex.length)
	    lastwhere = 0;
        // n = shoeindex[0];
        while (true) {
            n = Math.random();
            n *= allshoes.length;
            n = Math.floor (n);
            for (i = shoeindex.length - 1; i >= 0; i--) {
                if (n == shoeindex[i])
		    break;
            }
            if (i < 0) {
		num = lastwhere + 1;
		where = document.images["shoes" + num];
		if (where)
		    where.src = "Shoes/" + allshoes[n] + ".jpg";
		shoeindex[lastwhere] = n;
		return true;
	    }
        }
    }

    // start up the rotating shoe displays
    setInterval ('setShoe()', 1500);
