function randomID(index) {
  var ret = Math.floor( Math.random()*(index));
	return ret;
}

function setSwapImg(){
  setTimeout('swapImg()', 3000);
}

function swapImg(){
  try{
    changeImg(); 
    swapID = setTimeout('swapImg()',3000); 
  }catch (e){
  }
}