// show/hide milestones for accessibility...
jQuery(document).ready(function($) {
    // the click handler is in teiDocFormatter.xsl
    $('a#milestoneHide').click(function() {
        // the milestone class is built in component.xsl
        $('.milestone').hide();
        $('a#milestoneShow').show();
        $(this).hide();
        $.cookie('mstoneCookie', 'hide');
        return false;
    });
    $('a#milestoneShow').click(function() {
        $('.milestone').show();
        $('a#milestoneHide').show();
        $(this).hide();
        $.cookie('mstoneCookie', 'show');
        return false;
    });
    if ($.cookie('mstoneCookie') == 'hide') {
        $('.milestone').hide();
        $('a#milestoneShow').show();
        $('a#milestoneHide').hide();
    };
    if ($.cookie('mstoneCookie') == 'show') {
        $('.milestone').show();
        $('a#milestoneHide').show();
        $('a#milestoneShow').hide();
    }
});


