var the_images = new Array(3);
the_images[0] = "url(images/picshow/pic3.jpg)";
the_images[1] = "url(images/picshow/pic1.jpg)";
the_images[2] = "url(images/picshow/pic2.jpg)";


var the_topic = new Array(3);
the_topic[0]="Do it Yourself";
the_topic[1]="Professional Contractors";
the_topic[2]="Dealers";

var the_description = new Array(3);
the_description[0]="If you can work with basic carpentry tools, you can install GenStone from the box to the wall in a fraction of the time. NO MASON NEEDED.";
the_description[1]="Standout from competition by offering the look of rock or stone that is installed by your siding crew while offering a look your customer will prefer.";
the_description[2]="With GenStone, retailers can offer customers a lower installed-cost solution that is easily installed.";

var the_timeout;
var index = 0;
function rotate()
{
	
	document.getElementById('my_image').style.background = the_images[index];
	
  //document.my_image.src = the_images[index].src;                       //works
  window.document.slideshow.topic.value = the_topic[index];
  window.document.slideshow.description.value = the_description[index];
   index++;
   if (index >= the_images.length) 
   if (index >= the_topic.length)
   if (index >= the_description.length)
    {
        index = 0;
    }
   the_timeout = setTimeout("rotate();", 9000);
}

