<!--
agent = navigator.userAgent;
sw = screen.width;

function makeFrm(clnm)
{
  for (i = 0; i<frM.length; i++)
  { 

    fsm = '<Table name="'+frM[i][0]+'" id="'+frM[i][0]+'" border=0 cellSpacing=0 cellPadding=0 width="500px" class="WN" '+
          'style="display:none; position:absolute; top:0; left:0;">' +
          '<Tr valign="bottom">';
    if (agent.indexOf("Opera")>-1) fsm = fsm + '<Td colspan=3><IMG SRC="/files/ptl/css/blks/wnt500.gif" border=0></Td>';
    else  fsm = fsm + '<Td class="WNt500" colspan=3>&nbsp;</Td>'
    fsm = fsm + '</Tr><Tr><Td class="WNbl">&nbsp;</Td>';
    fsm = fsm + '<Td class="WNText">'+frM[i][1]+'</Td>';

    fsm = fsm + '<Td class="WNbr">&nbsp;</Td>';
    fsm = fsm + '</Tr><Tr valign=top>';
    fsm = fsm + '<Td class="WNb500" colspan=3>&nbsp;</Td>';
    fsm = fsm + '</Tr></Table>';

    document.write(fsm);
   }
}

function makeMn(as,aw,url,prm)
{
  nm = '-';  sm = ''; kk = -1; ww = aw[0]-20;
  sml = 0;
  for (i = 0; i<aM.length; i++)
  { 
    if (nm != aM[i][0])
    { kk += 1;
      if (nm != '-')
      { sm += '</table>';
      }
      nm = aM[i][0]; 
      sm += '<table class="mnst" onMouseover="ms=\''+nm+'\'" onMouseout="mhide(\''+nm+'\');" name="'+nm+'" id="'+nm+'" '+
            'width="'+aw[0]+'px" cellspacing=0 cellpadding=0 border=0 '+
            'style="display:none; position:absolute; top:0; left:0;">';
      sm += '<tr><td class="bgt" width="20px" height="6px">&nbsp;</td><td class="bgt" width="'+ww+'px" height="6px">&nbsp;</td></tr>'; 
    }
    sm += '<tr>';
    sm += '<td id="j'+i+nm+'" width="20px" style="background:#F0F0F0">&nbsp;</td>';
    sm += '<td id="r'+i+nm+'" width="'+ww+'px" style="height:18px; background:#F0F0F0">';
    sm += '<a onMouseover="chBgOn(\''+i+nm+'\');" onMouseout="chBgOff(\''+i+nm+'\');" class="lmns" ';
    if (aM[i][2]=='0') sm += 'href="'+aM[i][3]+'">'+aM[i][1]+'</a>'; 
    else 
    { if (aM[i][4]=='Y') sm += 'href="'+url+aM[i][2]+prm+'">'+aM[i][1]+'</a>';
      else sm += 'href="'+url+aM[i][2]+'">'+aM[i][1]+'</a>'; } 
    sm += '</td></tr>';
    sml = sm.length;
    if (sm.length > 32000) {document.write(sm); sm = '';}
  }
  if (sm.length > 0)
  {
    sm += '</table>';
    document.write(sm);
  }
}

function makeTv(nm, url, pleft, mG)
{
  psl = 0;
  if (sw > 1024) psl = ((sw-1024)/2)-2;
  if (agent.indexOf("Firefox")>-1 || agent.indexOf("Opera")>-1) psl+=2;
  mgleft = psl + pleft;

  sm = '<table class="grpjtb" onMouseover="ts=\''+nm+'\'" onMouseout="hdTBL(\''+nm+'\');" name="'+nm+'" id="'+nm+'" '+
        'cellspacing=0 cellpadding=0 border=0 width="260px"'+
        'style="display:none; position:absolute; top:0; left:'+mgleft+';">';
  for (i = 0; i<mG.length; i++)
  { 
    sm += '<tr>';
    if (i==0) sm += '<td class="grpj0" NOWRAP><a class="lgrpj" href="'+aSP[mG[i][1]]+url+mG[i][2]+'">'+mG[i][0]+'</a></td>'; 
    else      sm += '<td class="grpj" NOWRAP><a class="lgrpj" href="'+aSP[mG[i][1]]+url+mG[i][2]+'">'+mG[i][0]+'</a></td>'; 
    sm += '</tr>';
    if (sm.length > 32000) {document.write(sm); sm = '';}
  }
  sm += '</table>';
  document.write(sm);
}

