/***********************************************************

This code is copyright (c) 1997, 1998, 1999 by Exit1, Incorporated.
All rights reserved. Unauthorized reproduction, modification,
or distribution of this code is expressly prohibited.

Authorization is granted if:
a) it is used for personal or non-commercial use, and
b) this copyright notice is included.

Please direct any questions about the use of Exit1's scripts
to: techsupport@exit1.com.

***********************************************************/

var author = "Exit1, Incorporated";

// This seems the best way to do this, but what we really want is to detect
// the ability to swap images. Oh well.
var browser = navigator.appVersion.substring(0,3) >= 3.0;

if (browser) {   // Sorry, MSIE 3.x users.

        //list of all image names to be used, in any order
        names = new Array(
                "believe",
                "do",
                "done",
                "say",
                "contact"
                ); // end names array

        states = new Array("up","dn","dk");

        //pre-load images
        button = new Array(names.length * states.length);
        for (i = 0; i < names.length; i++){
                for (s in states) {
                        b = names[i] + "_" + states[s];
                        button[b] = new Image();
                        button[b].src = "graphics/" + b + ".gif";
                        } // end for
                } // end for

        } // end if

var whereami = 'believe';        // first page

//change images
function wiggle(n,s) {
        var index = n + "_" + s;
        if (browser && (n != whereami)) document[n].src = button[index].src;
        return true;
        } // end wiggle

//highlight correct index
function hilight(n) {
        whereami = n;
        var index = n + "_dk";
        if (browser) {
                for (x in names) {
                        nam = names[x];
                        up = nam + "_up";
                        document[nam].src = button[up].src;
                        } // end for
                document[n].src = button[index].src;
                } // end if
        return true;
        }

top.loaded = true;

// note that none of the above code will work on some MS browsers-->

