can you paste all your code.. i don't think there's enough there to find the problem.

attach it as a zip or something... and i'll have a look at it.