// This contains some common functions for the search page.

function showImg(id) {
 var img = document.getElementById('img' + id);
 // If the standard is 1x1 it means that a spacer has been returned and that the image doesn't exist and shouldn't be shown.
 if (img && img.width != 1 && img.height != 1) {
  img.nextStyle='block'; // Make sure that nextStyle is set back to block.
  img.style.display='block';
 }
}
function hideImg(id) {
 var img = document.getElementById('img' + id);
 img.nextStyle='none'; // as onmouseout may be fired when img is displayed, later onmouseover events will set nextStyle back to block.
 var closure=function() {
	 img.style.display=img.nextStyle;
 }
 setTimeout(closure,100);
}
