/***********************************************************

This code is copyright (c) 2005 by RestonTech, 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 RestonTech's
scripts to: techsupport@restontech.com.

***********************************************************/

//list of all image names to be used, in any order
names = new Array(
	"aboutus",
	"clients",
	"competencies",
	"contactus",
	"home",
	"inthenews",
	"publications"
	);

//crap 'cause some browsers (MSIE) do not support image.src!
if (parseInt(navigator.appVersion) >= 3)
	Browser = true;
	else Browser = false;

//pre-load images
if (Browser) {
	button = new Array(2 * names.length);
	for (i = 0; i < names.length; i++){
		b = names[i];
		button[(b+'_down')] = new Image();
		button[(b+'_down')].src = '/i/nav_' + b + '_down.gif';
		button[(b+'_up')] = new Image();
		button[(b+'_up')].src = '/i/nav_' + b + '_up.gif';
		} // end for
	} // end if

//change images
function wiggle(n,s) {
	if (Browser) {
		index = n + "_" + s;
		document[n].src = button[index].src;
		} // end if
	return true;
	} // end wiggle