// From a div, show h2, and hide .info, then, if you pulse on moreinfo, .info is visible.
// You need a special structure and styles
//
// See naturearea/naturearea_view.html

(function($) {
    $.fn.EditorHelper = function () {
        var help = $('#editor-helper');

	return this.each(function() {
            var trigger = $(this);

            var showHelp = function() {
                help.dialog('open');
                return false;
            };

            var initialize = function() {
                help.dialog({
                    autoOpen: false,
                    zIndex: 900,
                    closeText: 'X',
                    height: 400,
                    width: 500,
                    resizable: false
                });
                trigger.click(showHelp);
            };

            initialize();
        });
    };

    $(document).ready(function(){
        $('.editor-helper-trigger').EditorHelper();
    });
})(jQuery);

