if (!people) {
    var people = {
        hoverPanel: null,
        hoverPanelHeight: 0,
        popupName: null,
        popupDescription: null,
        popupBio: null,
        popupImage: null,

        $id: function(id) {
            return document.getElementById(id);
        },
        initialize: function() {
            this.hoverPanel = this.$id("hoverPanel");
            this.popupName = this.$id("popupName");
            this.popupDescription = this.$id("popupDescription");
            this.popupBio = this.$id("popupBio");
            this.popupImage = this.$id("popupImage");

            if (document.all) {
                this.hoverPanelHeight = parseInt(this.hoverPanel.currentStyle.height);
            } else {
                this.hoverPanelHeight = parseInt(this.hoverPanel.style.height);
            }
            var checkbox = labs.getControl(document.getElementsByTagName("input"), "chkManagementTeam");
            this.toggleManagement(checkbox.checked);
        },

        element_OnMouseMove: function(event) {
            var element = labs.getSourceElement(event);
            var left = labs.getMouseLeft(event) + 20;
            var top = labs.getMouseTop(event) + 20;

            if ((left + 200) > labs.getWindowWidth()) {
                left -= 260;
            }
            if ((top + 200) > labs.getWindowHeight()) {
                top -= 260;
            }
            if (this.hoverPanel != null) {
                var name = element.getAttribute("FirstName") + " " + element.getAttribute("LastName");
                labs.setText(this.popupName, name);

                var bio = element.getAttribute("Bio");
                labs.setText(this.popupBio, bio);

                var description = element.getAttribute("Description");
                labs.setText(this.popupDescription, description);

                this.popupImage.src = element.src;

                this.hoverPanel.style.position = "absolute";
                this.hoverPanel.style.top = top + "px";
                this.hoverPanel.style.left = left + "px";
                this.hoverPanel.style.display = "inline";
            }
        },

        element_OnMouseOut: function() {
            if (this.hoverPanel != null) {
                this.hoverPanel.style.display = "none";
            }
        },

        chkManagementTeam_OnClick: function(event) {
            var checkbox = labs.getSourceElement(event);
            this.toggleManagement(checkbox.checked);
        },

        toggleManagement: function(showManagement) {
            var images = $(".managementKey");

            for (var i = 0; i < images.length; i++) {
                images[i].style.display = (showManagement) ? "inline" : "none";
            }
        }
    };
}

if (!egg) {
    var egg = {
        f: 0,
        e: 0,
        n: 0,
        x1: 0,
        x2: 0,
        y1: 0,
        y2: 0,
        w: 0,
        r: 0,
        initialize: function() {
            var a = [];
            a[0] = "setInterval(egg.bounceEggShells, 20)";
            a[1] = "setInterval(egg.twirlEggShells, 25)";
            this.f = a[Math.floor(Math.random() * a.length)];

            this.e = $(".eggShell");
            this.n = this.e.length;

            this.x1 = Math.round((labs.getLeft(this.e[7]) - labs.getLeft(this.e[0])) / 2);
            this.x2 = this.x1 + 6;

            this.y1 = Math.round((labs.getTop(this.e[this.n - 1]) - labs.getTop(this.e[0])) / 2);
            this.y2 = this.y1 + 6;
            var waac = document.getElementById("eggTrigger");
            waac.onclick = this.waacdtugoec;
            waac.style.cursor = "pointer";
        },
        bounceEggShells: function() {
            for (i = 0; i - egg.n; i++) {
                var s = egg.e[i].style;
                s.position = "absolute";
                s.top = Math.cos(egg.r * .05 + i * .24 + .24) * egg.y1 + egg.y2 + "px";
            }
            egg.r++;
        },
        twirlEggShells: function() {
            for (i = 0; i - egg.n; i++) {
                var s = egg.e[i].style;
                s.position = "absolute";
                s.top = Math.cos(egg.r * .05 + i * .24 + .24) * egg.y1 + egg.y2 + "px";
                s.left = Math.sin(egg.r * .10 + i * .25 + 1.6) * egg.x1 + egg.x2 + "px";
            }
            egg.r++;
        },
        waacdtugoec: function() {
            if (egg.w) {
                clearInterval(egg.w);
                egg.w = null;
            } else {
                egg.w = eval(egg.f);
            }
        }
    };
}

