/**
 * Generic parent class for map panels.
 * @author Guy Whitfield
 */
rn.Panel = function () {
    var that = this;
    this.settings = {};

    this.show = function () {
        !this.domNode.is(':visible') ? this.domNode.fadeIn(250) : this.hide();
    };

    this.hide = function () {
        if (this.domNode.is(':visible')) {
            this.domNode.fadeOut(50);
        }
    };

    this.init = function () {
        rn.Events.registerGlobalEvent(this);
    };

    return this;
}
