<!--
var NS4 = (document.layers);
var IE = (document.all);
// Two functions here and a hidden div in the body
// The popview loads the image into the hidden div
// which then displays it by calling the popupimg when it is loaded

// Put this in the body of the html page
// <div id="myhidden" style="position: absolute; visibility: hidden;">
// <img id="myimg" src="" onLoad="window.popupimg()">
// </div>

// Called by onload in the hidden IMG to pop up the window
function popupimg(){
	if (IE) {
		var img = document.images.myimg.src; 
		var x = document.images.myimg.width;
		var y = document.images.myimg.height;
	} else {
		var img = document.images["myimg"].src;
		var x = document.images["myimg"].width;
		var y = document.images["myimg"].height;
	}
	var myWindow;
	var bod="<html><head><title>Brownes Pictures</title></head><body background='"+img+"' onclick='window.close();' onblur='window.close();'></body></html>";
	var l=screen.width,t=screen.height;	l=(l-x)/2, t=(t-x)/2; var opn='width='+x+',height='+y+',left='+l+',top='+t;
   	myWindow=window.open('','soPopup',opn);	myWindow.document.open();	myWindow.document.write(bod); myWindow.document.close(); myWindow.focus();
}
// Put in the anchor href to load hidden img tag when clicked
function popview(img) {
    if (IE) {
        document.images.myimg.src=img;
    } else {
        document.images.myimg.src=img;
//		var im = new Image();
//		im.src = img; 
//		var myWindow;
//		var bod="<html><head><title>Joys Calling Pictures</title></head><body background='"+img+"' onclick='window.close();' onblur='window.close();'></body></html>";
//		var x=0,y=0,ct=0;
//		while (x<1){
//			x=im.width;
//			y=im.height;
//		}
//		x=im.width,y=im.height;
//		if (x==0) {x=400};
//		if (y==0) {y=400};
//		var l=screen.width,t=screen.height;	l=(l-x)/2, t=(t-x)/2; var opn='width='+x+',height='+y+',left='+l+',top='+t;
//	   	myWindow=window.open('','soPopup',opn);	myWindow.document.open();	myWindow.document.write(bod); myWindow.document.close(); myWindow.focus();
    }
}
-->