Thanks for the replies on this. Unfortunately changing the URL doesn't make a difference. I've tried using the absolute path and tried just adding a starting slash.
Another wierd thing is that it works on this page: http://www.pamelaneil.co.uk/index.php?option=com_content&task=view&id=13&Itemid=33 On this page the text overflows the div so the scroll bars are needed. On pages where there is less text (and scrollbars should not be shown) firefox goes nuts. I guess I could use MS conditional comments to comment out the javascript and just accept ugly scrollbars on non-IE browsers.