function f_foot_res(p) {
var _home="\'index_e.html\'";
var _id_foot_1 = "input_p";
var _id_foot_2 = "input_p";

  if (p!=null) _home="\'"+p+"\'";  //  if (arguments[0]==null)...

var _loca_1 = "";
var _loca_2 = "";

  for (var j = 1; j < a_kg.length; j++) {
    if (a_kg[j][2] == "a") {
      if (a_kg[j-1][3] != "") {
        _loca_1 = 'onclick="document.location=\''+a_kg[j-1][3]+'\'"';
      }
      if (j+1 < a_kg.length && a_kg[j+1][3] != "") {
        _loca_2 = 'onclick="document.location=\''+a_kg[j+1][3]+'\'"';
      }
      break;
    }
  }

if (_loca_1 != "") _id_foot_1 = "input_a";
if (_loca_2 != "") _id_foot_2 = "input_a";

document.writeln('<tr><td colspan=2 align="center"><br><form>');
document.writeln('<input id="'+_id_foot_1+'" type="button" value="&nbsp;&nbsp;&nbsp; << &nbsp;&nbsp;&nbsp;" '+_loca_1+'>&nbsp;');
document.writeln('<input id="input_a" type="button" value="&nbsp; Home &nbsp;&nbsp;" onclick="document.location='+_home+'">&nbsp;');
document.writeln('<input id="'+_id_foot_2+'" type="button" value="&nbsp;&nbsp;&nbsp; >> &nbsp;&nbsp;&nbsp;" '+_loca_2+'>');

document.writeln('</form><br></td></tr>');
}

function mouseOver(p) {
  p.style.backgroundColor="#ffffff";
  p.style.cursor='hand';
}

function mouseOut(p) {
  p.style.backgroundColor="";
}

function f_kg() {

var _id   = "center";
var _plus = -1;
var _w_1  = "";
var _w_2  = "";
var _s_hr1= "";
var _s_hr2= "";
var _s_mou= "";

  if ((typeof(s_title_kg) != 'undefined') && (s_title_kg.length > 0)) {
    document.writeln('<h3>');
    document.writeln(s_title_kg);
    document.writeln('</h3>');
  }

document.writeln('<table id="center" width=100% border="0" cellpadding="0" cellspacing="0"><tr bgcolor="white"><td>');
document.writeln('<table id="left"   width=100% border="0" cellspacing="1" cellpadding="0">');
document.writeln('<tr height="24" bgcolor=#00b4ce>');
document.writeln('<td height="24" id="title">'+a_kg[0][0]+'</td>');
document.writeln('<td height="24" id="title">'+a_kg[0][1]+'</td></tr>');

  for (var i = 1; i < a_kg.length; i++) {
    _w_1=a_kg[i][0]; _w_2=a_kg[i][1]; _s_mou="";
    _id="center";

    if (_w_1.indexOf('~') < 0) {
      _plus=_w_1.indexOf("+"); if (_plus >= 0) {_w_1=_w_1+"&nbsp;&nbsp;"; _w_2=_w_2+"&nbsp;&nbsp;";}
      if (a_kg[i][2] == 'a') _id="title";
      _s_hr1= ""; _s_hr2= ""; if (a_kg[i][3] != "") {_s_hr1= '<a href="'+a_kg[i][3]+'">'; _s_hr2= "</a>"; _s_mou= ' onmouseOver="mouseOver(this); return true;" onmouseOut="mouseOut(this); return true;"';}
      document.writeln('<tr bgcolor="#acc5c8" '+_s_mou+'>'+_s_hr1);
      document.writeln('<td id='+_id+'>'+_s_hr1+_w_1+_s_hr2+'</td>');
      document.writeln('<td id='+_id+'>'+_s_hr1+_w_2+_s_hr2+'</td>');
      document.writeln(_s_hr2+'</tr>');
    } else {
      _s_hr1= ""; _s_hr2= ""; if (a_kg[i][3] != "") {_s_hr1= '<a href="'+a_kg[i][3]+'">'; _s_hr2= "</a>"; _s_mou= ' onmouseOver="mouseOver(this); return true;" onmouseOut="mouseOut(this); return true;"';}
      document.writeln('<tr bgcolor="#acc5c8" '+_s_mou+'>'+_s_hr1);
      document.writeln('<td colspan="2" id='+_id+'>'+_s_hr1+_w_2+_s_hr2+'</td>');
      document.writeln(_s_hr2+'</tr>');
    }
  }
document.writeln('</table></td></tr></table>');
}

