// point the src attribute of the target <img> tag to the thumbnail, 
// then updates it's corresponding link to point to the full image.
function changeThumb(imgtag, filename) {
	$(imgtag).writeAttribute('src', filename+'_tn.jpg')
			 .up('a').writeAttribute('href', filename+'.jpg');
}

