docs: function createPopup(popupName, options, popupTypeClass, popupContent, popupHover) {
  
      // Check if popup already exists
      if (popups[popupName])
        return popups[popupName];
  
      // Create the popup
      var $popup = $(DIV_TAG)
        .hide()
        .addClass(POPUP_CLASS)
        .appendTo("body");
  
      // Add the content
  
      // Custom popup
      if (popupContent)
        $popup.html(popupContent);
  
      // Color
      else if (popupName == "color") {
        var colors = options.colors.split(" ");
        if (colors.length < 10)
          $popup.width("auto");
        $.each(colors, function(idx, color) {
          $(DIV_TAG).appendTo($popup)
            .css(BACKGROUND_COLOR, "#" + color);
        });
        popupTypeClass = COLOR_CLASS;
      }
  
      // Font
      else if (popupName == "font")
        $.each(options.fonts.split(","), function(idx, font) {
          $(DIV_TAG).appendTo($popup)
            .css("fontFamily", font)
            .html(font);
        });
  
      // Size
      else if (popupName == "size")
        $.each(options.sizes.split(","), function(idx, size) {
          $(DIV_TAG).appendTo($popup)
            .html("<font size=" + size + ">" + size + "</font>");
        });
  
      // Style
      else if (popupName == "style")
        $.each(options.styles, function(idx, style) {
          $(DIV_TAG).appendTo($popup)
            .html(style[1] + style[0] + style[1].replace("<", "</"));
        });
  
      // URL
      else if (popupName == "url") {
        $popup.html('Enter URL:<br><input type=text value="http://" size=35><br><input type=button value="Submit">');
        popupTypeClass = PROMPT_CLASS;
      }
  
      // Paste as Text
      else if (popupName == "pastetext") {
        $popup.html('Paste your content here and click submit.<br /><textarea cols=40 rows=3></textarea><br /><input type=button value=Submit>');
        popupTypeClass = PROMPT_CLASS;
      }
  
      // Add the popup type class name
      if (!popupTypeClass && !popupContent)
        popupTypeClass = LIST_CLASS;
      $popup.addClass(popupTypeClass);
  
      // Add the unselectable attribute to all items
      if (ie) {
        $popup.attr(UNSELECTABLE, "on")
          .find("div,font,p,h1,h2,h3,h4,h5,h6")
          .attr(UNSELECTABLE, "on");
      }
  
      // Add the hover effect to all items
      if ($popup.hasClass(LIST_CLASS) || popupHover === true)
        $popup.children().hover(hoverEnter, hoverLeave);
  
      // Add the popup to the array and return it
      popups[popupName] = $popup[0];
      return $popup[0];
  
    }