<h2 class="front-gal">گالری عکس</h2>
<div id="gallery">
<div class="previous_button"></div>
<div class="container">

<?php $gallery = new WP_query(); $gallery->query('showposts='.$mytheme['galleryn'].'&cat='.$mytheme['gallery'].'&orderby=rand'); ?>
<ul>
<?php while ($gallery->have_posts()) : $gallery->the_post(); ?>
<li>
<div class="content">
<?php show_thumb($width=150,$height=100,$crop='T',$quality=95,$blank=true); ?>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
<div class="next_button"></div>
</div>

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