thanks for your reply, the code works
although thats a lot of code to be adding after applying the behaviour. i assume that the extension should be adding this too the page, is this a bug in the extension?
or is it an issue because i am using a template?