/***********************************************************

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.

***********************************************************/

// 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(
                "oview_up", "oview_dn", "overview_up", "overview_dn",
                "ghits_up", "ghits_dn",
                "detail_up", "detail_dn"
                ); // end names array

        //pre-load images
        button = new Array(names.length);
        for (i = 0; i < names.length; i++){
                b = names[i];
                button[b] = new Image();
                button[b].src = "graphics/" + b + ".gif";
                } // end for

        } // end if

//change images
function wiggle(n,s) {
        index = n + "_" + s;
        if (browser) document[n].src = button[index].src;
        return true;
        } // end wiggle

// note that none of the above code will work on some MS browsers-->

