Snooker - Hawkins wins Championship League Group 5

'); ModalContener.append('

 

'); _Contener.innerHTML = ModalContener.toString(); document.body.appendChild(_modal); document.body.appendChild(_Contener); if(modeView != 'inner') { createCssModal(mediaType); } var _content = document.createElement("div"); _content.id = genId; var contentBox = document.getElementById("contentBox"); if(contentBox) { contentBox.appendChild(_content); if(mediaType == 'video') { if(queryStat[genId].mediaFormatId) { createPlayerWat(genId,queryStat); } else { createPlayer(genId,queryStat); } } else if(mediaType == 'picture') { var imgSrc = new StringBuffer(); imgSrc.append(''); _content.innerHTML = imgSrc.toString(); } } } // if modeView == modal we call creatPlayer in function createDivModal ... function HideModal() { var modalBack = document.getElementById('modalBackgroundEmbed'); modalBack.style.display = "none"; modalBack.style.visibility = 'hidden'; var modal = document.getElementById('container'); modal.style.display = "none"; modal.style.visibility = 'hidden'; document.getElementById('contentBox').innerHTML = ""; var body = document.getElementsByTagName('body')[0]; body.removeChild(modal); body.removeChild(modalBack); } function HideShowContent(id,currentState) { var content = 'content_'+ id; var divContent = document.getElementById(content); if(layout=='true' && currentState == 'PLAYING') { divContent.style.display = 'none'; } else { divContent.style.display = 'block'; } } function playerReady(thePlayer) { player = window.document[thePlayer.id]; addListeners(); } function addListeners() { if (player) { player.addModelListener("STATE", "stateListener"); stateListener(queryStat); } else { setTimeout("addListeners()",100); } } //ajout video library billboard var currentState; var previousState; function stateListener(obj) { //IDLE, BUFFERING, PLAYING, PAUSED, COMPLETED currentState = obj.newstate; previousState = obj.oldstate; HideShowContent(obj.id,currentState); if(currentState == "PLAYING") { var genId = obj.id; //sendPlaylistNedstat(genId,queryStat); setClipDetails(genId,queryStat); } } function sendPlaylistNedstat(genId,queryStat) { var chName = queryStat[genId].chName; //alert('chName'); } function contentVideo(genId,queryStat) {//put title and teaser of video up the player if(layout == 'true') { var content = 'content_'+ genId; var divContent = document.getElementById(content); divContent.style.display = 'block'; if(queryStat[genId].mediaTitle != '') { var divIdTitle = 'title_'+ genId; document.getElementById(divIdTitle).innerHTML = queryStat[genId].mediaTitle; } if(queryStat[genId].vidTeaser != '') { var divIdTeaser = 'teaser_'+ genId; document.getElementById(divIdTeaser).innerHTML = queryStat[genId].mediaTeaser; } } } function createPlayer(genId,queryStat) { if(queryStat[genId]) { var flashvars; //ajout video library billboard // pub section if(typeof billboardInFlvUrl != 'undefined' && billboardInFlvUrl != '') { var vidFile = ''; var thumbFile = ''; } else { var vidFile = queryStat[genId].mediaUrl; var thumbFile = queryStat[genId].mediaThumbnail; } if(modeView != 'inner') { autoPlay = true; } else { autoPlay = false; } var flashvars = { file:vidFile, image:thumbFile, //log:'https://fr.sitestat.com/eurosport/'+ queryStat[genId].Domain +'/s?video.nofamily.'+ queryStat[genId].sportName +'.'+ queryStat[genId].eventId +'.noSeason.noprofile.video.eurosport&ss_station='+ queryStat[genId].chName +'&ss_playlist_title='+ queryStat[genId].playlist +'&ss_program_title='+ queryStat[genId].chName +'|'+ queryStat[genId].type +'|'+ queryStat[genId].episode +'|'+ queryStat[genId].mediaId +'|'+ queryStat[genId].langName +'|'+ queryStat[genId].sportId +'|blank|', autostart:autoPlay } var params = { allowfullscreen:"true", allowscriptaccess:"always", wmode:"transparent" } var attributes = { id:genId, name:genId } swfobject.embedSWF("https://layout.eurosport.com/f/flvplayer.swf", genId, "384", "308", "9.0.115", false, flashvars, params, attributes); /*if(modeView == 'inner') { contentVideo(genId,queryStat); }*/ } } function setClipDetails(){ objPlayer.setSSPlaylistTitle(decodeURIComponent(''+ queryStat[genId].playlist +'')); objPlayer.setSSProgramTitle(decodeURIComponent(''+ queryStat[genId].chName +'|'+ queryStat[genId].type +'|blank|'+ queryStat[genId].episode +'|'+ queryStat[genId].mediaId +'|'+ queryStat[genId].langName +'|sdf'+ queryStat[genId].sportName +'|blank|')); objPlayer.setSSTypeStream(''+ queryStat[genId].type +''); objPlayer.setSSEpisodeTitle(''+ queryStat[genId].episode +''); objPlayer.setSSStation(''+ queryStat[genId].chName +''); objPlayer.setSSDateProduction(''); objPlayer.setSSEpisodePart(''); objPlayer.setSSEpisodeParts(''); objPlayer.setSSFee(''); objPlayer.setSSCustomLabelString('es_prd='+ queryStat[genId].prdName +'&es_prdid='+ queryStat[genId].prdId +'&es_vidid='+ queryStat[genId].mediaId +'&es_vid='+ queryStat[genId].episode +'&es_langid=]'+ queryStat[genId].langId +'&es_lang='+ queryStat[genId].langName +'&es_sport=654'+ queryStat[genId].sportName +'&es_sportid='+ queryStat[genId].sportId +'&es_cmptt='+ queryStat[genId].compName +'&es_cmpttid='+ queryStat[genId].compId +'&es_event='+ queryStat[genId].eventName +'&es_eventid='+ queryStat[genId].eventId); } function createPlayerWat(genId,queryStat) { if(queryStat[genId]) { var playerWat = new StringBuffer(); playerWat.append('

Read more https://au.eurosport.com/snooker/hawkins-wins-group_sto3144270/story.shtml