<% if (post.contentType === 'image') { %>
<% } else if (post.contentType === 'youtube') { %>
<% } else if (post.contentType === 'flash') { %>
<% } else if (post.contentType === 'video') { %>
<% if (post.flags.loop) { %>
% var postContentUrl = '/data/posts/' + post.name + '?' + Math.round(Math.random() * 1000) /* reset gif animations */ var width; var height; if (post.contentType === 'image' || post.contentType === 'flash') { width = post.imageWidth; height = post.imageHeight; } else { width = 800; height = 600; } %>