var how_many_items = 3;var now = new Date()var sec = now.getSeconds()var item = sec % how_many_items;item +=1;document.write('<img src="css/img/moreinfo-arrow' + item + '.gif" class="moreinfo" alt="more info" />');