var OPACITY = 50;

function init_img()
{
	for(i=0; i<arguments.length; i++)
	{
		this[i]=new Image();
		this[i].src= arguments[i];
	}
}

function rollover(id_image, img)
{
	id_image.src=img;

}

//Reveal image
function rolloverAlphaIn(thisOne){
	theImage=thisOne
	reveal=setInterval("incFilter(theImage)",10)//increment time in milliseconds

}

//Return to original opacity.
//I originally faded the images back into opacity,
//but if you move the mouse over another image, 
//the fading back stops, so it must be done instantaneously
function rolloverAlphaOut(thisOne){
	clearInterval(reveal)
	thisOne.filters.alpha.opacity=OPACITY;
}

function incFilter(current){
	if (current.filters.alpha.opacity<100)
		current.filters.alpha.opacity+=10;//amount to increment until 100%
	else{
		clearInterval(reveal);
	}
}

