// JavaScript Document

$(document).ready( function() {
	
	// Centering Images Vertically inside the div (default height: 214px)
	var thumbHeight;
	if ($('.post-thumbnail img').height() > 214) {
		thumbHeight = 214;		
	} else {
		thumbHeight = $('.post-thumbnail img').height();
	}
	$('.post-thumbnail').css("height",thumbHeight);
	
	var thumbOffset = Math.round(($('.post-thumbnail img').height() - thumbHeight) / 2);
	thumbOffset = "-"+thumbOffset+"px";
	$('.post-thumbnail img').css("margin-top",thumbOffset);
});
