/* /lib/ads.js */
var Ad=Class.create();Object.extend(Ad.prototype,{initialize:function(){this.space_id=document.config.ads.space_id;this.property_id=document.config.ads.property_id;this.location="";this.background="ffffff"},set_space_id:function(A){this.space_id=A},set_property_id:function(A){this.property_id=A},set_location:function(A){this.location=A},set_background:function(A){this.background=A},render:function(A){var B=["","ads",this.space_id,this.property_id,this.location,"r",this.background].join("/");A.innerHTML+='<iframe src="'+B+'" frameborder="0" scrolling="no"></iframe>'},render_full:function(A,B,D){var C=document.createElement("div");C.className="ad "+D;var E=document.createElement("div");this.render(E);C.appendChild(E);if(B){this.render_slug(C)}A.appendChild(C)},render_slug:function(A){var D=document.createElement("h3");var C=document.createElement("a");C.className="adlink";C.rel="external";C.href="/adinformation/";C.appendChild(document.createTextNode("Advertisement"));assign_handlers(C);D.appendChild(C);var B=document.createElement("label");B.appendChild(document.createTextNode(" - "));D.appendChild(B);var E=document.createElement("a");E.className="adlink";E.href="https://www.surveymonkey.com/s.aspx?sm=FyNNVDhj_2f2FNc2KVOHQ4eg_3d_3d ";E.target="_blank";E.appendChild(document.createTextNode("Ad Feedback"));assign_handlers(E);D.appendChild(E);A.appendChild(D)},render_script:function(){var A="http://pn1.adserver.yahoo.com/a?";A+=["bg="+this.background,"c=r","f="+this.space_id,"pn=comcast","rand="+(new Date()).getDate(),"p="+this.property_id,"l="+this.location].join("&");var B=document.createElement("script");B.src=A;document.body.appendChild(B);return B}});
/* /lib/jquery/jquery.swfobject.1.0.3.js */
(function(A){A.swfobject=function(){var X="undefined",Q="object",D="Shockwave Flash",e="ShockwaveFlash.ShockwaveFlash",V="application/x-shockwave-flash",J="SWFObjectExprInst",H=window,d=document,M=navigator,I=[],L=[],U=[],K=null,S=null,E=false,Z,T,F,b,a,R,G,Y,C,P,O,B,W,c,N;Z=function(){var k=typeof d.getElementById!==X&&typeof d.getElementsByTagName!==X&&typeof d.createElement!==X,q=[0,0,0],l=null;if(typeof M.plugins!==X&&typeof M.plugins[D]===Q){l=M.plugins[D].description;if(l&&!(typeof M.mimeTypes!==X&&M.mimeTypes[V]&&!M.mimeTypes[V].enabledPlugin)){l=l.replace(/^[\S|\s]*\s+(\S+\s+\S+$)/,"$1");q[0]=parseInt(l.replace(/^([\S|\s]*)\.[\S|\s]*$/,"$1"),10);q[1]=parseInt(l.replace(/^[\S|\s]*\.([\S|\s]*)\s[\S|\s]*$/,"$1"),10);q[2]=/r/.test(l)?parseInt(l.replace(/^[\S|\s]*r([\S|\s]*)$/,"$1"),10):0}}else{if(typeof H.ActiveXObject!==X){var m=null,n=false;try{m=new ActiveXObject(e+".7")}catch(j){try{m=new ActiveXObject(e+".6");q=[6,0,21];m.AllowScriptAccess="always"}catch(i){if(q[0]===6){n=true}}if(!n){try{m=new ActiveXObject(e)}catch(h){}}}if(!n&&m){try{l=m.GetVariable("$version");if(l){l=l.split(" ")[1].split(",");q=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}catch(f){}}}}var o=M.userAgent.toLowerCase(),g=M.platform.toLowerCase();return{w3cdom:k,pv:q,webkit:A.browser.safari?A.browser.version:false,ie:A.browser.msie,win:g?/win/.test(g):/win/.test(o),mac:g?/mac/.test(g):/mac/.test(o)}}();A(function(){var h=I.length;for(var f=0;f<h;f++){var j=I[f].id;if(Z.pv[0]>0){var g=A("#"+j);if(g.length){I[f].width=g.attr("width")?g.attr("width"):"0";I[f].height=g.attr("height")?g.attr("height"):"0";if(O(I[f].swfVersion)){if(Z.webkit&&Z.webkit<312){T(g[0])}W(j,true)}else{if(I[f].expressInstall&&!E&&O("6.0.65")&&(Z.win||Z.mac)){F(I[f])}else{b(g[0])}}}}else{W(j,true)}}});T=function(k){k=A(k);var g=k.find("object");if(g.length){var j=A("<embed />"),f=g[0].attributes;if(f){for(var h=0;h<f.length;h++){j.attr((f[h].nodeName==="DATA")?"src":f[h].nodeName,f[h].nodeValue)}}g.children().each(function(){if(this.nodeType===1&&this.nodeName==="PARAM"){j.attr(A(this).attr("name"),A(this).attr("value"))}});k.replaceWith(j)}};F=function(k){E=true;var i=A("#"+k.id);if(i.length){if(k.altContentId){var m=A("#"+k.altContentId)[0];if(m){K=m;S=k.altContentId}}else{K=a(i[0])}if(!/%$/.test(k.width)&&parseInt(k.width,10)<310){k.width="310"}if(!/%$/.test(k.height)&&parseInt(k.height,10)<137){k.height="137"}d.title=d.title.slice(0,47)+" - Flash Player Installation";var n=Z.ie&&Z.win?"ActiveX":"PlugIn",f=d.title,g="MMredirectURL="+H.location+"&MMplayerType="+n+"&MMdoctitle="+f,l=k.id;if(Z.ie&&Z.win&&i[0].readyState!==4){l+="SWFObjectNew";var h=A('<div id="'+l+'" />');i.before(h);i.css("display","none");var j=function(){i.remove()};P(H,"onload",j)}R({data:k.expressInstall,id:J,width:k.width,height:k.height},{flashvars:g},l)}};b=function(h){h=A(h);if(Z.ie&&Z.win&&h[0].readyState!==4){var g=A("<div/>");h.before(g);g.replaceWith(A(a(h[0])));h.css("display","none");var f=function(){h.remove()};P(H,"onload",f)}else{h.replaceWith(A(a(h[0])))}};a=function(g){g=A(g);var f=A("<div />");if(Z.win&&Z.ie){f.html(g.html())}else{g.find("object").children().each(function(){if(!(this.nodeType===1&&this.nodeName==="PARAM")&&!(this.nodeType===8)){A(this.cloneNode(true)).appendTo(f)}})}return f[0]};R=function(AB,z,g){var f,p=A("#"+g);if(p.length){if(typeof AB.id===X){AB.id=g}if(Z.ie&&Z.win){var AA="";for(var w in AB){if(AB[w]!==Object.prototype[w]){if(w.toLowerCase()==="data"){z.movie=AB[w]}else{if(w.toLowerCase()==="styleclass"){AA+=' class="'+AB[w]+'"'}else{if(w.toLowerCase()!=="classid"){AA+=" "+w+'="'+AB[w]+'"'}}}}}var y="";for(var v in z){if(z[v]!==Object.prototype[v]){y+='<param name="'+v+'" value="'+z[v]+'" />'}}p[0].outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AA+">"+y+"</object>";L[L.length]=AB.id;f=A("#"+AB.id)[0]}else{if(Z.webkit&&Z.webkit<312){var x=A('<embed type="'+V+'" />');for(var u in AB){if(AB[u]!==Object.prototype[u]){if(u.toLowerCase()==="data"){x.attr("src",AB[u])}else{if(u.toLowerCase()==="styleclass"){x.attr("class",AB[u])}else{if(u.toLowerCase()!=="classid"){x.attr(u,AB[u])}}}}}for(var t in z){if(z[t]!==Object.prototype[t]){if(t.toLowerCase()!=="movie"){x.attr(t,z[t])}}}p.replaceWith(x);f=x[0]}else{var h=A('<object type="'+V+'" />');for(var s in AB){if(AB[s]!==Object.prototype[s]){if(s.toLowerCase()==="styleclass"){h.attr("class",AB[s])}else{if(s.toLowerCase()!=="classid"){h.attr(s,AB[s])}}}}for(var q in z){if(z[q]!==Object.prototype[q]&&q.toLowerCase()!=="movie"){G(h[0],q,z[q])}}p.replaceWith(h);f=h[0]}}}return f};G=function(h,f,g){A(h).append(A('<param name="'+f+'" value="'+g+'" />'))};Y=function(g){var f=A("#"+g);if(f&&(f[0].nodeName==="OBJECT"||f[0].nodeName==="EMBED")){if(Z.ie&&Z.win){if(f[0].readyState===4){C(g)}else{H.attachEvent("onload",function(){C(g)})}}else{f.remove()}}};C=function(h){var g=A("#"+h);if(g.length){for(var f in g[0]){if(typeof g[0][f]==="function"){g[0][f]=null}}g.remove()}};P=function(h,f,g){h.attachEvent(f,g);U[U.length]=[h,f,g]};O=function(h){var g=Z.pv,f=h.split(".");f[0]=parseInt(f[0],10);f[1]=parseInt(f[1],10)||0;f[2]=parseInt(f[2],10)||0;return(g[0]>f[0]||(g[0]===f[0]&&g[1]>f[1])||(g[0]===f[0]&&g[1]===f[1]&&g[2]>=f[2]))?true:false};B=function(k,g){if(Z.ie&&Z.mac){return }var j=A("head"),i=A('<style media="screen" type="text/css" />');if(!(Z.ie&&Z.win)&&typeof d.createTextNode!==X){A(d.createTextNode(k+" {"+g+"}")).appendTo(i)}i.appendTo(j);if(Z.ie&&Z.win&&typeof d.styleSheets!==X&&d.styleSheets.length>0){var f=d.styleSheets[d.styleSheets.length-1];if(typeof f.addRule===Q){f.addRule(k,g)}}};W=function(i,f){var g=f?"visible":"hidden",h=A("#"+i);if(h.length){A(function(){h.css("visibility",g)})}else{B("#"+i,"visibility: "+g)}};c=function(g){var h=/[\\\"<>\.;]/;var f=h.exec(g)!==null;return f?encodeURIComponent(g):g};N=function(){if(Z.ie&&Z.win){window.attachEvent("onunload",function(){var o=U.length;for(var n=0;n<o;n++){U[n][0].detachEvent(U[n][1],U[n][2])}var h=L.length;for(var m=0;m<h;m++){Y(L[m])}for(var g in Z){Z[g]=null}Z=null;for(var f in A.swfobject){A.swfobject[f]=null}A.swfobject=null})}}();return{registerObject:function(i,f,h){if(!Z.w3cdom||!i||!f){return }var g={};g.id=i;g.swfVersion=f;g.expressInstall=h?h:false;I[I.length]=g;W(i,false)},getObjectById:function(i){var f=null;if(Z.w3cdom){var g=A("#"+i);if(g.length){var h=g.find(Q)[0];if(!h||(h&&typeof g.SetVariable!==X)){f=g[0]}else{if(typeof h.SetVariable!==X){f=h}}}}return f},createCSS:function(g,f){if(Z.w3cdom){B(g,f)}},createSWF:function(h,g,f){if(Z.w3cdom){return R(h,g,f)}else{return undefined}},embedSWF:function(o,v,s,u,f,n,g,q,t){if(!Z.w3cdom||!o||!v||!s||!u||!f){return }s+="";u+="";if(O(f)){W(v,false);var r={};if(t&&typeof t===Q){for(var m in t){if(t[m]!==Object.prototype[m]){r[m]=t[m]}}}r.data=o;r.width=s;r.height=u;var p={};if(q&&typeof q===Q){for(var l in q){if(q[l]!==Object.prototype[l]){p[l]=q[l]}}}if(g&&typeof g===Q){for(var h in g){if(g[h]!==Object.prototype[h]){if(typeof p.flashvars!==X){p.flashvars+="&"+h+"="+g[h]}else{p.flashvars=h+"="+g[h]}}}}A(function(){R(r,p,v);if(r.id===v){W(v,true)}})}else{if(n&&!E&&O("6.0.65")&&(Z.win||Z.mac)){E=true;W(v,false);A(function(){var i={};i.id=i.altContentId=v;i.width=s;i.height=u;i.expressInstall=n;F(i)})}}},expressInstallCallback:function(){if(E&&K){var f=A("#"+J);if(f.length){f.replaceWith(A(K));if(S){W(S,true);if(Z.ie&&Z.win){A(K).css("display","block")}}K=null;S=null;E=false}}},getFlashPlayerVersion:function(){return{major:Z.pv[0],minor:Z.pv[1],release:Z.pv[2]}},getQueryParamValue:function(j){var h=d.location.search||d.location.hash;if(j===null){return c(h)}if(h){var g=h.substring(1).split("&");for(var f=0;f<g.length;f++){if(g[f].substring(0,g[f].indexOf("="))===j){return c(g[f].substring((g[f].indexOf("=")+1)))}}}return""},hasFlashPlayerVersion:O,removeSWF:function(f){if(Z.w3cdom){Y(f)}}}}()})(jQuery);
/* /lib/jquery/jquery.jhistory.0.3.js */
(function(A){A.history=function(B){if(A(".__historyFrame").length==0){A.history.cursor=A.history.intervalId=0;A.history.stack={};A.history._loading={};A.history._queue=[];A("body").append('<iframe class="__historyFrame" src="/historymanager/blank.html" style="border:0px; width:0px; height:0px; visibility:hidden;" />');A(".__historyFrame").load(function(){var D=A(this).contents().attr(A.browser.msie?"URL":"location").toString().split("#")[1];if(D){var C=A.inArray(D,A.history._queue);if(C>-1){A.history._queue.splice(C,1)}A.history._loading[D]=false}A.history.intervalId=A.history.intervalId||window.setInterval(function(){if(A.history._queue.length>0&&!A.history._loading[A.history._queue[0]]){A.history._loading[A.history._queue[0]]=true;A(".__historyFrame").contents()[0].location.href=A(".__historyFrame").contents().attr(A.browser.msie?"URL":"location").toString().replace(/[\?|#]{1}(.*)$/gi,"")+"?"+A.history._queue[0]+"#"+A.history._queue[0]}else{if(A.history._queue.length==0){var E=A(".__historyFrame").contents().attr(A.browser.msie?"URL":"location").toString().split("#")[1];A("#__historyDebug").html('"'+A.history.cursor+'" vs "'+E+'" - '+(new Date()).toString());if(parseFloat(A.history.cursor)>=0&&parseFloat(A.history.cursor)!=(parseFloat(E)||0)){A.history.cursor=parseFloat(E)||0;if(typeof (A.history.callback)=="function"){A.history.callback(A.history.stack[E],E)}}}}},150)})}else{A.history.cursor=(new Date()).getTime().toString();A.history._queue.push(A.history.cursor);A.history.stack[A.history.cursor]=B}};A(document).ready(function(){A.history()})})(jQuery);
/* /modules/video/auth_and_network.js */
function stringReplace(D,F,G){var E;var C="";var B="";for(var A=0;A<F.length;A++){C=F.substr(A,1);if(C=="$"||C=="^"||C=="*"||C=="("||C==")"||C=="+"||C=="?"||C=="\\"){C="\\"+C}B+=C}E=new RegExp(B,"gi");results=D.replace(E,G);return results}function getCrumbVal(B,D){var C=B.indexOf("&",D);if(C==-1){C=B.length}var A=B.substring(D,C);A=stringReplace(A,"+"," ");return unescape(A)}function getRawCrumbVal(B,D){var C=B.indexOf("&",D);if(C==-1){C=B.length}var A=B.substring(D,C);A=stringReplace(A,"+"," ");return(A)}function getCookieVal(B){var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length}return unescape(document.cookie.substring(B,A))}function GetCookie(D){var B=D+"=";var F=B.length;var A=document.cookie.length;var E=0;while(E<A){var C=E+F;if(document.cookie.substring(E,C)==B){return getCookieVal(C)}E=document.cookie.indexOf(" ",E)+1;if(E==0){break}}return""}function GetCrumb(C,E){var B=E+"=";var G=B.length;var A=C.length;var F=0;while(F<A){var D=F+G;if(C.substring(F,D)==B){return getCrumbVal(C,D)}F=C.indexOf("&",F)+1;if(F==0){break}}return""}function GetRawCrumb(C,E){var B=E+"=";var G=B.length;var A=C.length;var F=0;while(F<A){var D=F+G;if(C.substring(F,D)==B){return getRawCrumbVal(C,D)}F=C.indexOf("&",F)+1;if(F==0){break}}return""}var loggedin=false;var greeting="";var zipCode="";var areaCode="";var isPrimary=false;var hasPreferences=false;var myportal="";myportal=GetCookie("MYPORTAL");if(myportal!=""){user=GetCrumb(myportal,"em");if(user!=""){loggedin=true}greeting=GetCrumb(myportal,"gt");zipCode=GetCrumb(myportal,"zip");areaCode=GetCrumb(myportal,"npa");isPrimary=(GetCrumb(myportal,"ipr")=="y")?true:false;var p=GetCrumb(myportal,"p");if(p!=""){haspreferences=true}}var session="";session=GetCookie("session@comcast.net");if(session!=""){loggedin=true}var isInNetwork=false;var isInNetworkCookie=GetCookie("ISINNETWORK");var checkIsInNetwork=true;if(isInNetworkCookie!=""){isInNetworkCookieCrumb=GetCrumb(isInNetworkCookie,"network");isInNetwork=(isInNetworkCookieCrumb=="comcast")||(isInNetworkCookie=="comcast");checkIsInNetwork=false}else{var checkIsInNetworkUrl="/user/authkey/networkcheck/?redirectUrl=";var thisPageUrl=document.location.href;if(thisPageUrl.indexOf("?")>=0){thisPageUrl=thisPageUrl.split("?")[0]}if(document.referrer.length>=thisPageUrl.length&&document.referrer.substr(0,thisPageUrl.length)==thisPageUrl){checkIsInNetwork=false}if(document.referrer.length>=checkIsInNetworkUrl.length&&document.referrer.substr(0,checkIsInNetworkUrl.length)==checkIsInNetworkUrl){checkIsInNetwork=false}if(checkIsInNetwork){addLoadEvent(function(){window.location=checkIsInNetworkUrl+escape(document.URL)})}else{isInNetwork=true}};
/* /modules/video/videoChannelNavigationController.js */
var VideoChannelNavigationEvent={LEFT_NAV_LOADED:"vcne_leftNavLoaded",PLAYLIST_CHANGED:"vcne_playlistChanged"};var VideoChannelNavigationController=function(){this.currentPlaylist=null;this.categoryNavTabBar=null;this.leftNavTabBar=null};jQuery.extend(VideoChannelNavigationController.prototype,{init:function(){this.categoryNavTabBar=this._convertListToPlaylistTabBar("#nav #channels li:has(a:not([href$='/video/']):not([href$='/video/networks/']))","categoryNav");this.leftNavTabBar=this._convertListToPlaylistTabBar("#videonav li","leftVideoNav");jQuery(this).bind(VideoChannelNavigationEvent.PLAYLIST_CHANGED,function(A,B){this.changePlaylist(B)})},changePlaylist:function(B,A){if(typeof (A)=="undefined"){A=true}if(!B.subchannel){B.subchannel=this.currentPlaylist.subchannel}this._changeHeading(B);this._changeTitle(B);this._updateNavs(B);this.currentPlaylist=B;if(A){jQuery.history(B)}if(B.isMyVideos){videoChannelPlayer.showMyVideos()}else{if(videoChannelPlayer&&B.url!=""){videoChannelPlayer.updatePlaylist(B)}}},_updateNavs:function(A){this._updateTopNavigation(A);this._updateSubNavigation(A)},_updateTopNavigation:function(C){if(C.subchannel&&(!this.currentPlaylist||(C.subchannel!=this.currentPlaylist.subchannel))){var B=jQuery("#nav #channels li:has(a[href$='"+C.origUrl+"'])")[0];if(typeof (B)!="undefined"){var A=this.categoryNavTabBar.tab_id(B.id);if(A!=this.categoryNavTabBar.current_id){this.categoryNavTabBar.update(A,null,true)}}else{console.log("For some reason, the top tab to select is undefined.",B,C.origUrl)}}},_changeHeading:function(E){var C=jQuery("h2.pageHeading:first");if(!C){return }if((E.heading)&&(E.heading!=C.text())){C.hide();C.text(E.heading);C.fadeIn(100);if(videoChannelPageMeta[E.subchannel]&&videoChannelPageMeta[E.subchannel].headerStyle){var B=new Object();var D=videoChannelPageMeta[E.subchannel].headerStyle.split(";");for(var A=0;A<D.length;A++){if(D[A]!=undefined&&D[A]!=""){B[jQuery.trim(D[A].split(":")[0])]=jQuery.trim(D[A].split(":")[1])}}C.css(B)}}},_changeTitle:function(B){var A=(videoChannelPageMeta[B.subchannel]?videoChannelPageMeta[B.subchannel]:videoChannelPageMeta.featured).title;if(!A){return }if((A)&&(A!=document.title)){document.title=A+" - Comcast.net"}},_updateSubNavigation:function(D){if(D.subchannel&&(!this.currentPlaylist||(D.subchannel!=this.currentPlaylist.subchannel))){var B="/video/videonavajax/"+D.subchannel+D.origUrl.substr(D.origUrl.indexOf("/video"));var F=this;jQuery("#videonav").load(B,undefined,function(H,I,G){F.leftNavTabBar=F._convertListToPlaylistTabBar("#videonav li","leftVideoNav");changeAdSpace()})}else{if(D.subchannel==this.currentPlaylist.subchannel){var E=D.origUrl.substring(D.origUrl.indexOf("/video/"));var C=jQuery("#videonav li:has(a[href$='"+E+"'])")[0];if(typeof (C)!="undefined"){var A=this.leftNavTabBar.tab_id(C.id);if(A!=this.leftNavTabBar.current_id){this.leftNavTabBar.update(A,null,true)}}else{console.log("For some reason, the left tab to select is undefined.",C,E)}}else{if(D.isMyVideos){jQuery("#videonav ul").hide()}}}},_convertListToPlaylistTabBar:function(B,E){var A;var C;jQuery(B).each(function(H){this.id=E+"-tab"+H;if(this.className.indexOf("active")>=0){C=H}var G=jQuery(this).find("a")[0];if(G){G.rel=G.rel.replace("track","");var I=VideoChannelUtils.convertUrlToPlaylist(G.href);jQuery(this).data("playlistObj",I);assign_handlers(G)}});var F=this;var D=Class.create();Object.extend(D.prototype,TabBar.prototype);Object.extend(D.prototype,{update:function(I,G,H){TabBar.prototype.update.apply(this,arguments);return cancelEvent(G)}});A=new D(E,C);A.onchange=function(I,G){var K=jQuery("#"+G).data("playlistObj");if(!K){return false}jQuery(F).trigger(VideoChannelNavigationEvent.PLAYLIST_CHANGED,[K]);if(videoChannelPlayer&&(K.isMyVideos||K.url!="")){var J=A.tab(I);if(J.getElementsByTagName("b").length==0){return true}var H="video - "+J.getElementsByTagName("b")[0].innerHTML;console.log(H);Tracking.resetVars();Tracking.setData({pageName:H,products:";"+H,eVar31:H,prop4:"video",prop5:"video:video",hier1:"comcast:cim:comcast net:video:"+H});s.t();Tracking.resetVars();return true}else{return false}};return A}});function styleAdIframe(){var A=jQuery("div.yahoo-nt1 iframe")[0];A.height="60";A.width="996";A.id="nt1iframe";j$(A).load(function(){var B=A.contentWindow.document.body;var C=B.getElementsByTagName("script");console.log(C.length);if(C.length<=1){return }else{j$("div#y_ad_wrapper").animate({height:"60"});j$("img[width>100],object[width='954'],embed[width='954']",B).each(function(){j$(this).attr("width","996")})}})}function changeAdSpace(){var B=jQuery("#hiddenSpaceId").val();var A=j$("#hiddenSubChannel").val();document.getElementsByTagName("body")[0].style.background="#fff none no-repeat 0 0";var D=jQuery("div#y_ad_wrapper");j$(D).hide();var C=new Ad();C.space_id=B;C.location="NT1";var E=document.getElementById("y_ad_wrapper").getElementsByTagName("div")[0];E.innerHTML="";C.render(E);if(A=="entertainment"){videoChannelPlayer.setSpaceID(B)}else{videoChannelPlayer.setSpaceID(null)}this.styleAdIframe()};
/* /modules/video/videoChannelFlash.js */
var VideoChannelPlayerEvent={READY:"vcp_ready"};var VideoChannelPlayerComponent=function(A,B){if(!jQuery("#"+A).length){console.error('The container div "'+A+'" could not be found.');return }this.containerId=A;this.swfURL=B;this.flashMovie=null;this.stillNeedToCallInitPlayer=false;this.savedInitObj=null;this.currentPlaylistURI};jQuery.extend(VideoChannelPlayerComponent.prototype,{embedSWF:function(){var E={menu:"false",allowFullScreen:"true",wmode:"transparent"};var D=["9.0.28","9.0.45","9.0.47"];var A=jQuery.swfobject.hasFlashPlayerVersion("9.0.28");if(!A){jQuery("#noFlashMsg").css("display","block");jQuery("#videoChannelPlayerContainer").css("display","none")}else{var C=jQuery.swfobject.getFlashPlayerVersion();var B=C.major+"."+C.minor+"."+C.release;if(jQuery.browser.msie&&(D.indexOf(B)>-1)){jQuery("#noFlashMsg").css("display","block");jQuery("#videoChannelPlayerContainer").css("display","none")}else{jQuery.swfobject.embedSWF(this.swfURL,this.containerId,"100%","100%","9.0.0","expressInstall.swf",null,E);this.flashMovie=jQuery("#"+this.containerId)[0];if(this.stillNeedToCallInitPlayer){this.flashMovie.initPlayer(this.savedInitObj);this.updateMostViewed("/api/data/theFan/playlists/fanFeatured/popular.xml")}}}},updatePlaylist:function(A){this.currentPlaylistURI=A.origUrl;if(this.flashMovie){this.flashMovie.updatePlaylist(A.url,A.mediaID,A.launchPoint)}},updateMostViewed:function(A,B){if(this.flashMovie){this.flashMovie.updateMostViewed(A,B)}},showMyVideos:function(A){if(this.flashMovie){this.flashMovie.showMyVideos(A)}},setSpaceID:function(A){if(this.flashMovie){this.flashMovie.setSpaceID(A)}},initPlayer:function(A){this.currentPlaylistURI=A.origUrl;if(this.flashMovie){this.flashMovie.initPlayer(A)}else{this.stillNeedToCallInitPlayer=true;this.savedInitObj=A}},play:function(){if(this.flashMovie){this.flashMovie.playVideo()}},pause:function(){if(this.flashMovie){this.flashMovie.pauseVideo()}},handle_updateMyVideosCount:function(A){updateMyVideosCount(A)},handle_updateBanner:function(C,B,A){showCompanionAd(A,B,C)},handle_playerReady:function(){jQuery(this).trigger(VideoChannelPlayerEvent.READY)},handle_login:function(){document.location="https://login.comcast.net/login?s=portal&continue="+escape(document.location)},handle_viewAll:function(){var B=this.currentPlaylistURI.substr(this.currentPlaylistURI.indexOf("/video")+6).split("/");var A="";if(B[3]==undefined||B[3]==""){if(B[3]==""){A="/video/browse/playlist/"+B[2]}else{if(B[3]==undefined){A="/video/browse"+this.currentPlaylistURI.substr(this.currentPlaylistURI.indexOf("/video")+6)}}A=A.replace(/\/tv\//,"/TV/")}else{if(B[1].indexOf("network")>-1||B[1].indexOf("playlist")>-1||B[1].indexOf("featured")>-1||B[1].indexOf("news")>-1||B[1].indexOf("entertainment")>-1||B[1].indexOf("sports")>-1||B[1].indexOf("tv")>-1||B[1].indexOf("music")>-1||B[1].indexOf("finance")>-1||B[1].indexOf("lifestyle")>-1||B[1].indexOf("games")>-1||B[1].indexOf("movies")>-1){if(B[1].indexOf("tv")>-1){this.currentPlaylistURI=this.currentPlaylistURI.replace(/\/tv\//,"/TV/")}A="/video/browse"+this.currentPlaylistURI.substr(this.currentPlaylistURI.indexOf("/video")+6)}else{if(B[3].indexOf("fan")>-1&&isKnownSubChannel(B[3].substr(3))){B[3]=B[3].substr(3);B[3]=B[3].toLowerCase()}else{if(isKnownSubChannel(B[3])){B[3]=B[3];B[3]=B[3].toLowerCase()}else{B[3]="playlist/"+B[3]}}A="/video/browse/"+B[3]+"/";if(B[4]!=undefined){A+=B[4]}A=A.replace(/\/tv\//,"/TV/")}}document.location=A}});function redirectPage(A){document.location=A}function isKnownSubChannel(B){var A=["news","entertainment","sports","music","tv","movies","finance","games","lifestyle","featured","search","network","networks","my"];return(jQuery.inArray(B,A)!=-1)};
/* /modules/video/videoChannelUtils.js */
var VideoChannelPlaylist=function(){this.url="";this.mediaID="",this.subchannel="",this.heading="",this.origUrl="",this.isMyVideos=false;this.isCategoryLanding=false};var VideoChannelUtils={_categoryMatchRegExp:/video\/([\w-]+)\/$/,_newestMatchRegExp:/video\/([\w-]+)\/newest\/$/,_popularMatchRegExp:/video\/([\w-]+)\/popular\/$/,_providerMatchRegExp:/video\/network\/([\w-!]+)\/(newest|popular)*/,_providerWithSlugRexExp:/video\/([\w-]+)\/(\d+)\/network\/([\w-!]+)\//,_playlistWithSlugRegExp:/video\/([\w-]+)\/(\d+)\/([\w-]+)\/([\w-]+)\//,_plainPlaylistRegExp:/video\/playlist\/([\w-]+)\/([\w-]+)\//,_oneVideoRegExp:/video\/([\w-]+)\/(\d+)\//,convertUrlToPlaylist:function(A){var D="/api/data/theFan/playlists/";var H="fanFeatured/popular.xml";var K;var B;var E=false;var J=false;var M="";var L;var I="";var A=String(A);if(A.match(/my\//)){E=true;M="My Videos"}else{if(A.match(this._popularMatchRegExp)){K=A.match(this._popularMatchRegExp)[1];J=true;M=(videoChannelPageMeta[K]?videoChannelPageMeta[K]:videoChannelPageMeta.featured).header;var G;if(K=="tv"){G="fanTV"}else{G="fan"+K.substr(0,1).toUpperCase()+K.substr(1)}B=D+G+"/popular.xml"}else{if(A.match(this._categoryMatchRegExp)){K=A.match(this._categoryMatchRegExp)[1];J=true;M=(videoChannelPageMeta[K]?videoChannelPageMeta[K]:videoChannelPageMeta.featured).header;var G;if(K=="tv"){G="fanTV"}else{G="fan"+K.substr(0,1).toUpperCase()+K.substr(1)}B=D+G+"/newest.xml"}else{if(A.match(this._providerWithSlugRexExp)){var C=A.match(this._providerWithSlugRexExp);B=D+"providers/"+C[3]+"/newest.xml";L=C[2]}else{if(A.match(this._playlistWithSlugRegExp)){var C=A.match(this._playlistWithSlugRegExp);B=D+C[3]+"/"+C[4]+".xml";L=C[2]}else{if(A.match(this._oneVideoRegExp)){var C=A.match(this._oneVideoRegExp);B=D+H;L=C[2]}else{if(A.match(this._providerMatchRegExp)){var C=A.match(this._providerMatchRegExp);B=D+"providers/"+C[1];if(C[2]){B+="/"+C[2]+".xml"}else{B+="/newest.xml"}}else{if(A.match(this._plainPlaylistRegExp)){var C=A.match(this._plainPlaylistRegExp);B=D+C[1]+"/"+C[2]+".xml"}else{return false}}}}}}}}if(K&&(K.toLowerCase().indexOf("-s")==K.length-2)){K=K.substr(0,K.length-2)}if(K){I=(videoChannelPageMeta[K]?videoChannelPageMeta[K]:videoChannelPageMeta.featured).launchPoint}else{I="vc_other"}var F=new VideoChannelPlaylist();F.url=B;F.mediaID=L;F.subchannel=K;F.heading=M;F.origUrl=A;F.isMyVideos=E;F.isCategoryLanding=J;F.launchPoint=I;return F}};
/* /modules/video/videoChannelPageInit-b.js */
jQuery(document).ready(function(){jQuery.history.callback=function(A,B){if(typeof (A)!="undefined"){navigationController.changePlaylist(A,false)}else{history.back()}}});var videoChannelPlayer;var navigationController;jQuery(document).ready(function(){var A="/ui/swf/videochannel/VideoChannelPlayerc.swf";if(document.config){A+="?"+document.config.revision}videoChannelPlayer=new VideoChannelPlayerComponent("videoChannelPlayer",A);var B=VideoChannelUtils.convertUrlToPlaylist(document.location);jQuery.history(B);jQuery(videoChannelPlayer).bind(VideoChannelPlayerEvent.READY,function(){this.initPlayer({origUrl:B.origUrl,playlistURL:(typeof (videoOverride)!="undefined")?videoOverride.overridePlaylist:B.url,isMyVideos:B.isMyVideos,mediaID:B.mediaID,autoplay:(!B.isCategoryLanding),isLoggedIn:loggedin,isInNetwork:isInNetwork,launchPoint:B.launchPoint});this.updateMostViewed("/api/data/theFan/playlists/fanFeatured/popular.xml");changeAdSpace()});videoChannelPlayer.embedSWF();navigationController=new VideoChannelNavigationController();navigationController.currentPlaylist=B;navigationController.init()});function showCompanionAd(G,A,E){var C=j$("#videoChannelPlayerContainer");var H=j$("#companionad");var F=j$("#videonav");var I=j$("#photohold");var B=j$("#photohold a");var D=j$("#photohold a img");if(!A){A="#"}if(!E){E="#"}if(showCompanionAd.state==undefined){showCompanionAd.state="default"}C.css("float","right");switch(G){case 250:if(showCompanionAd.state=="companion"){B.attr({href:A});D.attr({src:E});break}B.attr({href:A});D.attr({src:E});F.hide("slow",function(){C.css("width","560px");H.show("slow");I.attr("class","companion");H.attr("class","white rounded clearfix");H.css({"float":"left",width:"14px",height:"425px",display:"none"});H.animate({width:"350px"},1000)});showCompanionAd.state="companion";break;case 60:if(showCompanionAd.state=="leavebehind"){B.attr({href:A});D.attr({src:E});break}H.hide("slow",function(){F.show("slow");B.attr({href:A});D.attr({src:E});I.attr("class","leavebehind");C.css("width","700px");H.attr("class","clearfix");H.css({"float":"left",width:"300px",height:"0px"});H.animate({height:"60px"},"slow")});showCompanionAd.state="leavebehind";break;default:H.animate({width:"14px"},1000,function(){H.hide("slow",function(){C.css("width","700px");F.show("slow");B.attr({href:A});D.attr({src:E})})});showCompanionAd.state="default"}};
/* /lib/tabs.js */
var SimpleTabs=Class.create();Object.extend(SimpleTabs.prototype,{initialize:function(){loadJS("lib/prototype/dom.js");this.onchange=function(){return true};this.tab_ids=Array();this.current_id=0},setup:function(D){for(var B=0;B<this.tab_ids.length;B++){var C=$(this.tab_ids[B]);var A=C.getElementsByTagName("a")[0];if(A){A.onclick=this.update.bind(this,B)}}if(this.tab_ids.length>0){this.update(D)}},update:function(D,B,C){if(D==null){D=this.current_id}if(typeof (C)=="undefined"){C=false}if(!C){if(!this.onchange(D,this.tab_ids[D])){return false}}for(var A=0;A<this.tab_ids.length;A++){this.setState(A,(A==D))}this.current_id=D;cancelEvent(false);return false},setState:function(B,A){Element[A?"addClassName":"removeClassName"](this.tab(B),"active")},tab:function(A){return $(this.tab_ids[A])||false},tab_id:function(A){for(var B=0;B<this.tab_ids.length;B++){if(this.tab_ids[B]==A){return B}}return false}});var TabBar=Class.create();Object.extend(TabBar.prototype,SimpleTabs.prototype);Object.extend(TabBar.prototype,{_tracking:false,initialize:function(B,A){SimpleTabs.prototype.initialize.call(this);this.name=B;this.current_id=(typeof (A)=="number"&&A>=0)?A:0;for(var C=0;tab=$(this.name+"-tab"+C);C++){this.tab_ids[C]=tab.id}this._tracking=false;this.setup();this._tracking=true},setState:function(F,E){SimpleTabs.prototype.setState.call(this,F,E);var A=this.panel(F);if(!A){return }if(E){A.style.display="block";if(this._tracking){var C=this.tab(F);var B=TrackingNode.collectData(C);if(typeof B.pageName=="undefined"||typeof B.module=="undefined"||typeof B.tabText=="undefined"){return }Tracking.resetVars();var D={events:"event13",hier4:TrackingNode.build_hierarchy([B.module[0],B.pageName[0],"tab",B.tabText[0]]),eVar12:[B.pageName[0],B.module[0]+" module",B.tabText[0]+" tab"].join("-")};Tracking.setData(D);s.tl(false,"o",D.eVar12);Tracking.resetVars()}}else{A.style.display="none"}},panel:function(A){return $(this.name+"-panel"+A)||false}});
