//<![CDATA[
var thumbloader = new Object();
thumbloader = function(obj, triggers) {
	if (typeof(obj) == "string") {
		this.obj = document.getElementById(obj);
	}
	else {
		this.obj = obj;
	}
	this.triggers = triggers;
	var tldr = this;
	for (key in triggers) {
		var trigger = document.getElementById(key);
		if (trigger) {
			trigger.onclick = function() {
				tldr.load(this);
			}
		}
	}
}
thumbloader.prototype = {
	load: function(trigger) {
		this.obj.src = this.triggers[trigger.id];
	}
}
//]]>

