function viewLargerImage(imageName) {

	var screen_width, screen_height, winWidth, winHeight;

	var win_top, win_left;

	var imgWin;

	screen_height = 0;

	screen_width = 0;

	win_top = 0;

	win_left = 0;



	if (window.innerWidth) {screen_width = window.innerWidth;}

	if (window.innerHeight) {screen_height = window.innerHeight;}



	win_top = 150;

	win_left = 50;

	winWidth = 250;

	winHeight = 250;



	imgWin = window.open("", "imageWin", "height="+winHeight+",width="+winWidth+",screenX="+win_left+",left="+win_left+",screenY="+win_top+",top="+win_top);

    if (!imgWin.opener) {imgWin.opener = window;}

	imgWin.document.open("text/html","replace");

	imgWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">');

	imgWin.document.writeln('<HTML>');

	imgWin.document.writeln('<HEAD>');

	imgWin.document.writeln('<TITLE>Image Viewer</TITLE>');

	imgWin.document.writeln('<LINK REL="stylesheet" HREF="/www2004/www2004.css" TYPE="text/css"');

	imgWin.document.writeln('</HEAD>');

	imgWin.document.writeln('<BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" onLoad="resizeViewer();">');

	imgWin.document.writeln('<CENTER>');

	imgWin.document.writeln('<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">');

	imgWin.document.writeln('<TR VALIGN="middle"><TD ALIGN="middle"><A HREF="javascript:close()"><IMG SRC="images/'+imageName+'.jpg" BORDER="0" NAME="imageBeingViewed" ALT="click to close"></A></TD></TR>');

	imgWin.document.writeln('<TR><TD ALIGN="middle"><A HREF="javascript:close()" CLASS=mainLink>close window</A></TD></TR></TABLE>');

	imgWin.document.writeln('<SCRIPT>function resizeViewer() {var newWidth=document.imageBeingViewed.width+20; var newHeight=document.imageBeingViewed.height+70; self.resizeTo(newWidth,newHeight);}</SCRIPT>');

	imgWin.document.writeln('</BODY>');

	imgWin.document.writeln('</HTML>');

	imgWin.document.close();

}





function viewGalleryLargerImage(imageName) {

	var screen_width, screen_height, winWidth, winHeight;

	var win_top, win_left;

	var imgWin;

//	alert(imageName);

	win_top  = 10;

	win_left = 10;

	winWidth = document.body.clientWidth - 10;

	winHeight = document.body.clientHeight - 10;



	imgWin = window.open(imageName, "imageWin", "height="+winHeight+",width="+winWidth+",screenX="+win_left+",left="+win_left+",screenY="+win_top+",top="+win_top);

    if (!imgWin.opener) {imgWin.opener = window;}
}
