got it…
function:
function get_parent_category_id($id, $level=0) {
$lookfor = "?cat=";
$endat = "\"";
$separator = "|";
$parent_list = get_category_parents($id, TRUE, $separator, FALSE);
$parents = explode($separator, $parent_list);
$parents[$level] = substr($parents[$level], strpos($parents[$level], $lookfor) + strlen($lookfor));
$parents[$level] = substr($parents[$level], 0, strpos($parents[$level], $endat));
return $parents[$level];
}
pass the category and depth you want to go into the above function.
something like:
<?php wp_list_categories(‘orderby=name&hide_empty=0&title_li=&parent=’.get_parent_category_id(get_query_var(‘cat’), 1)); ?>