app = navigator.appName;

// var window_width = 660;
// var window_height = 500;
var window_width = 340;
var window_height = 260;

var window_top = (screen.height - window_height) / 2;
var window_left = (screen.width - window_width) / 2;

if (app == "Netscape") {
	window_top = window_top-35;
} else {
	window_top = window_top-40;
}

/////////////////////////////////////////////////////////////////////
// function     openWindow
/////////////////////////////////////////////////////////////////////
function openWindow() {
	var newWindow = window.open('/webcam2.html', 'newWindow', 'toolbar=0,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,width=' + window_width + ',height=' + window_height + ',copyhistory=0,top='+ window_top +',left=' + window_left);
//	newWindow.document.write('<HEAD>\n<script type="text/javascript" language="JavaScript">\n<!--\nonLoad=focus;\nonBlur=focus;\n// -->\n</script>\n<TITLE>Tom & Crissy\'s Webcam</TITLE>\n</HEAD>\n<BODY>\n<CENTER>\n<applet code="JavaCam.class" width="320" height="240">\n<param name="URL" value="http://www.pohl-family.net/cgi-bin/webcam32.cgi?piglet.pohl-family.net"><param name="Interval" value="1">\n</applet>\n</CENTER>\n</BODY>\n');
//	newWindow.focus();
}

function openWindow2() {
	window_width = 420;
	window_height = 320;
	var newWindow = window.open('http://owl.pohl-family.net/cgi-bin/last10.cgi', 'newWindow', 'toolbar=0,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,width=' + window_width + ',height=' + window_height + ',copyhistory=0,top='+ window_top +',left=' + window_left);
//04/26/01	var newWindow = window.open('/webcam3.html', 'newWindow', 'toolbar=0,location=no,directories=no,status=yes,scrollbars=no,resizable=yes,width=' + window_width + ',height=' + window_height + ',copyhistory=0,top='+ window_top +',left=' + window_left);
//	newWindow.document.write('<HEAD>\n<script type="text/javascript" language="JavaScript">\n<!--\nonLoad=focus;\nonBlur=focus;\n// -->\n</script>\n<TITLE>Tom & Crissy\'s Webcam</TITLE>\n</HEAD>\n<BODY>\n<CENTER>\n<applet code="JavaCam.class" width="320" height="240">\n<param name="URL" value="http://www.pohl-family.net/cgi-bin/webcam32.cgi?piglet.pohl-family.net"><param name="Interval" value="1">\n</applet>\n</CENTER>\n</BODY>\n');
//	newWindow.focus();
}
