<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ui.core.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ui.tabs.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// Tabs
$('#tabs').tabs({
fx: {
opacity: 'toggle'
}
}).tabs('rotate', 3000);
});
</script>
<?php $slidecat = get_option('swt_slide_category');
$slidecount = get_option('swt_slide_count');
?>
<div id="Container">
<!-- Tabs -->
<div id="tabs">
<?php $my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; $x++; ?>
<div id="tabs-<?php echo $x; ?>" class="feature">
<?php if ( has_post_thumbnail() ) { ?>
<?php get_the_image( array( 'custom_key' => array( 'bigimg' ), 'default_size' => 'full', 'width' => '944', 'height' => '374', 'link_to_post' => false ) ); ?>
<div class="info">
<h2 class="titlesl"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p>
<?php truncate_post(200, true); ?>
</p>
</div>
<?php } else { ?>
<div class="info2">
<h3 class="titlesl"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p>
<?php truncate_post(400, true); ?>
</p>
</div>
<?php } ?>
</div>
<?php endwhile; ?>
<ul id="tabby">
<?php $my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; $xb++;?>
<li>
<a href="#tabs-<?php echo $xb; ?>">
<?php get_the_image( array( 'custom_key' => array( 'slimage' ), 'link_to_post' => false, 'default_size' => 'full', 'width' => '69', 'height' => '71' ) ); ?>
</a>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<div style="clear:both"></div>