// JavaScript Document
var theQuotes = new Array()
var thePics = new Array()
var numofPics = 10
var counter = 0

while (counter <= numofPics)
{
	thePics[counter] = "Random" + counter + ".jpg"
	counter++;
}

counter = 0

// generate null quotes for all images, just in case
while (counter <= numofPics)
{
	theQuotes[counter] = ""
	counter++;
}

theQuotes[0] = "All images courtesy of Tourism Vancouver"
theQuotes[1] = "All images courtesy of Tourism Vancouver"
theQuotes[2] = "All images courtesy of Tourism Vancouver"
theQuotes[3] = "All images courtesy of Tourism Vancouver"
theQuotes[4] = "All images courtesy of Tourism Vancouver"
theQuotes[5] = "All images courtesy of Tourism Vancouver"
theQuotes[6] = "All images courtesy of Tourism Vancouver"
theQuotes[7] = "All images courtesy of Tourism Vancouver"
theQuotes[8] = "All images courtesy of Tourism Vancouver"
theQuotes[9] = "All images courtesy of Tourism Vancouver"
theQuotes[10] = "All images courtesy of Tourism Vancouver"

var rn = Math.round(Math.random() * (thePics.length - 1))

document.write("<img alt='a random image from our gallery' src='images/random/"+thePics[rn]+"' BORDER=0></a>")
document.write("<br>")
document.write('<div align="center"><font color="yellow" size="-2" face="Verdana, Arial, Helvetica, sans-serif">'+theQuotes[rn]+'</font></div>')
