var rand1 = 0;
var useRand = 0;
images = new Array;
images[1] = new Image();
images[1].src = "images/photo1.gif";
images[2] = new Image();
images[2].src = "images/photo2.gif";
images[3] = new Image();
images[3].src = "images/photo3.gif";
images[4] = new Image();
images[4].src = "images/photo4.gif";
function swapPic() {
var imgnum = images.length - 1;
do {
var randnum = Math.random();
rand1 = Math.round((imgnum - 1) * randnum) + 1;
} while (rand1 == useRand);
useRand = rand1;
document.randimg.src = images[useRand].src;}

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;}}
if (document.images) {
n_bh = newImage("images/n_bh.gif");}
function sh_item(where) {
if (document.images) {
storedLocation=where;
document.images["n"+where].src="images/n_bh.gif"; }}
function hd_item() {
if (document.images) {
where=storedLocation;
document.images["n"+where].src="images/n_b.gif"; }}