Safari 4.0.4 mac issues with object recognition

Safari 4.0.4 mac issues with object recognition

$(document).click(function(e) {
    ...
if(!$(this).is('object')) {
nextSlide();
       }
    ...
});

I have created a presentation style webpage, which progressive hides and shows divs on mouse clicks.  The problem is that Flash videos are embedded in between some of the divs and so I do not want to click onto the next slide when the mouse is over the Flash object.  To avoid this, I have used the above code, which works fine in Firefox 3.most-recent and IE 6,7 and 8.  However, it does not work in Safari or Google Chrome on the mac, which leads me to suspect a Webkit issue.

I am using JQuery 1.4.1 and would be grateful for any help.

Cheers.