/**
 * @author wayne ye
 * @version 1.0
 **/
var c=Math.floor(Math.random()*11);
var t;
var num=1;
function setmax(maxId)
{
	num=maxId;
	showImg();

}
function showImg()
{
	if(c>num)
	{
		c=1;
	}
	if(c==0)
	{
		c=1;
	}
	document.getElementById('artworks').src="kidArtsworks/"+c+'.gif';
	document.getElementById('artworks').alt="kidArtsworks/"+c+'.gif';
	t=setTimeout("showImg()",10000);
	c=c+1;
	
	
}
