<?php

// Add slimbox style sheet
$GLOBALS['TL_CSS'][] = 'plugins/slimbox/css/slimbox.css||static';

?>

<script type="text/javascript" src="<?php echo TL_PLUGINS_URL; ?>plugins/slimbox/js/slimbox.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
Slimbox.scanPage = function() {
  $$(document.links).filter(function(el) {
    return el.rel && el.rel.test(/^lightbox/i);
  }).slimbox({
    // Put custom options here
  }, null, function(el) {
    return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
  });
};
window.addEvent('domready', Slimbox.scanPage);
/* ]]> */
</script>
