function doTrans(imgObj, oImg) 
{
    imgObj.filters[0].apply();
    oImg.src = "image/"+images[nextImage];
    imgObj.style.backgroundColor = bgColors[nextColor];
    imgObj.filters[0].play();
    
    nextImage += 1;
    if(nextImage >= numImages)
		nextImage = 0;
    nextColor += 1;
    if(nextColor >= numColors)
		nextColor = 0;
		
}

