$(document).ready(function(){
    //alert(navigator.userAgent +' '+navigator.appName);
    var isOpera = navigator.appName.indexOf('Opera') != -1;
    var isSafari = navigator.userAgent.indexOf('WebKit') != -1;
    var isIE = navigator.appName.indexOf('Explorer') != -1;
    if (!isOpera && !isIE) {
        $("#nav-one li").hover(
            function(){ $("ul", this).fadeIn("fast"); },
            function() { }
        );
    }
    if (document.all) {
        $("#nav-one li").hoverClass ("sfHover");
    }
    if (isSafari) {
        $('#nav-one li ul a').each(function() {
            this.title = '';
        });
    }


    // tooltips
    $("span.abbr").tooltip({
        track: true,
        delay: 100,
        showBody: "::",
        opacity: 0.93
    });


});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover(
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};