Basic Types of Trees and their Leaves

The following code was used in this slideshow:

var images = ['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg','6.jpg','7.jpg','8.jpg','9.jpg','10.jpg'];
var text = ["Maple Tree", "Pine Trees", "Oak Tree", "Fir Trees", "Elm Tree", 
"Maple Leaf", "Pine Leaves" , "Oak Leaf", "Fir Tree Leaves", "Elm Tree Leaf"];
var counter = 0;
function letsgetgoing()
{
if(counter == images.length)
{
counter = 0; 
}
document.getElementById("slideshow").style.background = "url('"+images[counter]+"')";
document.getElementById("textshow").innerHTML = text[counter];
counter += 1;
setTimeout("letsgetgoing()", 3000);
}