function getRand(range) {
return Math.round(Math.random() * range);
}
ad = new Array();
ad[0] = "<img class='picframe' src='art/homepage-image0.jpg' alt='Random Image' height='240' width='160' border='0' vspace='15' />";
ad[1] = "<img class='picframe' src='art/homepage-image1.jpg' alt='Random Image' height='240' width='160' border='0' vspace='15' />";
ad[2] = "<img class='picframe' src='art/homepage-image2.jpg' alt='Random Image' height='240' width='160' border='0' vspace='15' />";
num = getRand(2);

document.write(ad[num]);
