﻿function showShare(id) {
    $(document).ready(function() {
        closeEmail(id);
        closePermalink(id)
        if ($("#postShare" + id).is(":hidden")) {
            $("#postShare" + id).slideDown();
        } else {
            $("#postShare" + id).slideUp();
        }
    });
}

function showEmail(id) {
    $(document).ready(function() {
        closeShare(id);
        closePermalink(id)
        if ($("#postEmail" + id).is(":hidden")) {
            $("#postEmail" + id).slideDown();
        } else {
            $("#postEmail" + id).slideUp();
        }
    });
}

function showPermalink(id) {
    $(document).ready(function() {
        closeEmail(id);
        closeShare(id);
        if ($("#postPermalink" + id).is(":hidden")) {
            $("#postPermalink" + id).slideDown();
        } else {
            $("#postPermalink" + id).slideUp();
        }
    });
}

function closeShare(id) {
    $("#postShare" + id).slideUp();
}

function closeEmail(id) {
    $("#postEmail" + id).slideUp();
}

function closePermalink(id) {
    $("#postPermalink" + id).slideUp();
}
