if(typeof ULTIMEDIA_param=="undefined"){var ULTIMEDIA_param=new Array}var ULTIMEDIA_param_length=0;var _um_smart_deploy=function(p,o){if(!window.getComputedStyle){window.getComputedStyle=function(z,A){this.el=z;this.getPropertyValue=function(C){var B=/(\-([a-z]){1})/g;if(C=="float"){C="styleFloat"}if(B.test(C)){C=C.replace(B,function(){return arguments[2].toUpperCase()})}return z.currentStyle[C]?z.currentStyle[C]:null};return this}}if(typeof _ultimedia_widget_id=="undefined"){_ultimedia_widget_id=0}else{_ultimedia_widget_id++}if(typeof o!="undefined"&&o!==""){ULTIMEDIA_target=o}if(typeof ULTIMEDIA_resize!="undefined"&&ULTIMEDIA_resize==true){ULTIMEDIA_target=typeof ULTIMEDIA_target!="undefined"&&ULTIMEDIA_target!==""?ULTIMEDIA_target:"_ultimedia_widget_wrapper"+(_ultimedia_widget_id!=0?"_"+_ultimedia_widget_id:"");if(!document.getElementById(ULTIMEDIA_target)){document.write('
')}var f=document.getElementById(ULTIMEDIA_target).parentNode;var a=window.getComputedStyle(f,null).getPropertyValue("padding-left").replace(/[A-Za-z$-]/g,"");var y=window.getComputedStyle(f,null).getPropertyValue("padding-right").replace(/[A-Za-z$-]/g,"");var t=f.offsetWidth-a-y-1}var b="";ULTIMEDIA_ACTION="/api/widget/smart?j=new&t="+(new Date).getTime();var q=function(){if(typeof jwplayer!="undefined"){return 10}var D=document.getElementsByTagName("embed");for(var B in D){if(typeof D[B].src!="undefined"){var E=D[B].src;if(E.indexOf("youtube.com/v")!=-1){return 1}}}var C=document.getElementsByTagName("iframe");for(var B in C){if(typeof C[B].src!="undefined"){var E=C[B].src;if(E.indexOf("youtube.com/embed")!=-1){return 1}if(E.indexOf("20minutos.tv/videoplayerjw")!=-1){return 2}if(E.indexOf("ultimedia.com/deliver")!=-1){return 3}if(E.indexOf("dailymotion.com/embed")!=-1){return 4}if(E.indexOf("launch.newsinc.com")!=-1){return 7}if(E.indexOf("player.m6web.fr")!=-1){return 8}if(E.indexOf("vine.co/v")!=-1){return 9}}}var D=document.getElementsByTagName("object");for(var B in D){if(typeof D[B].name!="undefined"){var E=D[B].name;if(E.indexOf("kplayer")!=-1){return 5}}if(typeof D[B].className!="undefined"&&typeof D[B].offsetWidth!="undefined"){var A=D[B].className;var z=D[B].offsetWidth;if(A.indexOf("BrightcoveExperience")!=-1&&z>250){return 6}}}return 0};if(typeof ULTIMEDIA_resize!="undefined"&&ULTIMEDIA_resize!==""){b+="&resize="+ULTIMEDIA_resize}ULTIMEDIA_metas=new Array;metas=document.getElementsByTagName("meta");for(i=0;i0){b+="&width_new="+encodeURIComponent(t)}if(typeof ULTIMEDIA_show_tooltips!="undefined"&&ULTIMEDIA_show_tooltips!==""){if(ULTIMEDIA_show_tooltips===true){b+="&show_tooltips=yes"}else{if(ULTIMEDIA_show_tooltips===false){b+="&show_tooltips=no"}else{b+="&show_tooltips="+ULTIMEDIA_show_tooltips}}}if(typeof ULTIMEDIA_autoplay!="undefined"&&ULTIMEDIA_autoplay!==""){if(ULTIMEDIA_autoplay===true){b+="&autoplay=yes"}else{if(ULTIMEDIA_autoplay===false){b+="&autoplay=no"}else{b+="&autoplay="+ULTIMEDIA_autoplay}}}if(typeof ULTIMEDIA_playlist!="undefined"&&ULTIMEDIA_playlist!==""){if(ULTIMEDIA_playlist===true){b+="&playlist=yes"}else{if(ULTIMEDIA_playlist===false){b+="&playlist=no"}else{b+="&playlist="+ULTIMEDIA_playlist}}}if(typeof ULTIMEDIA_width!="undefined"&&ULTIMEDIA_width!==""){b+="&width="+encodeURIComponent(ULTIMEDIA_width);ULTIMEDIA_LOADING_SRC+="&width="+encodeURIComponent(ULTIMEDIA_width)}if(typeof ULTIMEDIA_height!="undefined"&&ULTIMEDIA_height!==""){b+="&height="+encodeURIComponent(ULTIMEDIA_height);ULTIMEDIA_LOADING_SRC+="&height="+encodeURIComponent(ULTIMEDIA_height)}if(typeof ULTIMEDIA_layout=="undefined"||ULTIMEDIA_layout===""){ULTIMEDIA_layout=""}b+="&layout="+encodeURIComponent(ULTIMEDIA_layout);ULTIMEDIA_LOADING_SRC+="&layout="+encodeURIComponent(ULTIMEDIA_layout);if(typeof ULTIMEDIA_default_videolist!="undefined"&&ULTIMEDIA_default_videolist!==""){b+="&default_videolist="+encodeURIComponent(ULTIMEDIA_default_videolist)}if(typeof ULTIMEDIA_default_zone!="undefined"&&ULTIMEDIA_default_zone!==""){b+="&default_zone="+ULTIMEDIA_default_zone}if(typeof ULTIMEDIA_default_widget_title!="undefined"&&ULTIMEDIA_default_widget_title!==""){b+="&default_widget_title="+encodeURIComponent(ULTIMEDIA_default_widget_title)}if(typeof ULTIMEDIA_position!="undefined"&&ULTIMEDIA_position!==""){b+="&position="+encodeURIComponent(ULTIMEDIA_position);ULTIMEDIA_LOADING_SRC+="&position="+encodeURIComponent(ULTIMEDIA_position)}if(typeof ULTIMEDIA_width_widget!="undefined"&&ULTIMEDIA_width_widget!==""){b+="&width_widget="+encodeURIComponent(ULTIMEDIA_width_widget);ULTIMEDIA_LOADING_SRC+="&width_widget="+encodeURIComponent(ULTIMEDIA_width_widget)}if(typeof ULTIMEDIA_css_title_font_color!="undefined"&&ULTIMEDIA_css_title_font_color!==""){b+="&css_title_font_color="+encodeURIComponent(ULTIMEDIA_css_title_font_color);ULTIMEDIA_LOADING_SRC+="&css_title_font_color="+encodeURIComponent(ULTIMEDIA_css_title_font_color)}if(typeof ULTIMEDIA_css_title_font!="undefined"&&ULTIMEDIA_css_title_font!==""){b+="&css_title_font="+encodeURIComponent(ULTIMEDIA_css_title_font);ULTIMEDIA_LOADING_SRC+="&css_title_font="+encodeURIComponent(ULTIMEDIA_css_title_font)}if(typeof ULTIMEDIA_css_title_text_align!="undefined"&&ULTIMEDIA_css_title_text_align!==""){b+="&css_title_text_align="+encodeURIComponent(ULTIMEDIA_css_title_text_align);ULTIMEDIA_LOADING_SRC+="&css_title_text_align="+encodeURIComponent(ULTIMEDIA_css_title_text_align)}if(typeof ULTIMEDIA_css_title_background_color!="undefined"&&ULTIMEDIA_css_title_background_color!==""){b+="&css_title_background_color="+encodeURIComponent(ULTIMEDIA_css_title_background_color);ULTIMEDIA_LOADING_SRC+="&css_title_background_color="+encodeURIComponent(ULTIMEDIA_css_title_background_color)}if(typeof ULTIMEDIA_css_title_widget_uppercase!="undefined"&&ULTIMEDIA_css_title_widget_uppercase!==""){b+="&css_title_widget_uppercase="+encodeURIComponent(ULTIMEDIA_css_title_widget_uppercase);ULTIMEDIA_LOADING_SRC+="&css_title_widget_uppercase="+encodeURIComponent(ULTIMEDIA_css_title_widget_uppercase)}if(typeof ULTIMEDIA_css_header_font!="undefined"&&ULTIMEDIA_css_header_font!==""){b+="&css_header_font="+encodeURIComponent(ULTIMEDIA_css_header_font);ULTIMEDIA_LOADING_SRC+="&css_header_font="+encodeURIComponent(ULTIMEDIA_css_header_font)}if(typeof ULTIMEDIA_css_header_font_color!="undefined"&&ULTIMEDIA_css_header_font_color!==""){b+="&css_header_font_color="+encodeURIComponent(ULTIMEDIA_css_header_font_color);ULTIMEDIA_LOADING_SRC+="&css_header_font_color="+encodeURIComponent(ULTIMEDIA_css_header_font_color)}if(typeof ULTIMEDIA_css_header_border!="undefined"&&ULTIMEDIA_css_header_border!==""){b+="&css_header_border="+encodeURIComponent(ULTIMEDIA_css_header_border);ULTIMEDIA_LOADING_SRC+="&css_header_border="+encodeURIComponent(ULTIMEDIA_css_header_border)}if(typeof ULTIMEDIA_css_panel_position!="undefined"&&ULTIMEDIA_css_panel_position!==""){b+="&css_panel_position="+encodeURIComponent(ULTIMEDIA_css_panel_position);ULTIMEDIA_LOADING_SRC+="&css_panel_position="+encodeURIComponent(ULTIMEDIA_css_panel_position)}if(typeof ULTIMEDIA_css_panel_font_size!="undefined"&&ULTIMEDIA_css_panel_font_size!==""){b+="&css_panel_font_size="+encodeURIComponent(ULTIMEDIA_css_panel_font_size);ULTIMEDIA_LOADING_SRC+="&css_panel_font_size="+encodeURIComponent(ULTIMEDIA_css_panel_font_size)}if(typeof ULTIMEDIA_css_panel_font_color!="undefined"&&ULTIMEDIA_css_panel_font_color!==""){b+="&css_panel_font_color="+encodeURIComponent(ULTIMEDIA_css_panel_font_color);ULTIMEDIA_LOADING_SRC+="&css_panel_font_color="+encodeURIComponent(ULTIMEDIA_css_panel_font_color)}if(typeof ULTIMEDIA_css_panel_text_align!="undefined"&&ULTIMEDIA_css_panel_text_align!==""){b+="&css_panel_text_align="+encodeURIComponent(ULTIMEDIA_css_panel_text_align);ULTIMEDIA_LOADING_SRC+="&css_panel_text_align="+encodeURIComponent(ULTIMEDIA_css_panel_text_align)}if(typeof ULTIMEDIA_css_panel_text_uppercase!="undefined"&&ULTIMEDIA_css_panel_text_uppercase!==""){b+="&css_panel_text_uppercase="+encodeURIComponent(ULTIMEDIA_css_panel_text_uppercase);ULTIMEDIA_LOADING_SRC+="&css_panel_text_uppercase="+encodeURIComponent(ULTIMEDIA_css_panel_text_uppercase)}if(typeof ULTIMEDIA_css_thumb_background_color!="undefined"&&ULTIMEDIA_css_thumb_background_color!==""){b+="&css_thumb_background_color="+encodeURIComponent(ULTIMEDIA_css_thumb_background_color);ULTIMEDIA_LOADING_SRC+="&css_thumb_background_color="+encodeURIComponent(ULTIMEDIA_css_thumb_background_color)}if(typeof ULTIMEDIA_css_thumb_border_color!="undefined"&&ULTIMEDIA_css_thumb_border_color!==""){b+="&css_thumb_border_color="+encodeURIComponent(ULTIMEDIA_css_thumb_border_color);ULTIMEDIA_LOADING_SRC+="&css_thumb_border_color="+encodeURIComponent(ULTIMEDIA_css_thumb_border_color)}if(typeof ULTIMEDIA_css_thumb_infos_font_color!="undefined"&&ULTIMEDIA_css_thumb_infos_font_color!==""){b+="&css_thumb_infos_font_color="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_color);ULTIMEDIA_LOADING_SRC+="&css_thumb_infos_font_color="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_color)}if(typeof ULTIMEDIA_css_thumb_infos_font!="undefined"&&ULTIMEDIA_css_thumb_infos_font!==""){b+="&css_thumb_infos_font="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font);ULTIMEDIA_LOADING_SRC+="&css_thumb_infos_font="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font)}if(typeof ULTIMEDIA_css_thumb_background_color_hover!="undefined"&&ULTIMEDIA_css_thumb_background_color_hover!==""){b+="&css_thumb_background_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_background_color_hover);ULTIMEDIA_LOADING_SRC+="&css_thumb_background_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_background_color_hover)}if(typeof ULTIMEDIA_css_thumb_border_color_hover!="undefined"&&ULTIMEDIA_css_thumb_border_color_hover!==""){b+="&css_thumb_border_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_border_color_hover);ULTIMEDIA_LOADING_SRC+="&css_thumb_border_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_border_color_hover)}if(typeof ULTIMEDIA_css_thumb_infos_font_color_hover!="undefined"&&ULTIMEDIA_css_thumb_infos_font_color_hover!==""){b+="&css_thumb_infos_font_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_color_hover);ULTIMEDIA_LOADING_SRC+="&css_thumb_infos_font_color_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_color_hover)}if(typeof ULTIMEDIA_css_thumb_infos_font_hover!="undefined"&&ULTIMEDIA_css_thumb_infos_font_hover!==""){b+="&css_thumb_infos_font_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_hover);ULTIMEDIA_LOADING_SRC+="&css_thumb_infos_font_hover="+encodeURIComponent(ULTIMEDIA_css_thumb_infos_font_hover)}if(typeof ULTIMEDIA_css_thumb_text_uppercase!="undefined"&&ULTIMEDIA_css_thumb_text_uppercase!==""){b+="&css_thumb_text_uppercase="+encodeURIComponent(ULTIMEDIA_css_thumb_text_uppercase);ULTIMEDIA_LOADING_SRC+="css_thumb_text_uppercase="+encodeURIComponent(ULTIMEDIA_css_thumb_text_uppercase)}if(typeof ULTIMEDIA_css_list_overflow_x!="undefined"&&ULTIMEDIA_css_list_overflow_x!==""){b+="&css_list_overflow_x="+encodeURIComponent(ULTIMEDIA_css_list_overflow_x);ULTIMEDIA_LOADING_SRC+="&css_list_overflow_x="+encodeURIComponent(ULTIMEDIA_css_list_overflow_x)}if(typeof ULTIMEDIA_css_list_overflow_y!="undefined"&&ULTIMEDIA_css_list_overflow_y!==""){b+="&css_list_overflow_y="+encodeURIComponent(ULTIMEDIA_css_list_overflow_y);ULTIMEDIA_LOADING_SRC+="&css_list_overflow_y="+encodeURIComponent(ULTIMEDIA_css_list_overflow_y)}if(typeof ULTIMEDIA_css_list_background_color!="undefined"&&ULTIMEDIA_css_list_background_color!==""){b+="&css_list_background_color="+encodeURIComponent(ULTIMEDIA_css_list_background_color);ULTIMEDIA_LOADING_SRC+="&css_list_background_color="+encodeURIComponent(ULTIMEDIA_css_list_background_color)}if(typeof ULTIMEDIA_css_photosgallery_selected_border!="undefined"&&ULTIMEDIA_css_photosgallery_selected_border!==""){b+="&css_photosgallery_selected_border="+encodeURIComponent(ULTIMEDIA_css_photosgallery_selected_border);ULTIMEDIA_LOADING_SRC+="&css_photosgallery_selected_border="+encodeURIComponent(ULTIMEDIA_css_photosgallery_selected_border)}if(typeof ULTIMEDIA_css_photosgallery_nav_background_color!="undefined"&&ULTIMEDIA_css_photosgallery_nav_background_color!==""){b+="&css_photosgallery_nav_background_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_nav_background_color);ULTIMEDIA_LOADING_SRC+="&css_photosgallery_nav_background_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_nav_background_color)}if(typeof ULTIMEDIA_css_photosgallery_button_nav_font_color!="undefined"&&ULTIMEDIA_css_photosgallery_button_nav_font_color!==""){b+="&css_photosgallery_button_nav_font_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_font_color);ULTIMEDIA_LOADING_SRC+="&css_photosgallery_button_nav_font_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_font_color)}if(typeof ULTIMEDIA_css_photosgallery_button_nav_background_color!="undefined"&&ULTIMEDIA_css_photosgallery_button_nav_background_color!==""){b+="&css_photosgallery_button_nav_background_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_background_color);ULTIMEDIA_LOADING_SRC+="&css_photosgallery_button_nav_background_color="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_background_color)}if(typeof ULTIMEDIA_css_photosgallery_button_nav_font_color_hover!="undefined"&&ULTIMEDIA_css_photosgallery_button_nav_font_color_hover!==""){b+="&css_photosgallery_button_nav_font_color_hover="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_font_color_hover);ULTIMEDIA_LOADING_SRC+="&css_photosgallery_button_nav_font_color_hover="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_font_color_hover)}if(typeof ULTIMEDIA_css_photosgallery_button_nav_background_color_hover!="undefined"&&ULTIMEDIA_css_photosgallery_button_nav_background_color_hover!==""){b+="&css_photosgallery_button_nav_background_color_hover="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_background_color_hover);ULTIMEDIA_LOADING_SRC+="css_photosgallery_button_nav_background_color_hover="+encodeURIComponent(ULTIMEDIA_css_photosgallery_button_nav_background_color_hover)}if(typeof ULTIMEDIA_css_footer_font_color!="undefined"&&ULTIMEDIA_css_footer_font_color!==""){b+="&css_footer_font_color="+encodeURIComponent(ULTIMEDIA_css_footer_font_color);ULTIMEDIA_LOADING_SRC+="&css_footer_font_color="+encodeURIComponent(ULTIMEDIA_css_footer_font_color)}if(typeof ULTIMEDIA_css_footer_text_align!="undefined"&&ULTIMEDIA_css_footer_text_align!==""){b+="&css_footer_text_align="+encodeURIComponent(ULTIMEDIA_css_footer_text_align);ULTIMEDIA_LOADING_SRC+="&css_title_footer_align="+encodeURIComponent(ULTIMEDIA_css_footer_text_align)}if(typeof ULTIMEDIA_css_background_color!="undefined"&&ULTIMEDIA_css_background_color!==""){b+="&css_background_color="+encodeURIComponent(ULTIMEDIA_css_background_color);ULTIMEDIA_LOADING_SRC+="&css_background_color="+encodeURIComponent(ULTIMEDIA_css_background_color)}if(typeof ULTIMEDIA_css_background_image!="undefined"&&ULTIMEDIA_css_background_image!==""){b+="&css_background_image="+encodeURIComponent(ULTIMEDIA_css_background_image);ULTIMEDIA_LOADING_SRC+="&css_background_image="+encodeURIComponent(ULTIMEDIA_css_background_image)}if(typeof ULTIMEDIA_css_background_repeat!="undefined"&&ULTIMEDIA_css_background_repeat!==""){b+="&css_background_repeat="+encodeURIComponent(ULTIMEDIA_css_background_repeat);ULTIMEDIA_LOADING_SRC+="&css_background_repeat="+encodeURIComponent(ULTIMEDIA_css_background_repeat)}if(typeof ULTIMEDIA_css_background_position!="undefined"&&ULTIMEDIA_css_background_position!==""){b+="&css_background_position="+encodeURIComponent(ULTIMEDIA_css_background_position);ULTIMEDIA_LOADING_SRC+="&css_background_position="+encodeURIComponent(ULTIMEDIA_css_background_position)}if(typeof ULTIMEDIA_source_logo_brand!="undefined"&&ULTIMEDIA_source_logo_brand!==""){b+="&source_logo_brand="+encodeURIComponent(ULTIMEDIA_source_logo_brand);ULTIMEDIA_LOADING_SRC+="&source_logo_brand="+encodeURIComponent(ULTIMEDIA_source_logo_brand)}if(typeof ULTIMEDIA_url_logo_brand!="undefined"&&ULTIMEDIA_url_logo_brand!==""){b+="&url_logo_brand="+encodeURIComponent(ULTIMEDIA_url_logo_brand);ULTIMEDIA_LOADING_SRC+="&url_logo_brand="+encodeURIComponent(ULTIMEDIA_url_logo_brand)}if(typeof jwplayer!="undefined"&&typeof DTKPlayer=="undefined"){b+="&jw=1"}if(typeof ULTIMEDIA_async=="undefined"){ULTIMEDIA_async=true}if(typeof ULTIMEDIA_force_setting!="undefined"&&ULTIMEDIA_force_setting!==""){b+="&force_setting="+encodeURIComponent(ULTIMEDIA_force_setting);ULTIMEDIA_LOADING_SRC+="&force_setting="+encodeURIComponent(ULTIMEDIA_force_setting)}if(typeof ULTIMEDIA_validated_videos_only!="undefined"&&ULTIMEDIA_validated_videos_only!==""){b+="&restriction="+encodeURIComponent(ULTIMEDIA_validated_videos_only)}var d={};var n=false;var h=false;var m=false;var r=ULTIMEDIA_target;var s=ULTIMEDIA_mdtk;_appendUltimediaWidget=function(){var C=true;for(var A in d){if(d.hasOwnProperty(A)){C=false;if(document.getElementById(A)){var B=Math.round(document.getElementById(A).getBoundingClientRect().top);if(h){if(window.innerHeight){var z=(3*window.innerHeight)}else{var z=(3*window.document.documentElement.clientHeight)}}else{if(window.innerHeight){var z=window.innerHeight+Math.round(window.innerHeight/2)}else{var z=window.document.documentElement.clientHeight+Math.round(window.document.documentElement.clientHeight/2)}}var D=B-z;if(D<=0){if(document.getElementById(A)){document.getElementById(A).appendChild(d[A]);delete d[A]}}}}}if(typeof window.addEventListener!="undefined"){if(C){window.removeEventListener("scroll",_appendUltimediaWidget)}}else{if(C){window.detachEvent("onscroll",_appendUltimediaWidget)}}};_ultimedia_set_widget_params=function(z){if(z.widget_position_div!="undefined"&&z.widget_position_div!=""){_ultimedia_widget_position_div=z.widget_position_div}if(z.widget_position_place!="undefined"&&z.widget_position_place!=""){_ultimedia_widget_position_place=z.widget_position_place}if(z.is_scroll_to_play_mobile!="undefined"&&z.is_scroll_to_play_mobile!=""){m=z.is_scroll_to_play_mobile}if(z.scroll_to_show!="undefined"&&z.scroll_to_show){n=true}if(z.multiad!="undefined"&&z.multiad){h=true}};_ultimedia_checkIfScrollable=function(E,G,B,F,D){if(!D){if(!document.getElementById(B)){document.write('
')}}var z;if(window.XMLHttpRequest){z=new XMLHttpRequest();z.onreadystatechange=function(){if(z.readyState==4&&z.status==200){var K=JSON.parse(z.responseText);_ultimedia_set_widget_params(K);_ultimedia_auto_append();F(B)}};try{var J="url=";var H="meta_breadcrumb=";var I="meta_tag=";if(typeof document.URL!="undefined"&&document.URL!==""){J+=encodeURIComponent(document.URL)}if(typeof ULTIMEDIA_metas.breadcrumb!="undefined"&&ULTIMEDIA_metas.breadcrumb!==""){H+=encodeURIComponent(ULTIMEDIA_metas.breadcrumb)}if(typeof ULTIMEDIA_metas.tag!="undefined"&&ULTIMEDIA_metas.tag!==""){I+=encodeURIComponent(ULTIMEDIA_metas.tag)}G=(typeof G!="undefined")?G:"";var C="https://www.ultimedia.com/api/widget/getwidget/mdtk/"+E+"/zone/"+G+"?"+J+"&"+H+"&"+I;z.open("GET",C,true);z.send()}catch(A){xhr=new XDomainRequest();xhr.open("get",C);xhr.onload=function(){if(xhr.responseXML){var K=JSON.parse(xhr.responseXML)}else{if(xhr.responseText){var K=JSON.parse(xhr.responseText)}}_ultimedia_set_widget_params(K);_ultimedia_auto_append();F(B)};xhr.onprogress=function(){};xhr.ontimeout=function(){};setTimeout(function(){xhr.send()},0)}}};_ultimedia_auto_append=function(){if(typeof _ultimedia_widget_position_div!="undefined"&&_ultimedia_widget_position_div!=""){if(document.getElementById(r)){if(document.getElementById(r).parentElement!=null){var B=document.getElementById(r);B.parentElement.removeChild(B)}}if(typeof document.querySelector!="function"&&typeof document.querySelector!="object"){return}else{if(!document.getElementById(r)){var z=document.createElement("div");z.setAttribute("id",r);var A=document.querySelectorAll(_ultimedia_widget_position_div)[0];if(_ultimedia_widget_position_place=="insertAfter"){A.parentElement.insertBefore(z,A.nextSibling)}else{A.parentElement.insertBefore(z,A)}}}}};_ultimedia_load_synchronous_widget=function(A){b+="&target="+encodeURIComponent(A);if(document.getElementById(A)){if(typeof document.getElementById(A)!="undefined"){var z=document.getElementById(A).children[0];if(z!=undefined&&(z.tagName=="IMG"||z.tagName=="PICTURE")){var B=document.createElement("div");B.id=A+"_wrapper";B.style.display="none";document.getElementById(A).appendChild(B)}}}if(_ultimedia_isWidgetAtTop(A)||!n){var C=document.createElement("script");C.setAttribute("type","text/javascript");C.setAttribute("src",b);if(document.getElementById(A)){document.getElementById(A).appendChild(C)}}else{var C=document.createElement("script");C.setAttribute("type","text/javascript");C.setAttribute("src",b);d[A]=C;_ultimedia_loadWidget(A)}};_ultimedia_loadWidget=function(A){if(n){_ultimedia_attachEventListeners()}else{for(var z in d){if(d.hasOwnProperty(z)){if(document.getElementById(z)){if(document.getElementById(z)){document.getElementById(z).appendChild(d[z]);delete d[z]}}}}}};_ultimedia_isWidgetAtTop=function(B){var C=false;if(document.getElementById(B)){var A=Math.round(document.getElementById(B).getBoundingClientRect().top);if(window.innerHeight){var z=window.innerHeight+Math.round(window.innerHeight/2)}else{var z=window.document.documentElement.clientHeight+Math.round(window.document.documentElement.clientHeight/2)}var D=A-z;if(D<=0){C=true}}return C};_ultimedia_attachEventListeners=function(){if(typeof window.addEventListener!="undefined"){window.addEventListener("scroll",_appendUltimediaWidget)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("scroll",_appendUltimediaWidget)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onscroll",_appendUltimediaWidget)}}}};if(typeof ULTIMEDIA_target!="undefined"&&ULTIMEDIA_target!==""&&document.getElementById(ULTIMEDIA_target)&&ULTIMEDIA_async===true){var e=ULTIMEDIA_mdtk;var k=(typeof ULTIMEDIA_zone!="undefined")?ULTIMEDIA_zone:"";b+="&target="+encodeURIComponent(ULTIMEDIA_target);if(document.readyState=="complete"){b+="&otherplayer="+encodeURIComponent(q());g=document.createElement("script");g.setAttribute("type","text/javascript");g.setAttribute("src",b);if(!_ultimedia_isWidgetAtTop(ULTIMEDIA_target)){d[ULTIMEDIA_target]=g;_ultimedia_checkIfScrollable(e,k,ULTIMEDIA_target,_ultimedia_loadWidget,true)}else{document.getElementById(ULTIMEDIA_target).appendChild(g)}}else{if(typeof _ultimedia_targets=="undefined"){_ultimedia_targets=new Array}_ultimedia_targets[ULTIMEDIA_target]=b;if(typeof _ultimedia_onload=="undefined"){_ultimedia_onload=function(){_ultimedia_onload_done=true;for(_ultimedia_target in _ultimedia_targets){if(document.getElementById(_ultimedia_target)){_ultimedia_targets[_ultimedia_target]+="&otherplayer="+encodeURIComponent(q());g=document.createElement("script");g.setAttribute("type","text/javascript");g.setAttribute("src",_ultimedia_targets[_ultimedia_target]);if(!_ultimedia_isWidgetAtTop(_ultimedia_target)){d[_ultimedia_target]=g;_ultimedia_checkIfScrollable(e,k,_ultimedia_target,_ultimedia_loadWidget,true)}else{document.getElementById(_ultimedia_target).appendChild(g)}}}}}if(typeof window.addEventListener!="undefined"){window.addEventListener("load",_ultimedia_onload,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",_ultimedia_onload,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",_ultimedia_onload)}else{if(typeof window.onload=="function"){var j=window.onload;window.onload=function(){j();_ultimedia_onload()}}else{window.onload=_ultimedia_onload}}}}if(typeof _ultimedia_onload_check=="undefined"){_ultimedia_onload_done=false;_ultimedia_onload_check=function(){if(document.readyState=="complete"&&!_ultimedia_onload_done){_ultimedia_onload()}else{if(!_ultimedia_onload_done){setTimeout("_ultimedia_onload_check()",1000)}}};setTimeout("_ultimedia_onload_check()",1000)}}}else{ULTIMEDIA_target=typeof ULTIMEDIA_target!="undefined"&&ULTIMEDIA_target!==""?ULTIMEDIA_target:"_ultimedia_widget_wrapper"+(_ultimedia_widget_id!=0?"_"+_ultimedia_widget_id:"");b+="&otherplayer="+encodeURIComponent(q());if(typeof document.getElementById(ULTIMEDIA_target)!="undefined"&&document.getElementById(ULTIMEDIA_target)!=null){var c=document.getElementById(ULTIMEDIA_target).children[0];if(c!=undefined&&(c.tagName=="IMG"||c.tagName=="PICTURE")){b+="&click_to_play=1"}else{if(c!=undefined&&c.tagName=="PICTURE"){b+="&click_to_play=1"}}}var g=document.createElement("script");g.setAttribute("type","text/javascript");g.setAttribute("src",b);d[ULTIMEDIA_target]=g;_ultimedia_checkIfScrollable(ULTIMEDIA_mdtk,((typeof ULTIMEDIA_zone!="undefined")?ULTIMEDIA_zone:""),ULTIMEDIA_target,_ultimedia_load_synchronous_widget,false)}ULTIMEDIA_param_length=ULTIMEDIA_param.length;ULTIMEDIA_param[ULTIMEDIA_param_length]=new Array;ULTIMEDIA_param[ULTIMEDIA_param_length]=b;ULTIMEDIA_search="";ULTIMEDIA_mode="";ULTIMEDIA_date="";ULTIMEDIA_index="";ULTIMEDIA_host="";ULTIMEDIA_mdtk="";ULTIMEDIA_zone="";ULTIMEDIA_nb="";ULTIMEDIA_urlfacebook="";ULTIMEDIA_ad="";ULTIMEDIA_callback="";ULTIMEDIA_widget_title="";ULTIMEDIA_widget_footer="";ULTIMEDIA_widget_header="";ULTIMEDIA_overlay_title="";ULTIMEDIA_show_tooltips="";ULTIMEDIA_autoplay="";ULTIMEDIA_playlist="";ULTIMEDIA_width="";ULTIMEDIA_height="";ULTIMEDIA_layout="";ULTIMEDIA_jw_version="";ULTIMEDIA_default_videolist="";ULTIMEDIA_default_zone="";ULTIMEDIA_default_widget_title="";ULTIMEDIA_css_title_font_color="";ULTIMEDIA_css_title_font="";ULTIMEDIA_css_title_text_align="";ULTIMEDIA_css_title_background_color="";ULTIMEDIA_css_panel_position="";ULTIMEDIA_css_panel_font_size="";ULTIMEDIA_css_panel_font_color="";ULTIMEDIA_css_panel_text_align="";ULTIMEDIA_css_thumb_background_color="";ULTIMEDIA_css_thumb_border_color="";ULTIMEDIA_css_thumb_infos_font_color="";ULTIMEDIA_css_thumb_infos_font="";ULTIMEDIA_css_thumb_background_color_hover="";ULTIMEDIA_css_thumb_border_color_hover="";ULTIMEDIA_css_thumb_infos_font_color_hover="";ULTIMEDIA_css_thumb_infos_font_hover="";ULTIMEDIA_css_list_overflow_x="";ULTIMEDIA_css_list_overflow_y="";ULTIMEDIA_css_list_background_color="";ULTIMEDIA_css_photosgallery_selected_border="";ULTIMEDIA_css_photosgallery_nav_background_color="";ULTIMEDIA_css_photosgallery_button_nav_font_color="";ULTIMEDIA_css_photosgallery_button_nav_background_color="";ULTIMEDIA_css_photosgallery_button_nav_font_color_hover="";ULTIMEDIA_css_photosgallery_button_nav_background_color_hover="";ULTIMEDIA_target="";ULTIMEDIA_css_title_widget_uppercase="";ULTIMEDIA_css_panel_text_uppercase="";ULTIMEDIA_css_thumb_text_uppercase="";ULTIMEDIA_css_footer_font_color="";ULTIMEDIA_css_footer_text_align="";ULTIMEDIA_css_background_color="";ULTIMEDIA_css_background_image="";ULTIMEDIA_css_background_repeat="";ULTIMEDIA_css_background_position="";ULTIMEDIA_source_logo_brand="";ULTIMEDIA_url_logo_brand="";ULTIMEDIA_css_header_font="";ULTIMEDIA_css_header_font_color="";ULTIMEDIA_css_header_border="";ULTIMEDIA_resize="";ULTIMEDIA_validated_videos_only="";ULTIMEDIA_async=true};var _ultimedia_host=(window.location.protocol=="https:"?"https":"http")+"://www.ultimedia.com";if((typeof ULTIMEDIA_mdtk=="undefined"||ULTIMEDIA_mdtk!="01425284"&&ULTIMEDIA_mdtk!="01829580"&&ULTIMEDIA_mdtk!="01437259"&&ULTIMEDIA_mdtk!="01238556")&&typeof ULTIMEDIA_host!="undefined"&&ULTIMEDIA_host!==""){var _ultimedia_host=ULTIMEDIA_host}_um_smart_deploy();var um_date=new Date().setUTCHours(0,0,0,0);var _ultimedia_script=document.createElement("script");_ultimedia_script.setAttribute("type","text/javascript");_ultimedia_script.setAttribute("src",_ultimedia_host+"/js/common/visible_player.js?v="+um_date);document.getElementsByTagName("head")[0].appendChild(_ultimedia_script);var _ultimedia_script_notif=document.createElement("script");_ultimedia_script_notif.setAttribute("type","text/javascript");_ultimedia_script_notif.setAttribute("src",_ultimedia_host+"/js/common/notification.js?v="+um_date);document.getElementsByTagName("head")[0].appendChild(_ultimedia_script_notif);var _ultimedia_script_visi=document.createElement("script");_ultimedia_script_visi.setAttribute("type","text/javascript");_ultimedia_script_visi.setAttribute("src",_ultimedia_host+"/js/common/visibilityStat.js?v="+um_date);document.getElementsByTagName("head")[0].appendChild(_ultimedia_script_visi);