Function to add functionality to a group of buttons

I have a movie with 5 movieclips named section1_mc, section2_mc, section3_mc, etc
I want to advance to frames 1 - 5 by clicking in each of the movieclips. Do I need to add the onRelease to each of them, or is there a way to do it once for everybody. I tried the code below, but when I click on any of the movieclips the timeline goes to frame 5, the last one. Could you please advice?

Thanks,


for (i = 1; i < 6; i++) {
	_root["section" + i + "_mc"].onRelease = function(){
        _root.gotoAndStop (i);
       }
}