function initPreviewVideos(baseURL,video) {
  $('#size').show();
  $('#type').show();
  // global
  var sizew = ['160','320','640'];
  var sizeh = ['95', '190','380'];
  var types = ['Standard','YouTube-like'];  
  var s,t;
  
  // comportamientos
  $('input[@type=radio]').click(function(){
    s = $('fieldset#size input:checked').val();
    t = $('fieldset#type input:checked').val();
    createEmbedCode(sizew[s], sizeh[s], types[t]);
  });
  $('input.embed').click(function(obj){
    $(this).focus().select();
  });
  
  // core
  function createEmbedCode(sw,sh,type){
    var flashvars = 'file='+baseURL+'z/flv/'+video+'.flv&amp;image='+baseURL+'z/img/video_'+video+'.jpg';
    var obj = (type=='Standard') 
            ?
            '<object type="application/x-shockwave-flash" data="'+baseURL+'z/swf/mediaplayer.swf" width="'+sw+'" height="'+sh+'">' +
            '<param name="movie" value="'+baseURL+'z/swf/mediaplayer.swf" />'+
            '<param name="flashVars" value="'+flashvars+'" />'+
            '<param name="allowFullScreen" value="true" />'+
            '<param name="wmode" value="transparent" />'+
            '<p>Get the <a href="http://www.adobe.com/go/getflashplayer" title="download Flash Player">Flash Player</a> to watch this video by <a href="'+baseURL+'">Speed Zine Media</a>.</p>'+
            '</object>' 
            :
            '<object width="'+sw+'" height="'+sh+'">'+
            '<param name="movie" value="'+baseURL+'z/swf/mediaplayer.swf?'+flashvars+'"></param>'+
            '<param name="allowFullScreen" value="true"></param>'+
            '<param name="wmode" value="transparent"></param>'+
            '<embed src="'+baseURL+'z/swf/mediaplayer.swf?'+flashvars+'" type="application/x-shockwave-flash" allowfullscreen="true" width="'+sw+'" height="'+sh+'"></embed>'+
            '</object>';

    $('input#embedplayer').attr('value',obj).focus().select();
  };
    
};
