var IG = {
	init: function(placeholder, anchorrel) {
		if (!document.getElementById||!document.getElementsByTagName) { return true; };
		this.placeholder = placeholder;
		this.anchorrel = anchorrel;
		var anchors = document.getElementsByTagName('a');
		for (i=0; anchor=anchors[i]; i++) {
			if (anchor.getAttribute('rel')!=this.anchorrel) { continue; };
			var b = IG.swap.bindAsEventListener(this);
			Event.observe(anchor, 'click', b);
			anchor.onclick = function() { return false; }; // Workaround Safari's poor support of Event.stop()
		};
	},
	swap: function(e) {
		var anchor = Event.findElement(e, 'a');
		var placeholder = $(this.placeholder);
		placeholder.src = anchor.href;
		Event.stop(e);
	}
};