function createVideo(){	
 /* 
  data array:
     1 = video name,
     2 = width
     3 = height
     4 = autoplay
     5 = loop
     6 = poster
 */
 $$("div[id^=video]").each(function(el){
 	  data = el.get('rel').split(',');
 	  if (data.length > 5){
 	   if (data[6] != ''){
 	    poster_img='poster="http://www.wuerth.it/images/wos/video/posters/'+data[6]+'"';
 	    flv_poster_img = 'value=\'config={"playlist":["' + flv_poster_img + '", {"url": "http://www.wuerth.it/images/wos/video/video_lq/mp4/'+data[1]+'.mp4","autoPlay":false,"autoBuffering":true}]}';
 	   }
 	  }else{
 	    poster_img='';
 	    flv_poster_img = 'value=\'{"clip":{"url":"http://www.wuerth.it/images/wos/video/video_lq/mp4/'+data[1]+'.mp4","autoPlay":false,"autoBuffering":true}}'; 	    
 	  }
 	  el.set('html', '<div class="video-js-box">'+
 	    '<video class="vjs-paused" width="'+data[2]+'" height="'+data[3]+'" controls preload '+data[4]+' '+data[5]+' '+poster_img+'>'+
      ' <source src="http://www.wuerth.it/images/wos/video/video_lq/mp4/'+data[1]+'.mp4" type=\'video/mp4; codecs="avc1.42E01E, mp4a.40.2"\' />'+
      ' <source src="http://www.wuerth.it/images/wos/video/video_lq/webm/'+data[1]+'.webm" type=\'video/webm; codecs="vp8, vorbis"\' />'+
      ' <source src="http://www.wuerth.it/images/wos/video/video_lq/ogv/'+data[1]+'.ogg" type=\'video/ogg; codecs="theora, vorbis"\' />'+
      ' <object class="vjs-flash-fallback" width="'+data[2]+'" height="'+data[3]+'" type="application/x-shockwave-flash"'+
      '  data="http://www.wuerth.it/php-scripts/wos/common/js/video-js/flowplayer-3.2.7.swf">'+
      '  <param name="movie" value="http://www.wuerth.it/php-scripts/wos/common/js/video-js/flowplayer-3.2.7.swf" />'+
      '  <param name="allowfullscreen" value="true" />'+     
      '  <param name="flashvars" value=\'config={"clip":{"url":"http://www.wuerth.it/images/wos/video/video_lq/mp4/'+data[1]+'.mp4","autoPlay":false,"autoBuffering":true}}\' />'+
      '  <img src="" width="'+data[2]+'" height="'+data[3]+'" alt="Poster Image"'+
      '    title="No video playback capabilities." />'+
      '</object>'+
    '</video></div>');
 });
 VideoJS.setupAllWhenReady();
}
