function _ABCFEP() { //PUBLIC this.title = 'ABC.com Full Episodes'; this.link = 'http://dynamic.abc.go.com'; this.image = 'http://a.abc.com/media/video/images/90x51/abc_logo.jpg'; var mk = '20171742'; var affiliate = 'kabc'; var mso = ''; //wrapper soft launch toggle var rEnable = '0'; if(affiliate != '') rEnable = '1'; this.openFEP = function(guid) { //decode the guid into channel / video and call feppop below var ids; if(guid) { ids = guid.split('-'); } else { ids = '-'; } if(ids.length == 2) { feppop(ids[0], ids[1]); } else { feppop('', ''); } } var feppop = function(channel, video) { var popupWidth = 1000; var popupHeight = 675; var ifScrollBar = 0; if ((typeof(screen.availHeight) != "undefined" && screen.availHeight < popupHeight+49) || (typeof(screen.availWidth) != "undefined" && screen.availWidth < popupWidth+10)) { ifScrollBar = 1; } var popupParams = "height=" + popupHeight + ",width=" + popupWidth + ",toolbar=0,scrollbars=" + ifScrollBar + ",location=0,statusbar=0,menubar=0,resizable=0,top=0,left=0"; var trackRedirect = "http://transfer.go.com/cgi/transfer.dll?name=REMOTEPLAYERJS_"; if(mso != '') { trackRedirect = trackRedirect + "PARTNER_" + mso.toUpperCase(); } else if(affiliate != '') { trackRedirect = trackRedirect + "AFF_" + affiliate.toUpperCase(); } trackRedirect = trackRedirect + "&srvc=abc&goto=" trackRedirect = trackRedirect + "http://dynamic.abc.go.com/streaming/player&rEnable=" + rEnable + "&pl=mv&mk=" + mk + "&channel=" + channel + "&video=" + video + "&raff=" + affiliate.toLowerCase() + "&partner=" + mso.toLowerCase() + "&hostname=" + document.location.hostname; win = window.open(trackRedirect, 'abcfesplayer_window', popupParams); if (win==null || typeof(win)=="undefined") { alert("Oops! You might have a popup blocker enabled that's interfering with the player.\n\nPlease click 'OK' below then disable your popup blocker before trying again.\n(HINT: try holding down the Ctrl key when clicking to launch the player - it might temporarily disable your popup blocker)"); } } } ABCFEP = new _ABCFEP();