var init = function () {
    jQuery('.latest-video').each ( init_last_video );
}

var init_last_video = function ( key, obj ) {
    ytid  = jQuery('a', obj).attr('rel');
    block = jQuery('dl.block').eq(key);
    size = parseInt(block.css('width'))+'px';

    jQuery(obj).jlEmbed({
        'youtube': ytid,
        'youtubechromeless': false,
        'autoplay' : !_OPTIONS.known_session,
        'format' : 'swfobject',
        'width': size,
        'height': size
    });

}

jQuery(document).ready(init);
