var img1 = "images/foto1.jpg"

var img2 = "images/foto2.jpg"

var img3 = "images/foto3.jpg"

var img4 = "images/foto4.jpg"

var img5 = "images/foto5.jpg"

var img6 = "images/foto6.jpg"

var img7 = "images/foto7.jpg"

var img8 = "images/foto9.jpg"



//get a random number...

var randomize = Math.round(Math.random()*8)



//select text/image based on random number

if (randomize == 1){newimg = img1}else if (randomize == 2){newimg = img2}



else if (randomize == 3){newimg = img3}

else if (randomize == 4){newimg = img4}

else if (randomize == 5){newimg = img5}

else if (randomize == 6){newimg = img6}

else if (randomize == 7){newimg = img7}

else if (randomize == 8){newimg = img8}

else{newimg = img8}



//output text/image

document.write('<IMG SRC="'+newimg+'">')




