
numSUB=1

IE5=NN4=NN6=false
if(document.all)IE5=true
else if(document.layers)NN4=true
else if(document.getElementById)NN6=true

function init() {
	 showSub(0)
}

function showSub( which ) {
	for(i=0;i<numSUB;i++) {
		if(NN4) eval("document.sub"+i+".visibility='hidden'")
		if(IE5) eval("document.all.sub"+i+".style.visibility='hidden'")
		if(NN6) eval("document.getElementById('sub"+i+"').style.visibility='hidden'")
	}
	if(NN4) eval("document.sub"+which+".visibility='visible'")
	if(IE5) eval("document.all.sub"+which+".style.visibility='visible'")
	if(NN6) eval("document.getElementById('sub"+which+"').style.visibility='visible'")
}

window.onload = loadPic;


var myPix = new Array(
	"/images/gallery_images/gallery_1.jpg",
	"/images/gallery_images/gallery_2.jpg",
	"/images/gallery_images/gallery_3.jpg",
	"/images/gallery_images/gallery_4.jpg",
	"/images/gallery_images/gallery_5.jpg",
	"/images/gallery_images/gallery_6.jpg",
	"/images/gallery_images/gallery_7.jpg",
	"/images/gallery_images/gallery_8.jpg",
	"/images/gallery_images/gallery_9.jpg",
	"/images/gallery_images/gallery_10.jpg",
	"/images/gallery_images/gallery_11.jpg",
	"/images/gallery_images/gallery_12.jpg",
	"/images/gallery_images/gallery_13.jpg",
	"/images/gallery_images/gallery_14.jpg",
	"/images/gallery_images/gallery_15.jpg",
	"/images/gallery_images/gallery_16.jpg"

);

function loadPic() {
	randomNum = Math.floor((Math.random() * myPix.length));
	document.getElementById("myPicture").src = myPix[randomNum];
	
}