function refreshDates() {
    jQuery('.promoDate').each(function() {
        var $this = jQuery(this);
        var id = $this.attr('id').split('-').pop();
        var $post = jQuery('#post-'+id);
        var $title = $post.find('h2');
        var titlePos = $title.offset();                
        var $promoContent = $post.find('.promoContent');
        var promoPos = $promoContent.offset();
        var promoCalcWidth = $promoContent.width() + parseInt($promoContent.css('margin-right'));
        $this.css({ 
            top: titlePos.top + Math.ceil($title.height()/2) + 'px' ,
            left: promoPos.left + promoCalcWidth + 'px'
        });
    });        
}

jQuery(document).ready(function() {
    //http://fancybox.net/api
    jQuery('a.videobox').fancybox({
        width: 600,
        height: 450,
        transitionIn: 'elastic',
        transitionOut: 'elastic',
        easingIn: 'easeOutBack',
        easingOut: 'easeInBack'
    });
});
