echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'LOADCATS') {
     $param_code = 'V';
     $category_top_id = tep_db_prepare_input($_POST['ctid']);
     $genders = Product::getOldProductFunction()->productGenderName();
     unset($genders[0]);
     //none
     unset($genders[3]);
     //unisex
     $obj_ct = new CategoryTop($category_top_id);
     $cats = array();
     while ($cat = $obj_ct->getCategoriesOneByOneAsObject()) {
         $cats[$cat->id] = $cat->getName(LANGUAGEID);
     }
     ProductAttribute::getOldStylesFunction()->retrieveList($obj_ct->getSubCategoryGroup());
     if (in_array($jng_sp_id, array(1005))) {
         //get from Primary Navigation (Navigation for this SP separated between Primary and Secondary)
         $navids = retrieveNavIDs($jng_sp_id, 'c');
     } else {
         //Navigation are used for both Primary and Additional
         $navids = retrieveNavIDs($jng_sp_id, '');
     }
     $params = $class_jpc->loadAsMapper($jng_sp_id, $param_code);
     if (count($cats) == 0) {
         $result = '<h3 class="red">No Categories found</h3>';
     } else {
         $result = '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
         foreach ($genders as $gkey => $gval) {
             $gender_color = $gkey == '1' ? 'green' : 'blue';
             foreach ($cats as $param_id => $param_name) {