/*
File name: rollover.js
Autored by: Loic Kreitmann
Date authored: 06/14/2001
Modified by: Loic Kreitmann
Date last modified: 06/15/2001
Description:
	Image rollover function declaration JavaScript include for Mattel.com.
*/
function swapImg(imgName,varName,state) {
/*	imgName id the value of the name="" attribute of the <img> tag
	varName is the name of the JavaScipt variable used to preload the image
	state is either 0 for Off or 1 for On */
	var obj = eval("document." + imgName);
	var daImage = eval(varName + "[" + state + "]");
	obj.src = daImage.src;
	}