﻿var images = new Array();

images[0] = "/newimages/watch.jpg"; 
images[1] = "/newimages/food1.jpg";
images[2] = "/newimages/food2.jpg";
images[3] = "/newimages/food3.jpg";
images[4] = "/newimages/grill.jpg";
images[5] = "/newimages/range.jpg";

function ShowImg() {
var number = images.length;
var increment = Math.floor(Math.random() * number);
var strTemp ='<img src="' + images[increment] + '" + alt="" height="175" width="240" />';
document.write(strTemp);
}

var rotate = 5000; 
var count = 0;

function RotateImg(myImage){
 myImage.src=images[count];
 count++;
 if(count==images.length){count = 0;}
 setTimeout("RotateImg(myImage)",rotate);
} 



