﻿function ShowPopup(panel) {
    
    switch (panel) {
        case 'PenguinHoverPanel': $("#TwitterHoverPanel").stop(true, true); $("#AlanClarkeHoverPanel").stop(true, true); $("#FacebookHoverPanel").stop(true, true); $("#QFSHoverPanel").stop(true, true); $("#PenguinHoverPanel").fadeIn('normal'); break;
        case 'TwitterHoverPanel': $("#PenguinHoverPanel").stop(true, true); $("#AlanClarkeHoverPanel").stop(true, true); $("#FacebookHoverPanel").stop(true, true); $("#QFSHoverPanel").stop(true, true); $("#TwitterHoverPanel").fadeIn('normal'); break;
        case 'AlanClarkeHoverPanel': $("#PenguinHoverPanel").stop(true, true); $("#TwitterHoverPanel").stop(true, true); $("#FacebookHoverPanel").stop(true, true); $("#QFSHoverPanel").stop(true, true); $("#AlanClarkeHoverPanel").fadeIn('normal'); break;
        case 'FacebookHoverPanel': $("#PenguinHoverPanel").stop(true, true); $("#TwitterHoverPanel").stop(true, true); $("#AlanClarkeHoverPanel").stop(true, true); $("#QFSHoverPanel").stop(true, true); $("#FacebookHoverPanel").fadeIn('normal'); break;
        case 'QFSHoverPanel': $("#PenguinHoverPanel").stop(true, true); $("#TwitterHoverPanel").stop(true, true); $("#AlanClarkeHoverPanel").stop(true, true); $("#FacebookHoverPanel").stop(true, true); $("#QFSHoverPanel").fadeIn('normal'); break;
        default: document.getElementById(panel).style.display = "block";
    }
}

function HidePopup(panel) {
    
    $("#" + panel).fadeOut('slow');
}

function HidePopups() {
    
    $("#PenguinHoverPanel").stop(true, true);
    $("#TwitterHoverPanel").stop(true, true);
    $("#AlanClarkeHoverPanel").stop(true, true);
    $("#FacebookHoverPanel").stop(true, true);
    $("#QFSHoverPanel").stop(true, true); 
    $("#PenguinHoverPanel").fadeOut('normal');
    $("#TwitterHoverPanel").fadeOut('normal');
    $("#AlanClarkeHoverPanel").fadeOut('normal');
    $("#FacebookHoverPanel").fadeOut('normal');
    $("#QFSHoverPanel").fadeOut('normal');

}

