// JavaScript Document
function openThumb(imgFile, winTitle, winFeatures, showImgTitle) {
	var imgTitle = new String();
	var start = new Number();
	var end = new Number();
	start = imgFile.lastIndexOf("/")+1;
	end = imgFile.lastIndexOf(".");
	imgTitle = imgFile.slice(start,end);
	imgTitle = imgTitle.replace("_",".");
	var newWin = open("", winTitle, winFeatures);
	newWin.document.writeln("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
	newWin.document.writeln("<html xmlns='http://www.w3.org/1999/xhtml'>");
	newWin.document.writeln("<head>");
	newWin.document.writeln("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />");
	newWin.document.writeln("<Title>"+winTitle+"</Title>");
	newWin.document.writeln("<style type='text/css'>");
	newWin.document.writeln("body {");
	newWin.document.writeln("background-color: #FFFFFF;")
	newWin.document.writeln("margin: 5px;")
	newWin.document.writeln("}");
	newWin.document.writeln("</style>");
	newWin.document.writeln("<"+"/"+"head>");
	newWin.document.writeln("<body bgcolor='#FFFFFF' onblur='window.close();'>");
	newWin.document.writeln("<table width='100%'  border='0' align='center' cellpadding='0' cellspacing='0'>");
	newWin.document.writeln("<tr>");
	newWin.document.write("<td><div align='center'><img src="+imgFile);
	if (showImgTitle==true) {
		newWin.document.write(" alt="+imgTitle+" title="+imgTitle);
	}
	newWin.document.write(" /></div></td>");
	newWin.document.writeln(" ");
	newWin.document.writeln("</tr>");
	newWin.document.writeln("</table>");
	newWin.document.writeln("</body>");
	newWin.document.writeln("</html>");
	newWin.document.close();
	newWin.focus();
	
	return false;
}

function closeThumb() {
	if (window.w!=null) {
		if (!window.w.closed) {
			window.w.close();
		}
	}
}


