// JavaScript Document

function ShowImage(obj)
	{
/*	
	The 'obj' object's 'href' property will have the full URL for the image shown in the
	thumbnail div.  The URL will be structured as 'http://gc.csmspace.com/images/thumbs/the_image_file_name.ext'.
	The full-size image will have the same name, but will NOT be in the 'thumbs' folder.
*/

	//get the href of the thumbnail image
	hrefThumb = obj.href;
	//replace the '/thumbs' with an empty string
	urlFull = hrefThumb.replace(/\/thumbs/,'');
	//get a reference to the <td> element that holds the image
	imgObj = document.getElementById('imgsrc');
	//install the correct HTML for the image
	imgObj.innerHTML='<img src="' + urlFull + '">';
	//get a reference to the display div
	displayDivObj = document.getElementById('fullimg');
	//make it visible
	displayDivObj.style.visibility='visible';
	return false;
	}
	
function CloseImage()
	{
	displayDivObj = document.getElementById('fullimg');
	displayDivObj.style.visibility='hidden';
	}
