function showPicture(picture) {
   var tn = "artwork/" + picture.image + "_tn.jpg";
   var large = "artwork/" + picture.image + ".jpg";
   if (picture.position == "L") {
      document.writeln("<tr>");
   }
   document.writeln("<td valign='top' width='150' align='center'>"); 
   document.writeln("<table width='100%' border='1' cellspacing='0' cellpadding='5' align='center' bordercolor='#000000'>");
   document.writeln("<tr>");
   document.writeln("<td align='center' class='lightgrey'><a href='#'>");
   document.writeln("<img src='" + tn + "' alt='" + picture.picturetitle + "' onMouseDown=\"MM_openBrWindow('" + large + "','','width=" + picture.imgwidth + ",height=" + picture.imgheight + "')\" border='0' width='" + picture.tnwidth + "' height='" + picture.tnheight + "'></a><br>");
   document.writeln("<span class='name'>" + picture.picturetitle + "<br>");
   if (picture.issold=="Y") {
      document.writeln("<font size=1 color=red>SOLD</font><br>");
   }
   document.writeln("</td>");
   document.writeln("</tr>");
   document.writeln("</table>");
   document.writeln("</td>");
   document.writeln("<td valign='top' width='300'>");
   document.writeln("<hr size='1' noshade>");
   document.writeln("<span class='subtitle'>" + picture.desc + "<br />");
   var fr = "Unsigned, ";
   if (picture.issigned == "Y") {
      fr = "Signed, ";
   }
   if (picture.issigned == "X") {
      fr = "Supplied ";
   }
   if (picture.isframed == "F") {
      document.writeln(fr + "mounted and framed<br />");
   }
   if (picture.isframed == "U") {
      document.writeln(fr + "unframed<br />");
   }
   if (picture.isframed == "M") {
      document.writeln(fr + "mounted<br />");
   }
   if (picture.isframed == "X") {
      if (picture.issigned == "Y") {
         document.writeln("Signed.<br />");
      } else {
         document.writeln("<br />"); 
      }
   }

   document.writeln("Size: " + picture.size + "<br />");
   if (picture.issold != "Y") {
      document.writeln("Price: &pound;" + picture.price + "<br /><br />");
      document.writeln("[<a href='enquiry.html'>Request</a>]</span></td>");
   }
   document.writeln("</span>");   
   document.writeln("</span>");
   document.writeln("</td>");
   if (picture.position == "R") {
      document.writeln("</tr>");
   }
}

function filler() {
   document.writeln("<td>&nbsp</td><td>&nbsp</td></tr>");
}

