var img = -1;
function refreshIt(images) 
{	
   var show = img + 1;
   if (show >= 0 && show <= images.length-1){
	rand1 = show;
   } else{
	rand1 = 0;
   }
   
   img = rand1;
   
   if (!images) return;
   document.getElementById('img').src = images[img];
   
   setTimeout('refreshIt(images)', 6000);
}
