// image rollover script
// build an array of images
var images  = new Array(12);
images[0]  	= "/images/buttons/products-off.gif";
images[1]  	= "/images/buttons/products-over.gif";
images[2]  	= "/images/buttons/about-off.gif";
images[3]  	= "/images/buttons/about-over.gif";
images[4]  	= "/images/buttons/press-off.gif";
images[5]  	= "/images/buttons/press-over.gif";
images[6]  	= "/images/buttons/stores-off.gif";
images[7]  	= "/images/buttons/stores-over.gif";
images[8]  	= "/images/buttons/blog-off.gif";
images[9]  	= "/images/buttons/blog-over.gif";
images[10]     = "/images/buttons/contact-off.gif";
images[11]     = "/images/buttons/contact-over.gif";

// preload the images
function preload() {
	var tmp = null;
	for(var j = 0; j < images.length; j++) {
		tmp = images[j];
		images[j] = new Image();
		images[j].src = tmp;
	}
}

void(preload());

// swap images
function imageSwap(image, swap) {
	image.src = images[swap].src;
}

// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var submitRolls = new Object();

function submitroll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Submit Query";
this.write=submitroll_write;
}

function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;

document.write
	(
	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
	' HREF="javascript:'
	);

if (this.sendfield)
	{
	if (! this.sendvalue)
		this.sendvalue = 1;
	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
	}

document.write(thisform + '.submit();void(0);"');
if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');
document.write('>');

document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
	{
	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
	document.forms[document.forms.length - 1].elements[this.sendfield].value='';
	}
}