For loop help please

for (i=1; i<21; i++) {
	portfolio_btns["pover_btn"+i].onRollOver = function() {
		this.alphaTo(overAlphaTo, overSpeed);
	};
	portfolio_btns["pover_btn"+i].onRollOut = function() {
		this.alphaTo(0, overSpeed);
	};
	portfolio_btns["pover_btn"+i].onPress = function() {
		var tweenTo = this._y+portfolio_btns._y;
		_parent.sq2_mc.tween("_y", tweenTo, 1);
		this.gotoAndPlay(i);
		trace(i);
	};
}

Can someone please help me figure this out.
I’m trying to set the corresponding # inside “this.gotoAndPlay()”. So button one will gotoAndPlay 1 and button 2 play 2 and so on.

Thanks in advance.