var myWind

// initialize global var for new window object
// so it can be accessed by all functions on the page
var newWind

// set flag to help out with special handling for window closing
var isIE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false

function newWindow(wincontent, winname, winsize) {
		myWind = window.open(wincontent, winname, winsize)
	}
	
// make the new window and put some stuff in it
function photoWindow1() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow1()", 100)
}

function finishphotoWindow1() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic01.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow2() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow2()", 100)
}

function finishphotoWindow2() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic02.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow3() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow3()", 100)
}

function finishphotoWindow3() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic03.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow4() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow4()", 100)
}

function finishphotoWindow4() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic04.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow5() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow5()", 100)
}

function finishphotoWindow5() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic05.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow6() {
	newWind = window.open("","subwindow","HEIGHT=500,WIDTH=380")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow6()", 100)
}

function finishphotoWindow6() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic06.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow7() {
	newWind = window.open("","subwindow","HEIGHT=500,WIDTH=380")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow7()", 100)
}

function finishphotoWindow7() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic07.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow8() {
	newWind = window.open("","subwindow","HEIGHT=500,WIDTH=380")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow8()", 100)
}

function finishphotoWindow8() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic08.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow9() {
	newWind = window.open("","subwindow","HEIGHT=500,WIDTH=380")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow9()", 100)
}

function finishphotoWindow9() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic09.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow10() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow10()", 100)
}

function finishphotoWindow10() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic10.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow11() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow11()", 100)
}

function finishphotoWindow11() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic11.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// make the new window and put some stuff in it
function photoWindow12() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow12()", 100)
}

function finishphotoWindow12() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic12.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow13() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow13()", 100)
}

function finishphotoWindow13() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic13.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow14() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow14()", 100)
}

function finishphotoWindow14() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic14.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}
// make the new window and put some stuff in it
function photoWindow15() {
	newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")
	// take care of Navigator 2
	if (newWind.opener == null) {
		newWind.opener = window
	}
	setTimeout("finishphotoWindow15()", 100)
}

function finishphotoWindow15() {
	var output = ""
	output += "<HTML><BODY>"
	output +="<img src=\"photos/pic15.jpg\"></BODY></HTML>"
	newWind.document.write(output)
	newWind.document.close()
}

// close subwindow, including ugly workaround for IE3
function closeWindow() {
	if (isIE3) {
		// if window is already open, nothing appears to happen
		// but if not, the subwindow flashes momentarily (yech!)
		newWind = window.open("","subwindow","HEIGHT=380,WIDTH=500")	
	}
	if (newWind && !newWind.closed) {
		newWind.close()
	}
}
