TL-LB

$ThumbList['fPreChecks'] = 'uThumbLightbox';
function uThumbLightbox(&$opt)
{
  global $HTMLHeaderFmt, $ThumbList;
  $linkrel = IsEnabled($opt['rel'], $ThumbList['LinkRel']);
  if(preg_match("/lightbox/i", $linkrel))
  {
    $LightboxDirUrl = "/pub/lb"; # YOUR LIGHTBOX DIRECTORY
    $opt['rel'] = 'lightbox[?G]';
    $HTMLHeaderFmt['lightbox'] =<<<EOF
<script type="text/javascript" src="$LightboxDirUrl/prototype.js"></script>
<script type="text/javascript" src="$LightboxDirUrl/builder.js"></script>
<script type="text/javascript" src="$LightboxDirUrl/effects.js"></script>
<script type="text/javascript" src="$LightboxDirUrl/lightbox.js"></script>
<link rel="stylesheet" href="$LightboxDirUrl/lightbox.css" type="text/css" media="screen"/>
EOF;
  }
}
0: 00.00 MarkupToHTML begin
1: 00.01 MarkupToHTML end
2: 00.02 MarkupToHTML begin
3: 00.05 MarkupToHTML end
4: 00.06 MarkupToHTML begin
5: 00.06 MarkupToHTML end
6: 00.06 now