function pagination($which)
 {
     global $mode;
     parent::pagination($which);
     if ('top' == $which) {
         $this->view_switcher($mode);
     }
 }
 function pagination($which)
 {
     global $post_type_object, $mode;
     parent::pagination($which);
     if ('top' == $which && !$post_type_object->hierarchical) {
         $this->view_switcher($mode);
     }
 }