var images = new Array();

images[0] = "/images/faucet.png"; 
images[1] = "/images/shower.png";
images[2] = "/images/faucet2.png";
images[3] = "/images/faucet4.png";
images[4] = "/images/knob.png";


function ShowImg() {
var number = images.length;
var increment = Math.floor(Math.random() * number);
var strTemp ='<img src="' + images[increment] + '"id="header-img" alt="" height="270" width="200" />';
document.write(strTemp);
}

var rotate = 4; 
var count = 0;

function RotateImg(myImage){
 myImage.src=images[count];
 count++;
 if(count==images.length){count = 0;}
 setTimeout("RotateImg(myImage)",rotate);
} 
