function replaceVideoPalceholders(){
    
    $(".html5placeholderInfos").each(function(i){// EACH Media
       
         var placeholderID                = $(this).find('.placeholderID').html();
    	   var placeholderFile              = $(this).find('.fileurl').html();
    	   var placeholderPreview           = $(this).find('.preview').html();
    	   var youtubeplaceholderPreview    = $(this).find('.youtubepreview').html();
    	   var placeholderControllbar       = $(this).find('.controllbar').html();
    	   var placeholderTyp               = $(this).find('.filetyp').html();
    	   //var filewidth                    = $(this).find('.filewidth').html();
    	   var filewidth					= $(this).css('width');
    	   var fileheight                   = $(this).find('.fileheight').html();    	   
    	   var file                         = $(this).find('.filename').html();
    	   var filebranch                   = $(this).find('.branch').html();
    	   var filesystem                   = $(this).find('.system').html();
    	   var branch                       = $(this).find('.branch').html();
    	   var videoID                      = placeholderID+"-video";
    	   if(placeholderFile && placeholderFile != ""){
    	        $(this).css('display','none');
    	       
    	        if(branch.search("cimzia")> -1 ){
    	            var skin ='static/swf/skins/cimzia/cimzia.xml';
    	          }
    	        else if(branch.search("neupro") > -1){
    	             var skin ='static/swf/skins/neupro/neupro.xml';
    	          }
    	        else{
    	             var skin ='static/swf/skins/ucb-inter/ucb-inter.xml';
    	          }
    	         
    	        switch(placeholderTyp){
    			        case 'mp4':
    			            if($("#"+placeholderID).parents(".swapComponent").length >0){
                   
                        var _w =$("#"+placeholderID).parents(".swapComponent").find('.swap-list').width();
                       _w = _w-8;
                   // $("#"+placeholderID).parents(".hasVideoTop").find("object").parent("div:first").css("width",_w+"px");
                  
    			            }
    			            else{
    			                 var _w  = $("#"+placeholderID).parents(".component").width();
    			              }
    			            jwplayer(placeholderID).setup({
                    			id: videoID,
                    			flashplayer: 'static/swf/player_new.swf',
                    			file: placeholderFile,
                    			image: placeholderPreview,
                    			skin: skin,
                    			width: _w,
                          controlbar: 'bottom'
                    			
                       });
                      
    			              break;
                  case 'swf':
                  $('#'+placeholderID).html('<object width="'+filewidth+'" height="'+fileheight+'" type="application/x-shockwave-flash" data="'+placeholderFile+'" id="'+videoID+'" style="visibility: visible;"></object>');
                  /*
                  <objecttype="application/x-shockwave-flash" data="../_up/ucb_com_about/videos/snail.swf"></object>
                  
                        jwplayer(placeholderID).setup({
                    			id: videoID,
                    			flashplayer: placeholderFile,
                    			width: filewidth,
                          height: fileheight,
                          screencolor: 'FFFFFF'
                       });
                       */
                        break;      
                  case 'flv':
                	  	jwplayer(placeholderID).setup({
                    			id: videoID,
                    			flashplayer: 'static/swf/player_new.swf',
                    			file: "flv:"+filesystem+"/"+filebranch+"/videos/"+file.replace('.flv', ''),
                    			image: placeholderPreview,
                    			skin: skin,
                          		controlbar: 'bottom',
                    			width: filewidth,
                          		height: fileheight,
                    			streamer:'rtmp://195.81.24.9/vod/'
                       });
                        break; 
                  case 'youtube':
                  
                        jwplayer(placeholderID).setup({
                    			id: videoID,
                    			flashplayer: 'static/swf/player_new.swf',
                    			file: placeholderFile,
                    			skin: skin,
                    			width: filewidth,
		                        height: fileheight,
		                        image: youtubeplaceholderPreview,
                    			controlbar: 'bottom'
                    		});
                        break;     
                  default:
              }
 	             
          
    	   }
      });
}

