// mouseover_sub

var nrm_sub = new Array();
var omo_sub = new Array();


// Pre-load part.

if (document.images)
{
	for (i=0;i<stuff_sub.length;i++)
	{
		nrm_sub[i] = new Image;
		nrm_sub[i].src = base + stuff_sub[i] + "0.gif"
		omo_sub[i] = new Image;
		omo_sub[i].src = base + stuff_sub[i] + "1.gif";
	}
}


// The functions: first mouseover_sub, then mouseout_sub

function over_sub(no)
{
	if (document.images)
	{
		document.images[stuff_sub[no]].src = omo_sub[no].src
	}
}

function out_sub(no)
{
	if (document.images)
	{
		document.images[stuff_sub[no]].src = nrm_sub[no].src
	}
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

