<div id="carousel">
<div class="previous_button"></div>
<div class="container">

<?php $carousel = new WP_query(); $carousel->query('showposts='.$mytheme['carouseln'].'&cat='.$mytheme['carousel'].'&orderby=rand'); ?>
<ul>

<?php while ($carousel->have_posts()) : $carousel->the_post(); ?>
<li>
	<div class="content">
	<a href="<?php the_permalink(); ?>"><?php show_thumb($width=150,$height=100,$crop='T',$quality=95,$blank=true); ?></a>
	</div>
</li>
<?php endwhile; ?>

</ul>

</div>
<div class="next_button"></div>
</div>

<script type="text/javascript">
new UI.Carousel($("carousel"), {});
</script>