function rotate(iid,path) 
{
	if(iid==0)
	{
		document.getElementById("image0").src = path + "000.jpg";
		window.setTimeout(function(){rotate(1,path);path=null}, 3000);  // 3 seconds;
	}
	else if(iid==1)
	{
		document.getElementById("image0").src = path + "0000.jpg";
		window.setTimeout(function(){rotate(2,path);path=null}, 3000);  // 3 seconds;
	}
	else if(iid==2)
	{
		document.getElementById("image0").src = path + "00.jpg";
		window.setTimeout(function(){rotate(0,path);path=null}, 3000);  // 3 seconds;
	}	
}
