(function(j){var f=j.utils;j().registerPlugin("related","6.0",function(b,g,e){function z(){t();v=setInterval(function(){e.clientWidth!=a[2]&&t()},250);b.pause(!0);e.style.visibility="visible";e.style.opacity=1;b.setControls(!1);!1==w&&(w=!0,r?(n.innerHTML="",f.ajax(r,B,h)):h("No related videos file found"))}function x(c){"play"==g.onclick?(b.load(c),b.play()):window.top.location=c.link}function y(){!1!==g.oncomplete&&setTimeout(u,50)}function u(){"IDLE"==b.getState()&&z()}function h(c){c==r?f.log("RELATED: Failed to load "+
c):f.log("RELATED: "+c);p.innerHTML="";n.innerHTML="No related videos found";a[4]=200;a[5]=0;A(a[2],a[3])}function d(){v&&clearInterval(v);setTimeout(l,200);e.style.opacity=0;b.setControls(!0)}function l(){e.style.visibility="hidden"}function m(c){w=!1;r=void 0;s=[];p.innerHTML="";d();c=b.getPlaylist()[c.index];g.file&&(0<g.file.indexOf("MEDIAID")&&c.mediaid?r=g.file.replace("MEDIAID",c.mediaid):-1==g.file.indexOf("MEDIAID")&&(r=g.file));b.addButton(C,g.heading?g.heading:"Related Videos",z,"related")}
function B(c){var a=[];try{a=j.parsers.rssparser.parse(c.responseXML.firstChild)}catch(b){f.log(b);h("This feed is not valid XML and/or RSS.");return}for(c=0;c<a.length;c++)a[c].image&&(a[c].title&&("play"==g.onclick&&a[c].sources[0].file||"play"!=g.onclick&&a[c].link))&&s.push(a[c]);0==a.length&&h("RSS feed has 0 entries that contain title,link and image.");t()}function t(){p.innerHTML="";if(void 0!==s&&s.length){var c=0,b=0;a[2]=e.clientWidth;a[3]=e.clientHeight;a[4]=0;for(var d=a[5]=0;d<s.length;d++){var f=
j.related.thumb(a[0],a[1],s[d],x);p.appendChild(f);k(f,{left:(a[0]+10)*c+"px",top:(a[1]+10)*b+"px"});a[4]=Math.max(a[4],a[0]*(c+1)+10*c);a[5]=Math.max(a[5],a[1]*(b+1)+10*b);if((a[0]+10)*(c+2)>a[2])if((a[1]+10)*(b+2)>a[3]-80)break;else b++,c=0;else c++}n.innerHTML=g.heading?g.heading:"Related Videos";A(a[2],a[3])}}function A(c,b){k(q,{left:c-32+"px"});k(p,{left:Math.round(c/2-a[4]/2)+"px",top:Math.round(b/2-a[5]/2)+"px"});k(n,{left:Math.round(c/2-a[4]/2)+"px",width:a[4]+"px",top:Math.round(b/2-a[5]/
2-30)+"px"})}function k(a,b){f.foreach(b,function(b,d){a.style[b]=d})}var q,a,r,n,p,w,s,v,D={cursor:"pointer",position:"absolute",left:"120px",top:"20px",margin:"0px",padding:"0px",display:"block",width:"12px",height:"12px"},E={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADICAYAAAAp8ov1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEdJREFUeNpilpSUvMHEwMDwn+k/EEBY+LkwFgMuCWINwDCPVB30cBoDaTpgBMMoQU2CkYkRCCAsNC6pEgyUGoBHYvA6DSDAAOnHjLU15EHNAAAAAElFTkSuQmCC)",backgroundRepeat:"no-repeat",
backgroundSize:"100% 100%",opacity:0,"z-index":101,webkitTransition:"opacity 250ms linear",MozTransition:"opacity 250ms linear",msTransition:"opacity 250ms linear",transition:"opacity 250ms linear",cursor:"pointer",visibility:"hidden",width:"100%",height:"100%"},F={position:"absolute",border:"none",color:"#FFF",display:"block",font:"15px Arial",overflow:"hidden",width:"240px",margin:"0 0 0 0",textAlign:"center",textTransform:"none",padding:"0 0 0 0"},C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAOCAYAAAAvxDzwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALVJREFUeNqsVMERhCAMzNmAJVgaJWAHlGIJluB1YAnYASXEwOVmctzCR3YmOia7a4IgkQEzO4nI/zg0amSuoxqSnCVOiSTh87Op7cZgrzReNafVkL79N/nJB9BVaDRz2DETMFu4jQWYpjK+rkMAy7B1DDfAz9NEUsIMCLFjGBvfgV/lIgAEpg5amuGG07ddoLk6fhcaOd8nLa5A9O4YotpavIZvm+Eb++HRc/DoPfw5eOtxCzAABeIMZWrWSG0AAAAASUVORK5CYII\x3d";
b.onReady(function(){if("flash"!=b.getRenderingMode()){b.onPlaylistItem(m);b.onComplete(y);k(e,E);if(f.isMobile()){var a=new f.touch(e);a.addEventListener(f.touchEvents.TAP,function(a){d(a)})}else e.onclick=d;q=document.createElement("div");k(q,D);k(q,{background:"transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAItJREFUeNp8kUEOABEMRXUysXQnJ5k5GidxAmcxsbQxmiAlLUlD/df6UDnn1KK2eJQwUOtMAlwQ7TXG+B1ukxv5hRDRHT1ph5EFSRgN9tPh0E2drO6Xo7E8xk2TGKPSWi9NSilLPi2FEI6WrLV+FjAwe2ksAg4e3TgNCyoHS1bx4z4JxtH3hsXvF2AAnU9uUtSy19QAAAAASUVORK5CYII\x3d)"});
f.isMobile()?(a=new f.touch(q),a.addEventListener(f.touchEvents.TAP,function(a){d(a)})):q.onclick=d;e.appendChild(q);n=document.createElement("div");n.innerHTML=g.heading?g.heading:"Related Videos";k(n,F);e.appendChild(n);p=document.createElement("div");e.appendChild(p);k(p,{position:"absolute"})}});b.onPlay(d);this.resize=function(c,d){if("flash"!=b.getRenderingMode()){a=[140,90,c,d,200,0];k(q,{left:c-32+"px"});if(g.dimensions)for(var f=g.dimensions.split("x"),e=0;2>e;e++)a[e]=parseInt(f[e]);t()}}})})(jwplayer);
(function(j){var f=j.utils;j.related||(j.related={},j.related.thumb=function(b,g,e,j){function x(){h(d,{webkitBoxShadow:"0 0 4px #FFF",MozBoxShadow:"0 0 4px #FFF",msBoxShadow:"0 0 4px #FFF",boxShadow:"0 0 4px #FFF"});h(m,{color:"#FFF"})}function y(){h(d,{webkitBoxShadow:"0 0 4px #000",MozBoxShadow:"0 0 4px #000",msBoxShadow:"0 0 4px #000",boxShadow:"0 0 4px #000"});h(m,{color:"#CCC"})}function u(){j(e)}function h(b,d){f.foreach(d,function(d,e){b.style[d]=e})}var d,l,m;d=document.createElement("div");
f.isMobile()?(new f.touch(d)).addEventListener(f.touchEvents.TAP,function(b){u(b)}):(d.onclick=u,d.onmouseout=y,d.onmouseover=x);h(d,{webkitBoxShadow:"0 0 4px #000",MozBoxShadow:"0 0 4px #000",msBoxShadow:"0 0 4px #000",boxShadow:"0 0 4px #000",backgroundColor:"#000",backgroundSize:"cover",position:"absolute",textDecoration:"none",display:"block",margin:"0 0 0 0",padding:"0 0 0 0",overflow:"hidden"});h(d,{backgroundImage:"url("+e.image+")",width:b-2+"px",height:g-2+"px"});l=document.createElement("img");
l.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABGCAYAAABL0p+yAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACF9JREFUeNrsXYtO20gUtccWILoIFgS0IKDQAoUusEBBS///c6IQqwIJoqAdT/z2PO487NjJvZIJNxBnYE7u48yxx/9+9PWCEOL5vs+O+HuhH3+fPOcnzyl9Ep8nPwfhPU/i1xV+XvOn75s9L/Tzx3zs0/eR+tnY8/FwfXZ+kT89Vzqe9G+c/r2A8ZD0/arjkYxPOp7qXObnIjwf9Cg6d35o2Ds9BmHxRKXJVvnFx3QCMj8HoxwMKbBVk0+4wK5NttQHgrEABp8UPjAp0AsTkE1izSecD15hElW+8P0lj+n7p/9P3vikwK7Mla/y87nSBN4fegzpOV5jJwyCoBKZ9MAommzloyjqEc5kC31RlFX5kKjrK8AgGZ8QjNXIIwcjOMpVo3Ap6laBzQ8SNaAD5jA2IPgmCfAG9HXj4g/CIrCqqbYc5UQD9hVgsABjEfhKMGpEIgswlic5PxfJokHFTya/6kujnBYYFFEZEnU1wagR9eI0+0yPEX3tB+8X4ClYI+U2DsZq/ecIjOk/O32/ul+s88RgFEZhk5TrHIwAcB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hF6ZZNNsICN81iIkCPH/46/EBaRQ0ewD6NUU0t5vN1CgPj4+YZtEcRsA0BUs2PI536qHAQxoFrYEaMCC8bpbRKP89PWF9h9Z8BCxcB8w2PH76/RtpFLS2uuDk3ijEjyjwsL5Da9X+F2AAdhpbcs9KP5oAAAAASUVORK5CYII\x3d");
h(l,{psition:"absolute",left:"0px",top:"0px",border:"none",margin:"0 0 0 0",padding:"0 0 0 0"});h(l,{width:b-2+"px",height:g-20+"px"});d.appendChild(l);m=document.createElement("div");m.innerHTML=e.title;h(m,{backgroundColor:"rgba(0,0,0,0.8)",left:"0px",position:"absolute",border:"none",color:"#CCC",display:"block",font:"11px Arial",margin:"0 0 0 0",textAlign:"center",textDecoration:"none",textTransform:"none",padding:"5px"});l=Math.ceil(6*e.title.length/b);h(m,{width:b-10+"px",top:g-8-16*l+"px"});
d.appendChild(m);return d})})(jwplayer);