var collection_5= new Array(); if(collection_5.length>0){ setInterval('gallery5()',6000); var counter_5=0; document.getElementById("callout0a").innerHTML=collection_5[counter_5]; counter_5++; }else{ document.getElementById("callout0a").style.display="none"; } function gallery5(){ if(counter_5 > collection_5.length-1){ counter_5=0; } document.getElementById("callout0a").innerHTML=collection_5[counter_5]; counter_5++; }