Safari is not truly detected because mozilla detection is quite wrong :
Currently when you are in safari, jQuery.browser.safari is true, but jQuery.browser.mozilla is true too, so we go into mozilla condition but never in safari condition.
You should change this code ...
// Figure out what browser is being used
jQuery.browser = {
safari: /webkit/.test(b),
opera: /opera/.test(b),
msie: /msie/.test(b) && !/opera/.test(b),
mozilla: /mozilla/.test(b) && !/compatible/.test(b)
};
By this code :
// Figure out what browser is being used
jQuery.browser = {
safari: /webkit/.test(b),
opera: /opera/.test(b),
msie: /msie/.test(b) && !/opera/.test(b),
mozilla: /mozilla/.test(b) && !/compatible/.test(b) && !/webkit/.test(b)
};