// JavaScript Documentif (document.images) {// preload images large images love fellowship church image01=new Image()  image01.src="/commercial/images/loveFellowshipChurch_lg.jpg"}  var ImgWin=" " function imgwin(Imgn) // get width of large image that was pre loaded above { w=eval(Imgn+".width") if(w<100) {w=100}  h=eval(Imgn+".height") // get height of large image that was pre loaded above if(h<100) // cannot open window less than 100 by 100 pixels {h=100} h=h+25 picgif=eval(Imgn+".src") // build image source  if(ImgWin.open) // if the window is open close it {ImgWin.close()} /*Create window and display large image of thumbnail. If you want to change the position of the window when it pops up change the values for the top and left properties below in the variable WinProps. The values in top and left are number of pixels from the top and left of the edge of the screen. */ WinProps="width="+w+",height="+h+",location=no,status=no,directories=no,toolbar=no,scrollbars=no,menubar=no,resize=no,top=0,left=0" ImgWin=window.open("","winimg",config=WinProps); ImgWin.document.write("<HTML>") ImgWin.document.write("<HEAD><TITLE>Display Large Image</TITLE></HEAD>") ImgWin.document.write("<BODY marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='lightyellow'>") ImgWin.document.write("<CENTER><IMG SRC="+picgif+" BORDER='0' HSPACE=0 VSPACE=0><BR>") ImgWin.document.write("<FONT SIZE='3'><A HREF='#' onClick='self.close()'>Close Window</A></FONT></CENTER>") ImgWin.document.write("</BODY>") ImgWin.document.write("</HTML>")  ImgWin.document.close() ImgWin.focus() }  /*  If you add more thumbnail images make sure that you include the thumbnail and larger image in the  preload sections above. In the onClick event for the added images make sure you change the value being passed to match the image name of the large image that matches the thumbnail image. Both of these must be setup in the image preload sections above. */ 
