function vPlayerObj(vpObj,externalRef){ var This=this; this.player="http://media1.s-nbcnews.com/i/MSNBC/Components/Video/_Player/swfs/main_V1_75/interimMainPlayer_20140520v2.swf"; //this.player="http://media1.s-nbcnews.com/i/MSNBC/Components/Video/_Player/swfs/main_V1_75/interimMainPlayer_vaticanfreetranscriptfree.swf"; this.showPlayer="http://media1.s-nbcnews.com/i/MSNBC/Components/Video/_Player/swfs/show_V1_75/interimShowPlayer_20140520v2.swf"; //this.showPlayer="http://media1.s-nbcnews.com/i/MSNBC/Components/Video/_Player/swfs/show_V1_75/interimShowPlayer_vaticanfree.swf"; this.embedPlayer="http://media1.s-nbcnews.com/i/MSNBC/Components/Video/_Player/swfs/embedPlayer/EmbeddedPlayer11252009B.swf"; this.proxy="true"; this.noFlash=""; this.noFlashPlayer=""; this.noFlashEmbed=""; this.noFlashShow=""; this.playerVersion="player"; var sniff=new UberSniff(); this.omnitureIdentity="mainPlayer"; this.screenW=sniff.screenWidth; this.screenH=sniff.screenHeight; this.flash=sniff.flash; this.ie=sniff.ie; this.vpObj=document.getElementById(vpObj); this.report=true; this.wbDomain="www.nbcnews.com"; this.vpId="fl20172813"; this.omniscreen=this.screenW+"x"+this.screenH; this.config="21438819"; this.docId="21134540"; this.titlePrefix="msnbc.com video"; this.playerWidth="996"; this.playerHeight="600"; this.vpLink=true; this.showMSNBCLogo=false; this.showMSNlogo=false; this.setSize=function(){switch(This.playerVersion){case "player":This.playerHeight="600";This.playerWidth="996";This.noFlash=(This.noFlash!="")?This.noFlash:This.noFlashPlayer;break;case "showPlayer":This.playerHeight="510";This.playerWidth="996";This.noFlash=(This.noFlash!="")?This.noFlash:This.noFlashShow;break;case "embedPlayer":This.playerHeight="339";This.playerWidth="425";This.noFlash=(This.noFlash!="")?This.noFlash:This.noFlashEmbed;break;}}; this.flashObj=null; // var isMetro=(navigator.userAgent.toLowerCase().indexOf("trident/6.0")>-1); var isMetro=false; if(!(navigator.userAgent.toLowerCase().indexOf("ipad")>-1)&&!isMetro){ this.Render=function(){This.setSize();var fl=new flashObj2();fl.flashFile=This[This.playerVersion];fl.flashVars = "settings="+This.config+"&useProxy="+This.proxy+"&wbDomain="+This.wbDomain+"&launch="+This.getQuery()+"&sw="+This.screenW+"&sh="+This.screenH+"&EID="+externalRef+"&playerid="+This.docId;fl.bgcolor = "#000000";fl.altImgWB3=This.noFlash;fl.url = "";fl.width = This.playerWidth;fl.height = This.playerHeight;fl.ID = This.vpId;fl.play = "true";fl.loop = "true";fl.quality = "Best";fl.scale = "noborder";fl.salign = "tl";fl.mode = "transparent";fl.cabVersion = "9,0,0,0";fl.flashVer = "9";fl.defaultType = "";fl.htm = "";fl.downloadLink = "top";fl.webTV = "true";fl.deviceFont = "false";fl.instrumented = "false";fl.allowscriptaccess="always";fl.fullScreen=true;This.vpObj.innerHTML=fl.render();This.flashObj=document.getElementById(This.vpId);try{if(This.vpLink){window[externalRef].SetLaunchOverride();};if (This.flashObj){This.flashObj.attachEvent("fscommand",function(cmd,args){window[externalRef].fsC(cmd,args);});};}catch(e){};}; } else{ this.Render=function(){ var sLaunch=this.getQuery(); var lhost=location.host; if(location.href.indexOf("id/22825103")>-1){ lhost="nbcsports.msnbc.com"; } // var isMetro=(navigator.userAgent.toLowerCase().indexOf("trident/6.0")>-1); var isMetro=false; var renderId="36090945"; if (isMetro){ // renderId="46869250" } var sIpad=''; var divipad=this.vpObj; divipad.innerHTML=sIpad; } } this.getQuery=function(){var qs=location.hash.substring(1);try{if (qs&&qs.toLowerCase().indexOf("vpflash")>-1){location.hash="VpFlash";qs="VpFlash";}}catch(e){}; if(!qs||qs==null || qs=="VpFlash" || qs.match('^__utma')){ var reQs=/\/id\/.*\/vp\/(\w*)/i; qsExec=reQs.exec(location); if (qsExec!=null){qs=qsExec[1];}if (qs==This.docId){qs="";}}if (qs.indexOf("%23")>-1){qs=qs.replace(/%23/,"");}if (qs.indexOf("?")>-1){qs=qs.substr(0,qs.indexOf("?"));}if (!qs||qs=="undefined"){qs="";}return qs.replace(/[<|>|'|"]/ig,"");}; this.StartTrack=function(p){pd_top('Video Player','html40','',p,'','Video','','','','','','','videoPlayer','','','','','', '1',0,{AdBanner:{},AdSponsor:{},AdOverThePage:{}},'MSNBC','true','');window[externalRef].omniture("msn","&pageName=open^msnbc&c5=Open^msnbc");if (sniff.flash<9){s_msn.pageName="Video Requirements";}else{s_msn.pageName="Open Player";};s_msn.prop16=s_msn.pageName;try{s_msn.prop15=location.hash.substring(1);}catch(e){s_msn.prop15="";};s_msn.prop7=This.config;s_msn.prop37=sniff.flash;if(!window[s_account]){s_account="msnbcom"};pd_om(s_account,'100');s_code=s_msn.t();}; } function FlashComExternalObject(vID,flashObj,rpObj,surveyObj){ var This=this; this.vID=vID; this.repObj=document.getElementById(rpObj); this.adUrls=new Object(); this.adRef="/"; this.collapseAfterAd=true; this.adLoaded=false; this.flashObj=flashObj; this.playVideo=function(s,guid,override){if (override){This.overridePlayer(s,guid,override);}else{This.flashObj.flashObj.vPlayer(s);if(window.location.hash == ""){window.location = window.location + "#video";}};}; this.launch=function(s){var v=window.open("http://www.msnbc.msn.com/id/21134540/vp/"+s+"#"+s,"_top");}; this.setId=function(s){s=s.replace(/root1/,"");This.adRef=s+"/adMC";}; this.setQuery=function(qs){location.hash="#"+qs;}; this.adCall=function(s){flashObj.flashObj.TGotoLabel(This.adRef,s);flashObj.flashObj.TPlay(This.adRef);}; this.expandAd=function(){This.adCall("NGAPExpand");if(This.collapseAfterAd){setTimeout(This.vID+".collapseAd()",1000);}This.collapseAfterAd=false;}; this.collapseAd=function(){This.adCall("NGAPCollapse");}; this.msnPreRoll=function(adDataObj){This.collapseAfterAd=adDataObj.collapseOnLoad;This.adUrls=adDataObj.trackgroup;}; this.report=function(rUrl){if(flashObj.report){var iRep=document.createElement("img");iRep.src=rUrl;This.repObj.appendChild(iRep);}}; this.track=function(s){This.report(s);}; this.getSess=function(){var tm=new Date();var sed=Math&&Math.random?Math.floor(Math.random()*10000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/10800000)%10+sed;return sess;}; this.neilson=function(head,bAd,sourceName,videoId){var nUrl="http://secure-us.imrworldwide.com/cgi-bin/m?ci=us-400132";nUrl+="&tl=dav0-"+escape(head)+((bAd)?"&c3=st,a":"")+"&c6=vc,c03&cg="+escape(sourceName);nUrl+="&cc=1&rnd="+(Math.random()*10000000000000000);This.report(nUrl);if(videoId){try{document.title=flashObj.titlePrefix+": "+head;window.status=flashObj.titlePrefix;This.setQuery(videoId);}catch(e){}}}; this.comscore=function(bAd,sourceName){var nUrl="http://beacon.securestudies.com/scripts/beacon.dll?CXNID=3000001&CDID=Msnbc&CPID=en-us&CGID="+((bAd)?"010000":"020000")+"&CBID="+sourceName+"&rn="+(Math.floor(Math.random()*10000000000000000));This.report(nUrl);}; var setProp=function(s){if (s){return s;}return "";}; this.omMsnbc=function(aProps){s_msn.prop1=setProp(aProps[1]);s_msn.prop2=setProp(aProps[2]);s_msn.prop4=setProp(aProps[4]);s_msn.prop5=setProp(aProps[5]);s_msn.prop7=this.flashObj.omnitureIdentity+"|"+flashObj.config;s_msn.prop15=setProp(aProps[15]);s_msn.prop16=setProp(aProps[16]);s_msn.prop26=setProp(aProps[26]);s_msn.prop35=setProp(aProps[35]);s_msn.prop37=flashObj.flash;s_msn.prop42=setProp(aProps[42]);s_msn.prop43=setProp(aProps[43]);s_msn.prop44=setProp(aProps[44]);s_msn.prop45=setProp(aProps[45]);s_msn.prop47=setProp(aProps[47]);s_msn.prop38=setProp(aProps[38]);if (s_msn.prop16!="Video Up Next"){s_msn.pageName=s_msn.prop16+"|"+s_msn.prop4+"|"+s_msn.prop5+"|"+s_msn.prop15+"|"+this.flashObj.omnitureIdentity+"|"+s_msn.prop2;}else{s_msn.pageName=s_msn.prop16;};if (s_msn.prop43||s_msn.prop47||s_msn.prop35){};if(flashObj.report&&(!(s_msn.prop44=="navigation clicks"))){var s_code=s_msn.t();};}; this.omniture=function(party,prop37,prop38){switch(party){case "msn":var tm=new Date();var t=tm.getDate()+'/'+tm.getMonth()+'/'+tm.getYear()+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.getSeconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset();try{var rf=document.referrer;rf=(rf)?rf:location;}catch(e){var rf="";};var msUrl="http://msnportal.112.2o7.net/b/ss/msnportalvideotransform,msnportalenusvideo/0/FAS-1.1/"+This.getSess()+"?[AQB]&ndh=1&t="+t+"&s="+flashObj.omniscreen+"&ce=ISO-8859-1&ns=msnportal&ch=MSNvideo^msnbc&c3=MSNvideo^msnbc&server=www.msnbc.msn.com&c1=MSNvideo^msnbc^"+flashObj.omnitureIdentity+"&c2=en-us&"+(prop37.replace(/\?/ig,""))+((prop37.indexOf("contentstart")>-1)?"&events=event3":"")+"&referrer="+rf+"&c28="+rf+"&[AEQ]?";This.report(msUrl.replace(/18424767/,"NBC Sports"));break;}}; this.fsC=function(a,b){if (a.toLowerCase().indexOf("url")==0){var w=window.open(This.adUrls[a.toLowerCase()]);}else{if (a=="adLoaded"){setTimeout(This.vID+".expandAd()",1);This.adLoaded=true;}if (a=="expand"){setTimeout(This.vID+".expandAd()",1);}if (a=="collapse"){This.adCall("NGAPCollapse");}if (This.adUrls[a.toLowerCase()]){This.report(This.adUrls[a.toLowerCase()]);}if (a.toLowerCase()=="ngapreplay"){This.report(This.adUrls["replay"]);This.adCall("NGAPExpand");}}}; this.doTPS=function(url,img){if(img){This.report(img);}if(!url){if (img.indexOf(".js")>0){url=img;}else{return;}}var sDiv=document.getElementById(surveyObj);sDiv.appendChild(document.createElement("