// JavaScript Document
var myStrip = new Array()
myStrip[0]=['photos/photostrip0.jpg'];
myStrip[1]=['photos/photostrip1.jpg'];
myStrip[2]=['photos/photostrip2.jpg'];
myStrip[3]=['photos/photostrip3.jpg'];
myStrip[4]=['photos/photostrip4.jpg'];
myStrip[5]=['photos/photostrip5.jpg'];
myStrip[6]=['photos/photostrip6.jpg'];
myStrip[7]=['photos/photostrip7.jpg'];
myStrip[8]=['photos/photostrip8.jpg'];
myStrip[9]=['photos/photostrip9.jpg'];
myStrip[10]=['photos/photostrip10.jpg'];
myStrip[11]=['photos/photostrip11.jpg'];
myStrip[12]=['photos/photostrip12.jpg'];
myStrip[13]=['photos/photostrip13.jpg'];
myStrip[14]=['photos/photostrip14.jpg'];
myStrip[15]=['photos/photostrip15.jpg'];
myStrip[16]=['photos/photostrip16.jpg'];
myStrip[17]=['photos/photostrip17.jpg'];
myStrip[18]=['photos/photostrip18.jpg'];
myStrip[19]=['photos/photostrip19.jpg'];
myStrip[20]=['photos/photostrip20.jpg'];
myStrip[21]=['photos/photostrip21.jpg'];

var imgCt = myStrip.length;
var randomNum = Math.floor((Math.random() * imgCt));

function chooseStrip() {
	if (document.images) {
		document.strip.src = myStrip[randomNum];
	}
}

// writes on the fly a document with photo
function showPic(whichPic, myWidth, myHeight){
	myCaption = whichPic.title;
	myWindow = window.open("", "_blank", "width=" + myWidth + ",height=" + myHeight + ",toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	myContent="<html><head><title>" + myCaption + "</title><link rel='stylesheet' type='text/css' href='sheets/wsd.css' media='screen'></head>"
	myContent += "<body onBlur='self.close()' onClick='self.close()'><img src=" + whichPic + " /></body></html>"

	myWindow.document.write(myContent)
	myWindow.document.close() 
}

function showGallery(whichPic, myWidth, myHeight){
	myCaption = whichPic.title;
	myWindow = window.open("", "_blank", "width=" + myWidth + ",height=" + myHeight + ",toolbar=0,resizable=0,location=0,menubar=0,status=0,scrollbars=0");
	myContent="<html><head><title>" + myCaption + "</title><link rel='stylesheet' type='text/css' href='../sheets/wsd.css' media='screen'></head>"
	myContent += "<body onBlur='self.close()' onClick='self.close()'><img src=" + whichPic + " /></body></html>"

	myWindow.document.write(myContent)
	myWindow.document.close() 
}

