");
pop.window.document.write("");
if (comments_mode == 1)
pop.window.document.write(" alt=\""+comments+"\"");
else if (comments_mode == 2)
pop.window.document.write(" onMouseOver=\"poplink('"+comments+"');\" onMouseOut=\"killlink();\"");
if (!image_reduced || !adapt_image)
pop.window.document.write(" width="+image_width+" height="+image_height);
else
{
// find best dimension for image...
var ratioX;
if (allow_full_size) ratioX = (popup_width - 16) / image_width;
else ratioX = popup_width / image_width;
var ratioY = (popup_height) / image_height;
if (ratioY < ratioX) ratioX = ratioY;
var temp_width = ratioX * image_width;
var temp_height = ratioX * image_height;
pop.window.document.write(" width="+temp_width+" height="+temp_height);
if (allow_full_size)
{
pop.window.document.write(" name=\"embedded_image\" OnClick=\"if(IsReduced == 1) { embedded_image.width="+image_width+"; embedded_image.height="+image_height+";IsReduced=0;}else{embedded_image.width="+temp_width+"; embedded_image.height="+temp_height+";IsReduced=1;}\">");
pop.window.document.write("");
if (IsFullScreen == 1) pop.window.document.write(" |