new function(){
	var m = ge("materia"), img = getElementsByClassName("ampliar", m);
	for(var i = img.length; i--;){
		new function(a){
			var s = a.style;
			a.style.display = "none";
			img[i].onclick = function(){
				s.display = "";
				var p = getOffset(m), pImg = getOffset(findPrevious(this, "img")), b = getOffset(a);
				s.left = p.x + ((p.w >> 1) - (b.w >> 1)) + "px";
				s.top = pImg.y - (b.h >> 1) + (pImg.h >> 1) + "px";
				getElementsByClassName("fechar", a)[0].onclick = function(){
					s.display = "none";
				}
			}
		}(findNext(img[i], "div"));
	}
}