is there a simpler way to do this

http://demos.mootools.net/Fx.Scroll

without having to add

PHP Code:
$('link1').addEvent('click', function(event) {
    
event = new Event(event).stop();
    
scroll.toElement('content1');
}); 
for every single scrollable items. it gets kinda cluttered once you have a lot of them, since im trying to integrate this into a dynamic application. someone told me to use foreach

http://docs.mootools.net/Native/Array.js#Array.forEach

but i have no idea how to do that

any ideas?

thanks