function gallery()
{
		alert(newImgSource)
	if(document.getElementById('imgGallery'))
	{
		var objGallery = document.getElementById('imgGallery');
		var colA = objGallery.getElementsByTagName('A');

		for(var i=0; i<colA.length; i++)
			colA[i].onclick = changePhoto;
	}
}

function changePhoto()
{
	var smallImgSource = this.getElementsByTagName('IMG')[0].src;
	var tempSrc = smallImgSource.substring(0, smallImgSource.length - 1)
	var newImgSource = tempSrc + 'n' ;
	var normalOldImg = document.getElementById('bigPhoto');
		normalOldImg.src = newImgSource;
	return false;
}