﻿function initTogglers() {
    $("a[id$='toggler']").toggle(show, hide);
}
function show(event) {
    toggle(event, true);
}
function hide(event) {
    toggle(event, false);
}
function toggle(event, show) {
    var targetId = "#" + event.target.id.replace("toggler", "content");
    if (show) {
        $(targetId).show("slow");
    } else {
        $(targetId).hide("slow");
    }
}
$(document).ready(initTogglers);