well i have gone there and back sizing a kona. they are a little tough to get right.
i think you should be on a 16. since it is for dirt jumping i would opt to go with the smaller frame.
the guy at my lbs said that usually whatever bike fits you is going to be the best. so most people will say someone who is 5-7 should be on a 18