/**
* Modified for Highslide from http://www.boutell.com/newfaq/creating/printpart.html
*/
hs.printImage = function (el) {
   var exp = hs.expanders[hs.getWrapperKey(el)];
   link = "about:blank";
   var pw = window.open(link, "_new","width=618,height=800");
   pw.document.open();
   pw.document.write(exp.getPrintPage());
   pw.document.close();
   return false;
};
hs.Expander.prototype.getPrintPage = function() {
   // We break the closing script tag in half to prevent
   // the HTML parser from seeing it as a part of
   // the *main* page.

	return "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'\n" +
        "	'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>" +
		"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n" +
		"<head>\n" +
		"<title>Temporary Printing Window</title>\n" +
		"<script type='text/javascript'>\n" +"function step1() {\n" +
		"  window.print();\n" +
		"  window.close();\n" +
		"}\n" +
		"</script>\n" +
		"</head>\n" +
		"<body onLoad='step1()'>\n" +
		"<div>" +
		"<img src='" + this.content.src + "' alt='' />\n" +
		"</div>" +
		"</body>\n" +
		"</html>\n";
};