Something's telling me it's in this file, but I can't seem to fix it. Everything I try seems to make it worse. Can you see anything in this file that can be causing it?

PHP Code:
<?php
/**
 * @copyright Copyright 2009 Glenn Herbert
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.gnu.org/licenses/ GNU Public License V3.0
 * includes/functions/extra_functions/categories_dressing_functions.php
 * Categories Dressing v2.6  - Glenn Herbert (gjh42)   - 20090128 
 */

function cat_active_level_manage($path) {
  
$skip_cat 0;
  if (
defined('CAT_BOX_ACTIVE_LEVEL')) {
    
$cat_box_active_level explode('|',constant('CAT_BOX_ACTIVE_LEVEL'));
    
$current_top = (int)$_GET['cPath'];
    
$iteration_top = (int)$path// set = this iteration's topcat
    
$cat_depth substr_count($path,'_');
    
//tests for various kinds of skipping - more can be added
    
$skip_cat $skip_cat + ($cat_box_active_level[0] == and $current_top != $iteration_top)?1:0;
    
$skip_cat $skip_cat + ($cat_box_active_level[0] == and $current_top != $iteration_top and $current_top != 0)?1:0;
    
$skip_cat $skip_cat + ($cat_box_active_level[1] > $cat_depth and $cat_box_active_level[0] != 2)?1:0;
    
$skip_cat $skip_cat + ($cat_box_active_level[2] < $cat_depth)?1:0;
  }
//defined
  
return $skip_cat;
}


function 
cat_ul_manage($current_path, &$prev_cat_depth$new_group) {
  
$ul_content '';
  
$cat_depth substr_count($current_path,'_');
  if (
$cat_depth $prev_cat_depth) {
    
$ul_content .= str_repeat('<ul>',(($cat_depth $prev_cat_depth) - $new_group)) . "\n";
  } elseif (
$cat_depth $prev_cat_depth) {
    
$ul_content .= str_repeat('</ul>',(($prev_cat_depth $cat_depth) + $new_group)) . "\n";
  } else {
    
$ul_content .= $new_group?'</ul>':'';
  }
  
$ul_content .= $new_group?'<ul id="catGroup' $current_path '">' "\n":'';
  
$prev_cat_depth $cat_depth;
  return 
$ul_content;
}

function 
cat_box_heading($current_path) {
  
$heading_content '';
  
$new_group 0;
  if (
defined('CAT_BOX_HEADING_' $current_path)) {
    
$cat_box_heading explode('|',constant('CAT_BOX_HEADING_' $current_path));
    if (
$cat_box_heading[0]) {
      
$new_group 1;
    }
    if (
$cat_box_heading[1]) {
      
$heading_content .= '<hr class="catBoxDivider' $cat_box_heading[1] . '" />' "\n"
    }
    if (
$cat_box_heading[2]) {
      
//display image if exists for category name in current language - with title tag
      
$heading_content .= file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/' $cat_box_heading[2]) ? '<div class="catBoxHeadingImg">' zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/' $cat_box_heading[2], $cat_box_heading[3]) . '</div>' "\n":$cat_box_heading[3] . "\n";
    }
    
$i=4;
    while (
$i<(sizeof($cat_box_heading)-1)) {
      
$heading_content .= '<div class="catBoxHeading' $cat_box_heading[$i+1] . '">' .  $cat_box_heading[$i] . '</div>' "\n";
      
$i $i+2;
    }
  }
  return array(
$new_group,$heading_content);
}
    
function 
cat_name_display($cat_name_display$current_path) {
  
$cat_img_bg '';
  
//display image if exists for category name in current language - with title tag
  
if (file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif')) {
    
$cat_name_display zen_image(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catimg' $current_path '.gif''''''''title="' $cat_name_display '"'); 
  
//display background image if exists for category name in current language - with title tag
  
} elseif (file_exists(DIR_WS_TEMPLATE 'buttons/' $_SESSION['language'] . '/catbg' $current_path '.gif')) {
    
$cat_name_display zen_image(DIR_WS_TEMPLATE_IMAGES 'pixel_trans.gif''''100%''100%''title="' $cat_name_display '"');
    
$cat_img_bg ' catBg' $current_path;
  } else {
    
$cat_img_bg '-text';//append to main classname
  
}
  return array(
$cat_img_bg$cat_name_display);
}

function 
cat_box_subtext($current_path) {
  
$subtext '';
  if (
defined('CAT_BOX_SUBTEXT_' $current_path)) {
    
$cat_box_subtext explode('|',constant('CAT_BOX_SUBTEXT_' $current_path));
    
$subtext .= '<div class="catBoxSubtext' $cat_box_subtext[1] . '">' $cat_box_subtext[0] . '</div>' "\n";
  }
  return 
$subtext;
}
?>