
function showImageProxy(event) {
	for (var i = 0; i < pictures.length; ++i) {
		if (pictures[i].id == event.attachedTo.id) {
			showImage(pictures[i].title, pictures[i].path, pictures[i].width);
			return false;
		}
	}
	return true;
}

glow.ready(function() {

	for (var i = 0; i < pictures.length; ++i) {
		glow.events.addListener("#" + pictures[i].id, "click", showImageProxy);
	}
});

