<!--BEGIN .hentry -->
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

	<?php $embed = get_post_meta(get_the_ID(), 'tz_video_embed', TRUE); ?>
            
    <?php 
	if($embed == '') : 
		tz_video(get_the_ID()); 
		$height = get_post_meta(get_the_ID(), 'tz_video_height', TRUE); 
	?>
    
    <style type="text/css">
        .jp-video-play,
        div.jp-jplayer.jp-jplayer-video {
            height: <?php echo $height; ?>px;
        }
    </style>
    
    <div id="jquery_jplayer_<?php the_ID(); ?>" class="jp-jplayer jp-jplayer-video"></div>
    
    <div class="jp-video-container">
        <div class="jp-video">
            <div class="jp-type-single">
                <div id="jp_interface_<?php the_ID(); ?>" class="jp-interface">
                    <ul class="jp-controls">
                        <li><div class="seperator-first"></div></li>
                        <li><div class="seperator-second"></div></li>
                        <li><a href="#" class="jp-play" tabindex="1">play</a></li>
                        <li><a href="#" class="jp-pause" tabindex="1">pause</a></li>
                        <li><a href="#" class="jp-mute" tabindex="1">mute</a></li>
                        <li><a href="#" class="jp-unmute" tabindex="1">unmute</a></li>
                    </ul>
                    <div class="jp-progress-container">
                        <div class="jp-progress">
                            <div class="jp-seek-bar">
                                <div class="jp-play-bar"></div>
                            </div>
                        </div>
                    </div>
                    <div class="jp-volume-bar-container">
                        <div class="jp-volume-bar">
                            <div class="jp-volume-bar-value"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <?php else: ?>
    
    <?php echo stripslashes(htmlspecialchars_decode($embed)); ?>
    
    <?php endif; ?>
    
    <?php if(!is_singular()) : ?>
    
    <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    
    <?php endif; ?>
    
    <?php if(!is_single()) get_template_part('includes/post-meta'); ?>

    <!--BEGIN .entry-content -->
    <div class="entry-content clearfix">
        <?php the_content(''); ?>
    <!--END .entry-content -->
    </div>

<!--END .hentry-->  
</div>