﻿$(document).ready(function() {
//set the logo nav elements to 0 opacity
    $('#logo-nav ul li').fadeTo(0, 0);
    //Mouseover Mouseout    
    $('.logo-nav-clear').hover(
        function() {
            $('#logo-nav-clear').stop(true,true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
        },
        function() {
            $('#logo-nav-clear').hide();
            $('#logo-nav-sas').stop(true,true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
        });

    $('.logo-nav-fair').hover(
        function() {
            $('#logo-nav-fair').stop(true, true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
        },
        function() {
            $('#logo-nav-fair').hide();
            $('#logo-nav-sas').stop(true, true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
        });

    $('.logo-nav-curr').hover(
        function() {
    $('#logo-nav-curr').stop(true, true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
        },
        function() {
            $('#logo-nav-curr').hide();
            $('#logo-nav-sas').stop(true, true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
        });

    $('.logo-nav-inst').hover(
        function() {
            $('#logo-nav-inst').stop(true, true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
        },
        function() {
            $('#logo-nav-inst').hide();
            $('#logo-nav-sas').stop(true, true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
        });

    $('.logo-nav-res').hover(
        function() {
            $('#logo-nav-res').stop(true, true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
        },
        function() {
            $('#logo-nav-res').hide();
            $('#logo-nav-sas').stop(true, true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
        });

    $('.logo-nav-int').hover(
         function() {
            $('#logo-nav-int').stop(true, true).fadeIn('1000');
            $('#logo-nav-sas').hide();
            $(this).stop(true, true).fadeTo("medium", 1);
         },
         function() {
            $('#logo-nav-int').hide();
            $('#logo-nav-sas').stop(true, true).fadeIn('500');
            $(this).stop(true, true).fadeTo("fast", 0);
         });
});
