var GalleryHeight = new Class({
		initialize: function(containerID){
			this.images = $(containerID).getElements('.gallery a img');
			this.images.each (function(item, index){
					var dim = item.getSize();
					item.setStyle('marginTop', (150 - dim.y)/2);
			}.bind(this));
		},
		fixHeight: function(img){
			
		}
		
});

window.addEvent('load', function(){
		if ($('fotogalerie'))
			var FotogalleryFixHeight = new GalleryHeight('fotogalerie');
}.bind(this));
