I got it working ...eventually, it took about 2hr's but I finally worked it out
What I did was use the onclick event to see if the div was shown, if it was and the user wasn't clicking within the div, the div would be hidden.
If anyone wants the code, let me know
Thanks again,
Steve.