﻿function SetupSidePanel() {
    $("#QuickLinkHeader").click(function() {
        var theLeft = parseInt($("#QuickLinkContents").css("left"));

        if (theLeft < 0) {
            $("#QuickLinkContents").animate({ left: 0 }, 50, 'easeInCubic');
        }
        else {
            $("#QuickLinkContents").animate({ left: -400 }, 50, 'easeInCubic');
        }
    });
}

//function VerticalCentralizeItem(targetId) {
//    if ($(targetId).length > 0) {
//        var boxHeight = $(targetId).parent().height();
//        var windowHeight = $(window).height();
//        var targetTop = ((windowHeight - boxHeight) < 0) ? 0 : ((windowHeight - boxHeight) / 2);

//        $(targetId).css("top", targetTop);
//    }
//}
