window.onload = function() {
	var pict = document.getElementsByName('pict');
	for (var j = 0; j<pict.length; j++) {
		var links = pict[j].parentNode.getElementsByTagName('a');
		for (var i = 0; i<(links.length-1); i++) {
			links[i].onclick = function () {
			var s = this.getAttribute("href");
			(this.parentNode.getElementsByTagName('img')[0]).setAttribute('src',s);
			return false;
			}
		}
	}
}