Toronto stocks finished higher Friday, pulled ahead by the energy and materials index on higher resource prices.

The S&P/TSX composite index rose 78.31, or 0.62%, to 12,718.99.

For the week, the benchmark index was up 40.18 points this wee

Half of the 10 TSX main sub-groups were up, with the energy index up 1.39%.

Light, sweet crude futures gained $1.51, or 2.9%, to US$51.99 as the price of oil rebounded somewhat after recent deep losses.

EnCana Corp. gained $1.05, or 1.96%, to $54.64.

The materials index finished up 1.08%, while the gold sub-index gained 1.29%.

Gold futures gained $8.30 to US$636.40 an ounce.

Crystallex International gained 14¢, or 4.14%, to $3.52.

The Canadian dollar climbed 0.08 of a cent to finish at US85.32¢.

The S&P/TSX Venture composite index inched forward 3.76 points, or 0.13%, to 2,842.39.

In New York, markets were mixed and little changed Friday, as investors awaited key economic data due next week.

The Dow Jones industrial index dipped 2.40, or 0.02%, to 12,565.53, the Nasdaq gained 8.10, or 0.33%, to 2,451.31, and the S&P500 gained 4.13, or 0.29%, to 1,430.50.

For the week, the Dow gained 0.08%, while the S&P 500 inched down 0.02% and the Nasdaq fell 2.06%.