
function createGalleryItem(fileName)
{
	var xmlDoc = parseXmlFile(fileName);

	var title = getNodeContent(xmlDoc,"title");
	var date = getNodeContent(xmlDoc,"date");
	var thumbnail = getNodeContent(xmlDoc,"thumbnail");
	thumbnail = formatHtml(thumbnail);

	document.write("<table class=\"columns-layout-item\"; style=\"background-color: rgb(40,40,40);\">");
	document.write("	<tr>");

	createRoundedTop();

	document.write("	</tr>");
	document.write("	<tr>");
	document.write("		<td></td>");

	// Content
	document.write("		<td>");
	document.write("			<img src=\"" + thumbnail + " \">");
	document.write("<br>");

	if ((date != undefined) || (title != undefined))
	{
		document.write("		    <div style=\"float: right; margin-top: 5px;\">");

		if (date != undefined)
		{
			document.write("		    <span class=\"item-date\">");
			document.write("			   " + date);
			document.write("		    </span>");
		}

		if (title != undefined)
		{
			document.write("		    <span class=\"item-title\">");
			document.write("			   " + title);
			document.write("		    </span>");
		}
	
		document.write("		    </div>");
	}

	document.write("</td>");

	document.write("		<td></td>");
	document.write("	</tr>");
	document.write("	<tr>");

	createRoundedBottom();

	document.write("	</tr>");
	document.write("</table>");
}

