/*****************************************************/
/* Javascript Library                                */
/*****************************************************/

/**********************************************************/
/* Function showImage - Show Image in New Window          */
/**********************************************************/

var windowImage = null;

function showImage(imageURL) {

if (windowImage != null && !windowImage.closed) windowImage.close();

windowImageOptions = "resizable,width=400,height=200,left=20,top=0";

windowImage = window.open("", 'windowImage', windowImageOptions);

windowImage.document.open("text/html", "replace");
windowImage.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n');
windowImage.document.write('<html><head>\n');
windowImage.document.write('<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />\n');
windowImage.document.write('<meta http-equiv="imagetoolbar" content="false">\n');
windowImage.document.write('<title>Product Photo</title>\n');
windowImage.document.write('<script language="javascript">\nvar x = 30;\nvar y = 62;\nif (navigator.appName=="Netscape")y=90;\n');
windowImage.document.write('function resizer() {\n');
windowImage.document.write('self.resizeTo(self.document.images[0].width+x,self.document.images[0].height+y);\n');
windowImage.document.write('self.focus();\n}\n</script>\n');
windowImage.document.write('<style type="text/css">\n\n');
windowImage.document.write('body {\n\tpadding: 0px;\n\tmargin: 0px;\n}\n\n');
windowImage.document.write('a:link, a:visited  {\n\tpadding: 1px;\n\tmargin: 1px;\n');
windowImage.document.write('\tfont: bold 12px/175% Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif;\n');
windowImage.document.write('\tcolor: #ffffff;\n\ttext-decoration: none;\n');
windowImage.document.write('\tbackground-color: #00008b;\n\tborder: 3px outset #000;\n}\n\n');
windowImage.document.write('a:hover {\n\tcolor: #ff0000;\n\ttext-decoration: none;\n');
windowImage.document.write('\tbackground-color: #ffffc0;\n\tborder: 3px inset #000;\n}\n\n');
windowImage.document.write('</style>\n');
windowImage.document.write('<meta name="MSSmartTagsPreventParsing" content="TRUE">\n');
windowImage.document.write('</head><body onload="resizer();">\n');
windowImage.document.write('<div align="center"><image src="');
windowImage.document.write(imageURL);
windowImage.document.write('" border="0" name="productImage"><br>\n');
windowImage.document.write('<a href="#" onclick="self.close();">&nbsp;&nbsp;CLOSE&nbsp;&nbsp;</a></div>\n');
windowImage.document.write('</body></html>\n');

windowImage.document.close();

}

