<?php if(!isset($id)):?>
	<table>
		<tr>
	<?php foreach($data['data'] as $key=>$val):?>
		<?php if($key!=0 && $key % 5 == 0):?></tr><tr><?php endif;?>
		<td valign="top" style="text-align:center">
				<a href="<?php echo $this->baseUrl("/videopodcast/index/{$val['id']}"); ?>"><img src="<?php echo($val['thumburl']);?>" alt="<?php echo $val['title']; ?>" /></a>
				<p><?php echo $val['title']; ?></p>
		</td>
	<?php endforeach;?>
		</tr>
	</table>
	<?php if($data['paging'] !=""):?>
		<?php echo($data['link']); ?>
	<?php endif;?>
<?php else:?>
	<div class="left">
		<p>
			<?php echo App::Component('Videopodcast')->Helper('Data')->thumbList($data['id']); ?>
		</p>
	</div >
	<div class="center-large">
		<div style="margin:10px  auto  20px; auto;padding:10px;width:500px;">
			<div style="clear:both"></div>
			<p><strong><?php echo($data['title']); ?></strong></p>
			<p><?php echo $data['videocode']; ?></p>
			<p>Published: <?php echo App::Helper('Date')->dateFormated($data['entry_date']);?>
			<p><?php echo $data['description']; ?></p>					
		</div>
	</div>	
<?php endif;?>
