UnderConstruction = function($) {
    return {
        baseSelector: ".under-construction",
        init: function() {
            $(this.baseSelector).click($.proxy(this.respondToEvent, this));
            $('a[href="#"]').click($.proxy(this.respondToEvent, this));
            this.dialogHolder = $('#under-construction').dialog({
                modal: true,
                width: 460,
                autoOpen: false
            });
        },
        respondToEvent: function(event) {
            event.preventDefault();

            this.dialogHolder.dialog('open');
        }
    };
};

UnderConstructionInstance = new UnderConstruction(jQuery);

jQuery(jQuery.proxy(UnderConstructionInstance.init, UnderConstructionInstance));


