userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function preloadImages() {
	if (document.images) {
		pre1 = newImage("../images/lvl2_nav.jpg");
		pre2 = newImage("../images/lvl2_links.png");
		pre3 = newImage("../images/lvl2_gallery.png");
		pre4 = newImage("../images/lvl2_contact.png");
		pre5 = newImage("../images/lvl2_bio.png");
	}
}

	function showpic(pic,message,x,y) {
		x=x+20;
		y=y+50;
		var configz="addrbar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0";
		newwin=window.open(pic,'newwin',config='width='+(x+10)+',height='+(y+10)+','+configz)
		newwin.document.open();
		newwin.document.write('<html><head><title>Lou Guerin</title></head>');
		newwin.document.write('<body bgcolor="#000000">');
		newwin.document.write('<h1 style="color:#fff;font-size:12px;font-family:verdana,sans-serif;">'+message+'</h1>');
		newwin.document.write('<a href="javascript:self.close()"><img src="'+pic+'" title="Click to close window..." border="0" /></a>');
		newwin.document.write('</body></html>');
		newwin.moveTo(screen.width/2-x/2,0);
		newwin.document.close();
		return true;
	}
