var gfxPath = "http://www.heather-johnston.com/images/site/";
var agt=navigator.userAgent.toLowerCase();
var bVer = parseInt(navigator.appVersion); 

function swapImage(imagePath) {document.myimage.src=imagePath}

function loadWin(mygfx, winWidth, winHeight) {
	winPath = gfxPath + mygfx ;
	W = winWidth ;
	H = winHeight ;
	if (bVer >= 4) {
		L = screen.width / 2 - W / 2 ;
		T = screen.height / 2 - H / 2 ;
	}
	else {
		L = 100 ;
		T = 100 ;
	}	    
    myWindow = window.open(winPath,'myWin','menubar=no,width='+W+',height='+H+',left='+L+',top='+T+',screenX='+L+',screenY='+T+',status=no,scrollbars=no,resize=no,alwaysRaised=yes');
    myWin.document.title="Image Viewer"	
    myWindow.focus();
    if (myWindow.opener == null) myWindow.opener = window;
}