function popupimage(url, ptitle, alttext, IdLang) {
	if ((ptitle=='')) {wintitle = 'Elefanti Italiani';} else {wintitle = ptitle;}
	if ((IdLang=='it')) {TxtCloseWin = 'chiudi questa finestra';TxtPrintWin = 'stampa';} else {TxtCloseWin = 'close window';TxtPrintWin = 'print';}
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no,status=no');
	w.document.writeln("<html>");
	w.document.writeln("  <head>");
	w.document.writeln("    <title>"+wintitle+"</title>");
	w.document.writeln("    <link href='../script/photo.css' rel='stylesheet' type='text/css' />");
	if (document.all) {
    	//IE4 = true;
	w.document.writeln("    <script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+6,document.images[0].height+100); window.focus();} else { setTimeout('checksize()',250) } }</"+"script>");
	}
	else {
    	//IE4 = false;
		w.document.writeln("    <script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+6,document.images[0].height+102); window.focus();} else { setTimeout('checksize()',250) } }</"+"script>");
	}
	w.document.writeln("  </head>");
	if (document.all) {
    	//IE4 = true;
		w.document.writeln("  <body onload='checksize();'>");
	}
	else {
    	//IE4 = false;
		w.document.writeln("  <body onload='checksize();' onblur='window.close();'>");
	}
	w.document.writeln("    <div>");
	w.document.writeln("      <div><img src='"+url+"' border=0 alt='"+alttext+"' onClick='top.close()'></div>");
	w.document.writeln("      <h3>"+alttext+"</h3>");
	w.document.writeln("      <div id='popupFoot'>");
	w.document.writeln("        <div id='closePop'><a href='javascript:window.close()'>"+TxtCloseWin+"</a></div><div id='printPop'><a href='javascript:window.print()'>"+TxtPrintWin+"</a></div>");
	w.document.writeln("      </div>");
		if (document.all) {
    	//IE4 = true;
		w.document.write("");
	}
	else {
    	//IE4 = false;

		w.document.write("");
				///if (document.layers) {
	    //	//NS4 = true;
		//}
		//else {
	    //	//NS4 = false;
		//}
	}
	w.document.writeln("    </div>");
	w.document.writeln("  </body>");;
	w.document.write("</html>");
	w.document.close();
}

function popupimage2(url, ptitle, alttext, IdLang) {
	if ((ptitle=='')) {wintitle = 'Elefanti Italiani';} else {wintitle = ptitle;}
	if ((IdLang=='it')) {TxtCloseWin = 'chiudi questa finestra';TxtPrintWin = 'stampa';} else {TxtCloseWin = 'close window';TxtPrintWin = 'print';}
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=yes,resizable=no,status=no');
	w.document.writeln("<html>");
	w.document.writeln("  <head>");
	w.document.writeln("    <title>"+wintitle+"</title>");
	w.document.writeln("    <link href='script/photo.css' rel='stylesheet' type='text/css' />");
	if (document.all) {
    	//IE4 = true;
	w.document.writeln("    <script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+6,document.images[0].height+100); window.focus();} else { setTimeout('checksize()',250) } }</"+"script>");
	}
	else {
    	//IE4 = false;
		w.document.writeln("    <script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+6,document.images[0].height+102); window.focus();} else { setTimeout('checksize()',250) } }</"+"script>");
	}
	w.document.writeln("  </head>");
	if (document.all) {
    	//IE4 = true;
		w.document.writeln("  <body onload='checksize();'>");
	}
	else {
    	//IE4 = false;
		w.document.writeln("  <body onload='checksize();' onblur='window.close();'>");
	}
	w.document.writeln("    <div>");
	w.document.writeln("      <div><img src='"+url+"' border=0 alt='"+alttext+"' onClick='top.close()'></div>");
	w.document.writeln("      <h3>"+alttext+"</h3>");
	w.document.writeln("      <div id='popupFoot'>");
	w.document.writeln("        <div id='closePop'><a href='javascript:window.close()'>"+TxtCloseWin+"</a></div><div id='printPop'><a href='javascript:window.print()'>"+TxtPrintWin+"</a></div>");
	w.document.writeln("      </div>");
		if (document.all) {
    	//IE4 = true;
		w.document.write("");
	}
	else {
    	//IE4 = false;

		w.document.write("");
				///if (document.layers) {
	    //	//NS4 = true;
		//}
		//else {
	    //	//NS4 = false;
		//}
	}
	w.document.writeln("    </div>");
	w.document.writeln("  </body>");;
	w.document.write("</html>");
	w.document.close();
}
