﻿$(function() {

    $(".platformtechnologyTooltip").hide();

    $(".platformtechnologyHover").mouseover(function() {
        $(this).parents(".platformtechnologyContainer").find(".platformtechnologyTooltip").css({ top: "0px" }).fadeIn(200);
    });
    $(".platformtechnologyHover").mouseout(function() {
        $(this).parents(".platformtechnologyContainer").find(".platformtechnologyTooltip").fadeOut(50);
    });

    var changelocationTimer;
    $(".changelocation-menulink").parents(".selectbox-filter").mouseover(function() {
        if (changelocationTimer) { clearTimeout(changelocationTimer); }
        $(".changelocationcontrol-list").css({ top: "24px" }).fadeIn(200);
        $("select").hide();
    }).mouseout(function() {
        changelocationTimer = setTimeout(function() {
            $(".changelocationcontrol-list").fadeOut(50);
            $("select").show();
        }, 500);
    });

    $("#HAT-subheader").css({ "z-index": "2000" });
    $(".tooltip").parent().hover(function() {
        $(this).find(".tooltip").toggleClass("sfxHidden");
    },
    function() {
        $(this).find(".tooltip").toggleClass("sfxHidden");
    });
});