var images = new Array();



images[0] = "http://www.ifadeval.org/offer/rotate/1.gif";

images[1] = "http://www.ifadeval.org/offer/rotate/2.gif";

images[2] = "http://www.ifadeval.org/offer/rotate/3.gif";

images[3] = "http://www.ifadeval.org/offer/rotate/4.gif";



function ShowImg() {

var number = images.length;

var increment = Math.floor(Math.random() * number);

var strTemp ='<img src="' + images[increment] + '">';

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);

} 
