function goImgWin(myImage,myWidth,myHeight,origLeft,origTop) {
myHeight += 24;
myWidth += 24;
var str = ',toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
var TheImgWin = window.open('about:blank', 'new', 'height=' + myHeight + ',width=' + myWidth + str);
TheImgWin.document.write("<TITLE>Dunston Family Church serving Dunston, Gateshead and beyond: Close window when done<\/TITLE>")
TheImgWin.document.write("<img border='0' src='" + myImage + "'><br>"); 
TheImgWin.document.write("<a href='#' onclick='window.close();'>Close Window<\/a>")
TheImgWin.resizeTo(myWidth+2,myHeight+30);
TheImgWin.moveTo(origLeft,origTop);
TheImgWin.focus();
}
function raw_popup(url, target) {
	var features = 'left=20, top=20, statusbar=0, menubar=0, width=650, height=650 scrollbars=1, resizable=1';
	var target = '_blank';
	var theWindow = window.open(url, target, features);
	theWindow.focus();
	return theWindow;
}
function link_popup(src) {
	return raw_popup(src.getAttribute('href'));
	return
}
function loadImages(nimgs) {
	for (i = 1; i <= nimgs; i++) {
		var jj = String(i)
		var j = "00" + String(i)
		var k = j.substring(j.length-2)
		var lrgimg = "http://www.dunstonfamilychurch.co.uk/images/pc_33/dfcimg" + k + ".jpg"
		var smlimg = "http://www.dunstonfamilychurch.co.uk/images/pc_10/dfcimg" + k + ".jpg"
		var outStr="<br><a href=\"" + lrgimg + "\" target=\"_blank\" onclick=\"goImgWin('" + lrgimg + "',650,550,100,100);return false;\">"
		outStr = outStr + "<img src=\"" + smlimg + "\" width=\"200\" border=\"0\" alt=\"Dunston Family Church: Dunston Activity Centre (Click for larger picture\" title=\"Dunston Family Church: Dunston Activity Centre (Click for larger picture)\"></a><br>"
		document.write(outStr)
	}
}	