﻿function checkTime(imageIndex, total)
{
	var i;
	for(i = 1; i<= total; i++)
	{
		changeBG("DivImages_" + i, "disn");
	}
	changeBG("DivImages_" + imageIndex, "disb");
	var nextIndex;
	if(imageIndex >= total)nextIndex = 1;
	else nextIndex = imageIndex + 1;
	if(nextIndex ==2)
		setTimeout("checkTime("+nextIndex+","+total+");",5000);
	else
		setTimeout("checkTime("+nextIndex+","+total+");",3000);
}



