<!--

/*
Where you use this swap function, you must define the images array in the <head> section of page.
For Example:
	var arrGenImg = new Array("images/img_on.gif","images/img_off.gif");
	PreloadImagesGen();

Swap usage: SwapGen('imagename',0)
*/


// START: Rollover functions >>>
var arrGenImgObj = new Array();

function PreloadImagesGen(){
	for(var i=0; i < arrGenImg.length; i++){
		arrGenImgObj[i] = new Image();
		arrGenImgObj[i].src = arrGenImg[i];
	}
}

function SwapGen(imgName,imgIndex){
	eval('document.images["' + imgName + '"]').src = arrGenImgObj[imgIndex].src;
}
// <<< END: Rollover functions

//-->
