Index: wp-includes/classes.php
===================================================================
--- wp-includes/classes.php	(revision 5852)
+++ wp-includes/classes.php	(working copy)
@@ -507,7 +507,7 @@
 		if ( $depth )
 			$indent = str_repeat("\t", $depth);
 		extract($args, EXTR_SKIP);
-		$css_class = 'page_item';
+		$css_class = 'page_item page_item_'.$page->ID;
 		$_current_page = get_page( $current_page );
 		if ( $page->ID == $current_page )
 			$css_class .= ' current_page_item';
@@ -630,10 +630,12 @@
 
 		if ( 'list' == $args['style'] ) {
 			$output .= "\t<li";
+			$class = 'cat_item cat_item_'.$category->term_id;
 			if ( $current_category && ($category->term_id == $current_category) )
-				$output .=  ' class="current-cat"';
+				$class .=  ' current-cat';
 			elseif ( $_current_category && ($category->term_id == $_current_category->parent) )
-				$output .=  ' class="current-cat-parent"';
+				$class .=  ' current-cat-parent';
+			$output .=  ' class="'.$class.'"';
 			$output .= ">$link\n";
 		} else {
 			$output .= "\t$link<br />\n";
@@ -688,8 +690,8 @@
 	// a WP_Error object can be passed in 'id' or 'data'
 	function add( $args = '' ) {
 		$defaults = array(
-			'what' => 'object', 'action' => false, 
-			'id' => '0', 'old_id' => false, 
+			'what' => 'object', 'action' => false,
+			'id' => '0', 'old_id' => false,
 			'data' => '', 'supplemental' => array()
 		);
 

