
// -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function createImageItem(imageFileName,link, className, attributes)
{
//db(dir + fileName);

	document.write("<table class=\"" + className + "\"; style=\"background-color: " + itemColor + ";\" vbrl-float=" + quoted("left") + " " + attributes + " >");
	document.write("	<tr>");

	createRoundedTop();

	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td></td>");

	// Content
	document.write("		<td>");
	if (link != '')
	{
		document.write("	<a href=" + link + ">");
		document.write("			<img src=\"" + imageFileName + " \">");
		document.write("</a>"); // No space, avoids gap under images in IE.
	}
	else
	{
		document.write("			<img src=\"" + imageFileName + " \">");
	}
	document.write("</td>"); // No space, avoids gap under images in IE.

	document.write("		<td></td>");
	document.write("	</tr>");
	document.write("	<tr>");

	createRoundedBottom();

	document.write("	</tr>");
	document.write("</table>");
}

// -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

