code: function(px) {
          if (px == null) {
              if ((this.lonlat != null) && (this.map != null)) {
                  px = this.map.getLayerPxFromLonLat(this.lonlat);
              }
          }
  
          // this assumes that this.map already exists, which is okay because 
          // this.draw is only called once the popup has been added to the map.
          if (this.closeOnMove) {
              this.map.events.register("movestart", this, this.hide);
          }
          
          //listen to movestart, moveend to disable overflow (FF bug)
          if (!this.disableFirefoxOverflowHack && OpenLayers.BROWSER_NAME == 'firefox') {
              this.map.events.register("movestart", this, function() {
                  var style = document.defaultView.getComputedStyle(
                      this.contentDiv, null
                  );
                  var currentOverflow = style.getPropertyValue("overflow");
                  if (currentOverflow != "hidden") {
                      this.contentDiv._oldOverflow = currentOverflow;
                      this.contentDiv.style.overflow = "hidden";
                  }
              });
              this.map.events.register("moveend", this, function() {
                  var oldOverflow = this.contentDiv._oldOverflow;
                  if (oldOverflow) {
                      this.contentDiv.style.overflow = oldOverflow;
                      this.contentDiv._oldOverflow = null;
                  }
              });
          }
  
          this.moveTo(px);
          if (!this.autoSize && !this.size) {
              this.setSize(this.contentSize);
          }
          this.setBackgroundColor();
          this.setOpacity();
          this.setBorder();
          this.setContentHTML();
          
          if (this.panMapIfOutOfView) {
              this.panIntoView();
          }    
  
          return this.div;
      }
docs: Method: draw
  Constructs the elements that make up the popup.
  
  Parameters:
  px - {<OpenLayers.Pixel>} the position the popup in pixels.
  
  Returns:
  {DOMElement} Reference to a div that contains the drawn popup