

window.addEvent('domready', function() {
	// Gallery functionality
	
	var thumbs = $('proThumbReg');
	
	// hides all images and then displays the first
	$$('#proDisReg img').fade('hide');
	$$('#proDisReg').getElement('img').fade('show');
	
	thumbs.getElements('img').each(function(thumb){
	    var images = $$('#proDisReg img.' + thumb.id);
	    thumb.addEvents({
	        mouseover: function(){
	            $$('#proDisReg img').fade('hide');
	            images.fade('show');
	        }
	    });
	});
});