/* Pop-up for images */
function enlargeImage(url, windowName) {

	// window
	windowTitle =windowName+"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <";
	w = window.open('','ossi','width=500,height=400,resizable=yes,toolbars=no,location=no');
	with (w.document) {
		open();
		write("<html><head><title>"+windowTitle+"</title>");
		write("<script language='javascript' type='text/javascript'>");

		// resize window
		write("function size() { with(document.images[0]) {");
			write("var imgw=width; var imgh=height;");
			write("if(document.all) { imgw +=12; imgh +=74; } else { imgw +=40; imgh +=60; }");
			write("if (imgw > 15) { window.resizeTo(imgw, imgh); }");
			write("}}");
		write("</script>");

		write("</head>");
		write('<body bgcolor="#333333" style="margin:0px;background-image:url(loading.gif)');
		if(!document.all) write(';margin-top:15px');
		write('"><center><a href="javascript:window.close();">');
		write('<img border=0 onload="javascript:size()" galleryimg="yes" title="click to close" src="'+url+'"></a>');
		write('</center></body></html>');
		close();
	}

	// position window
	if (screen.width > 800)	{ w.moveTo(250,120); }
}
 


