var imagesDir;
function showSimpleGallery(_imagesDir, smallImages, bigImages, width, height) {	
	imagesDir = _imagesDir;
		
	sHTML = "<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\">";
	sHTML += "<tr>";
	sHTML += "<td colspan=\"" + smallImages.length + "\" align=\"center\" valign=\"middle\">";
	sHTML += "<img id=\"imageBase\" src=\"" + imagesDir + "/" + bigImages[0] +".jpg\" width=\"" + width + "\" height=\"" + height + "\"/>";
	sHTML += "</td>";
	sHTML += "</tr>";
	sHTML += "<tr>";
	for(var i = 0; i < smallImages.length; i++) {
		sHTML += "<td align=\"center\" valign=\"middle\"><a href=\"#\">";
		sHTML += "<img src=\"" + imagesDir + "/" + smallImages[i] + ".jpg\" border=\"none\" onmouseover=\"change('" + bigImages[i] +"');\"/>";
		sHTML += "</a></td>";
	}
	sHTML += "</tr>";
	sHTML += "</table>";
	
	document.write(sHTML);
}
function change(imageName) {
	img = document.getElementById('imageBase');
	if (img != null) {
		img.src=imagesDir + "/" + imageName + ".jpg";
	}
}
