$ 0 0 this looks like the go!brilliant thanks. edit:the first solution for the native part works a treat