var howMany = 4 // number of quotes (end number)
var quote = new Array(howMany+1)
quote[0]='<img src="images/homeslide/slide1.jpg" alt="fountain and statue" />'
quote[1]='<img src="images/homeslide/slide2.jpg" alt="beautiful patio" />'
quote[2]='<img src="images/homeslide/slide3.jpg" alt="beautiful flowers" />'
quote[3]='<img src="images/homeslide/slide4.jpg" alt="beautiful backyard" />'
quote[4]='<img src="images/homeslide/slide5.jpg" alt="beautiful front yard" />'

function rndnumber(){
var randscript = -1
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1))
}
return randscript
}
quo = rndnumber()
quox = quote[quo]
document.write(quox)
