function hoverThese(index, NumImages, ImageFormat, ControlID){
	for(i=0;i<NumImages;i++){
		if(index<i)
			document.getElementById(ReplacePlus(ControlID,"{0}", i)).src = ImageFormat.replace("{0}", 0);
		else
			document.getElementById(ReplacePlus(ControlID,"{0}", i)).src = ImageFormat.replace("{0}", 2);

	}		
}

function unhoverAll(NumImages, ImageFormat, ControlID){
	for(i=0;i<NumImages;i++){
		document.getElementById(ReplacePlus(ControlID,"{0}", i)).src = ImageFormat;
	}
}

function ReplacePlus(incomingText,sParam1,sParam2)
{
	workString=incomingText;
	str1 = sParam1;
	str2 = sParam2;
	while (workString.indexOf(str1)!=-1)
	{
		workString=workString.substring(0,workString.indexOf(str1))+str2+workString.substring(workString.indexOf(str1)+str1.length,workString.length);
	}
	return workString;
}