/**
 * Switches the big picture with the following details.
 *
 * @param string src The image location
 * @param string caption 
 */
function switchBigPicture(image, src, caption)
{
	/* Update big picture. */
	img = document.getElementById('school-picture-big');
	p = document.getElementById('school-picture-big-caption');
	img.src = src;
	p.childNodes[0].nodeValue = caption;
	
	/* Deselect old active thumbnail. */
	table = image.parentNode.parentNode.parentNode;
	images = table.getElementsByTagName('IMG');
	for (var i = 0; i < images.length; i++)
	{
		images[i].className = '';
	}
	/* Select new active thumbnail. */
	image.className = 'selected';
}