The Custom Sidebars Plugin for WordPress does exactly what it says — it allows the user to set up different sidebars that appear based on the context of the page being displayed. For example, set up a custom post type and then assign a sidebar that appears only on posts of that type.