<div id="display">

	<?php $dl_color = ts_get_option('ts_color'); ?>
		
    <div id="special1" class="display-special">
    	<?php if(ts_get_option('ts_display_1_img')) : ?>
    	<?php $ts_display_1_link = ts_get_option('ts_display_1_link') ? ts_get_option('ts_display_1_link') : get_permalink(ts_get_option('ts_display_1_url')); ?>
    	<a href="<?php echo $ts_display_1_link; ?>">
    		<?php if(!ts_get_option('ts_display_tmb')) : ?>
    		<img src="<?php bloginfo('template_url'); ?>/lib/scripts/thumb.php?src=<?php echo ts_get_option('ts_display_1_img'); ?>&amp;w=300&amp;h=220&amp;zc=1&amp;q=95" alt="" width="300" height="220"/>
    		<?php else : ?>
    		<img src="<?php echo ts_get_option('ts_display_1_img'); ?>" alt="" width="300" height="220"/>
    		<?php endif; ?>
    		<span class="overlay1"></span>
    	</a>
    	<?php $ts_display_1_text = ts_get_option('ts_display_1_text') ? ts_get_option('ts_display_1_text') : get_the_title(ts_get_option('ts_display_1_url')); ?>
    	<h2><a href="<?php echo $ts_display_1_link; ?>"><?php echo $ts_display_1_text; ?></a></h2>
    	<?php else : ?>
    	<img src="<?php echo TS_IMG; ?>display-default-<?php echo $dl_color; ?>.jpg" alt="" width="300" height="220"/>
    	<span class="overlay1"></span>
    	<?php endif; ?>
    </div>
    
    <div id="special2" class="display-special">
    	<?php if(ts_get_option('ts_display_2_img')) : ?>
    	<?php $ts_display_2_link = ts_get_option('ts_display_2_link') ? ts_get_option('ts_display_2_link') : get_permalink(ts_get_option('ts_display_2_url')); ?>
    	<a href="<?php echo $ts_display_2_link; ?>">
    		<?php if(!ts_get_option('ts_display_tmb')) : ?>
    		<img src="<?php bloginfo('template_url'); ?>/lib/scripts/thumb.php?src=<?php echo ts_get_option('ts_display_2_img'); ?>&amp;w=300&amp;h=220&amp;zc=1&amp;q=95" alt="" width="300" height="220"/>
    		<?php else : ?>
    		<img src="<?php echo ts_get_option('ts_display_2_img'); ?>" alt="" width="300" height="220"/>
    		<?php endif; ?>
    		<span class="overlay1"></span>
    	</a>
    	<?php $ts_display_2_text = ts_get_option('ts_display_2_text') ? ts_get_option('ts_display_2_text') : get_the_title(ts_get_option('ts_display_2_url')); ?>
    	<h2><a href="<?php echo $ts_display_2_link; ?>"><?php echo $ts_display_2_text; ?></a></h2>
    	<?php else : ?>
    	<img src="<?php echo TS_IMG; ?>display-default-<?php echo $dl_color; ?>.jpg" alt="" width="300" height="220"/>
    	<span class="overlay1"></span>
    	<?php endif; ?>
    </div>
    
    <div id="special3" class="display-special">
    	<?php if(ts_get_option('ts_display_3_img')) : ?>
    	<?php $ts_display_3_link = ts_get_option('ts_display_3_link') ? ts_get_option('ts_display_3_link') : get_permalink(ts_get_option('ts_display_3_url')); ?>
    	<a href="<?php echo $ts_display_3_link; ?>">
    		<?php if(!ts_get_option('ts_display_tmb')) : ?>
    		<img src="<?php bloginfo('template_url'); ?>/lib/scripts/thumb.php?src=<?php echo ts_get_option('ts_display_3_img'); ?>&amp;w=300&amp;h=220&amp;zc=1&amp;q=95" alt="" width="300" height="220"/>
    		<?php else : ?>
    		<img src="<?php echo ts_get_option('ts_display_3_img'); ?>" alt="" width="300" height="220"/>
    		<?php endif; ?>
    		<span class="overlay1"></span>
    	</a>
    	<?php $ts_display_3_text = ts_get_option('ts_display_3_text') ? ts_get_option('ts_display_3_text') : get_the_title(ts_get_option('ts_display_3_url')); ?>
    	<h2><a href="<?php echo $ts_display_3_link; ?>"><?php echo $ts_display_3_text; ?></a></h2>
    	<?php else : ?>
    	<img src="<?php echo TS_IMG; ?>display-default-<?php echo $dl_color; ?>.jpg" alt="" width="300" height="220"/>
    	<span class="overlay1"></span>
    	<?php endif; ?>
    </div>

</div><!-- end display -->