<?
$rand = rand(0,10000);
?>
<link rel='stylesheet'  href='resources/jq_nivo_slider/nivo-slider.css' type='text/css' media='all' />
<link rel='stylesheet'  href='resources/jq_nivo_slider/themes/orman/orman.css' type='text/css' media='all' />
<script type="text/javascript" src="resources/jq_nivo_slider/jquery.nivo.slider.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#article_slider_<?=$rand;?>").nivoSlider({
        animSpeed:1000,
        pauseTime:3000,
        startSlide:0,
        directionNav:true,
        directionNavHide:true,
        controlNav:true,
        controlNavThumbs:false,
        controlNavThumbsFromRel:true,
        keyboardNav:true,
        manualAdvance:false
      });
  });
</script>
<div class="slider-wrapper theme-orman">
  <div id="article_slider_<?=$rand;?>" class="nivoSlider">
    <?
    if ( isset( $this -> _images ) && is_array( $this -> _images ) ) foreach ( $this -> _images as $img )
    {
      ?>
        <img src='<?=$img['src'];?>' style="width: 568px;">
      <?
    }
    ?>
  </div>
    <div id="htmlcaption" class="nivo-html-caption">
        <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
    </div>
</div>