
function swapImage() {
	if (this.src.match(/-2\.jpg/)) {
		this.src = this.src.replace(/-2\.jpg/, "-1\.jpg");
	} else {
		this.src = this.src.replace(/-1\.jpg/, "-2\.jpg");
	}
	return false;
}

window.onload = function() {
	if (document.getElementById) {
		var imageSwapper = document.getElementById('swapper');
		if (imageSwapper) {
			imageSwapper.onclick = swapImage;
		}
	}
}

