
var ezcat = {

    tabselected: { },

    show_dialog: function (id,w,h) {
        $(id).dialog(
            {
                width: w,
                height: h,
                modal: true,
                show: 'slide',
                hide: 'slide',
                buttons: {
                    "Ok": function() {
                        $(this).dialog("close");
                    }
                }
            }
        );
    },

    init_footnotes: function (namespace) {
        $('#'+namespace+'_footnotes').hide();
        var sel = 'a[href*='+namespace+'_footnote]';
        var footnotes = $(sel).each(
            function (index, item ){
                var footnote = $(item).attr('href');
                $(footnote).hide();
                $(item).click(
                    function () {
                        ezcat.show_dialog(footnote,600,400);                   
                    }
                );
            }
        );
    }

}
