﻿/*********************************
* Javascript for UPSWeb.Controls *
*********************************/

$(document).ready(function() {
    // Header: FadeIn and FadeOut Menus
    $("table.Menu").parent().find("a.Tab").hover(function() {
	    // Tab is Selected (Bright Background)
		$(this).addClass("Selected");
    			
        // FadeIn the Menu below Tab.
		$(this).parent().find("table.Menu").fadeIn(0).show();

        // Add function to NOT hover.
		$(this).parent().hover(null, function() {
		    // FadeOut the Menu...
		    $(this).parent().find("table.Menu").fadeOut(0);
			// remove the Selected from the Tab (Dark Background)
			$(this).parent().find("a.Tab").removeClass("Selected");
		});
    });
	
	
});

