window.addEvent('domready', function() {

var szNormal = 80, szSmall  = 60, szFull   = 160;
$$(".slidethumb").each( function(thumb, i) {
		var id = thumb.id.substr(5,thumb.id.length);
		if (Number(id)>0)
		{
			var thumb = $("thumb"+id);
			var thumbinfo = $$("#thumb"+id+" .thumbinfo")[0];
			thumb.fx = new Fx.Elements(thumbinfo, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});

			thumb.addEvent("mouseenter", function(event) {
					var o = {0: {top: [0,-80], opacity: [1, 0.8]}};
					this.fx.start(o);
				});

			thumb.addEvent("mouseleave", function(event) {
					var o = {0: {top: [-80,0], opacity: [0.8, 1]}};
					this.fx.start(o);
				});
		}
} );
		
});
