Banner images from file set

Permalink
Hello everyone,
I am trying to get some images from a file set direct into my theme.
I've got this:
<div id="banner">
<?php
$a = new Area('Banner');
if (($a->getTotalBlocksInArea($c) > 0) || ($c->isEditMode())) {
   $a->setBlockLimit(1);
   $a->display($c);
} else { 
   echo "No banner available.";
} ?>
</div>

But with this i've got to ad images manualy.
I want it so that when i open a page it automaticly vieuws images from my file set.
Is that posible.
If so how do you do that?

ps. sorry for my bad english. i'm from holland
View Replies:
12345j replied on at Permalink Reply
12345j
Loader::model('file_list');
      Loader::model('file_set');
      $fs = FileSet::getByName('file_set_name');
      $fileList = new FileList();      
      $fileList->filterBySet($fs);
      $fileList->filterByType(FileType::T_IMAGE);   
      $fileList->sortByFileSetDisplayOrder();
      $files = $fileList->get(1000,0);

$files now has an array of all the file objects in the file set file_set_name