var collection_6= new Array(); if(collection_6.length>0){ setInterval('gallery6()',6000); var counter_6=0; document.getElementById("callout2a").innerHTML=collection_6[counter_6]; counter_6++; function gallery6(){ if(counter_6 > collection_6.length-1){ counter_6=0; } document.getElementById("callout2a").innerHTML=collection_6[counter_6]; counter_6++; } }