function toggleElement (el) {

    el = el.parentNode;
    if (el.className=='category-toggle') {
      el.className='category-toggle-expanded'; 
    } else {
      el.className='category-toggle';
    }
    
    el = el.nextSibling;    
    /* chrome|FF uses next next */
    if (el.nodeType == 3) el = el.nextSibling;

    if (el == null) return false;
    if (el.className=='category-detail') {
      el.className='category-detail-expanded';
    } else {
      el.className='category-detail';
    }
    if (typeof parent.resizeFrame == 'function') {    
	parent.resizeFrame();
    }
    return false;	
}