var agt=navigator.userAgent.toLowerCase();
var is_major=parseInt(navigator.appVersion);
var is_minor=parseFloat(navigator.appVersion);
var is_nav=((agt.indexOf("mozilla")!=-1)&&(agt.indexOf("spoofer")==-1)&&(agt.indexOf("compatible")==-1)&&(agt.indexOf("opera")==-1)&&(agt.indexOf("webtv")==-1)&&(agt.indexOf("hotjava")==-1));
var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
var is_ie3=(is_ie&&(is_major<4));
var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 4")!=-1));
var is_ie4up=(is_ie&&(is_major>=4));
var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));
var is_ie5_5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));
var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);
var is_ie5_5up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);
var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.")!=-1));
var is_ie6up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5);
var is_safari=(navigator.appVersion.indexOf("Safari")>-1);
var is_firefox=(agt.indexOf("firefox")!=-1);
var is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));
var is_win95=((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));
var is_winme=((agt.indexOf("win 9x 4.90")!=-1));
var is_win2k=((agt.indexOf("windows nt 5.0")!=-1));
var is_winXP=((agt.indexOf("windows nt 5")!=-1));
var is_win98=((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));
var is_winnt=((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));
var is_win32=(is_win95||is_winnt||is_win98||((is_major>=4)&&(navigator.platform=="Win32"))||(agt.indexOf("win32")!=-1)||(agt.indexOf("32bit")!=-1));
var is_mac=(agt.indexOf("mac")!=-1);
var is_mac68k=(is_mac&&((agt.indexOf("68k")!=-1)||(agt.indexOf("68000")!=-1)));
var is_macppc=(is_mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));
var is_macosx=(is_mac&&((agt.indexOf("os x")!=-1)||(agt.indexOf("osx")!=-1)));
var is_linux=(agt.indexOf("linux")!=-1);
var domain="";
var sessiondomain=".comcast.net";
if(document.location.href.indexOf("wwwj")!=-1){
domain="http://www.comcast.net";
}else{
domain="http://"+document.domain;
}
var loggedin=false;
var haspreferences=false;
var isPrimary=false;
var firstName="";
var greeting="";
var zipCode="";
var areaCode="";
var user="";
var pollPath="";
var param="";
var yhmcount=-2;
var iscobrand;
if(document.location.href.indexOf("http://comcast.net")!=-1){
document.location.href="http://www.comcast.net";
}
if((loggedin)&&((document.location.href.indexOf("home.html")!=-1)||(document.location.href.indexOf("comcast.html")!=-1))){
document.location.href="http://www.comcast.net";
}
var migrated_urls=["/games/","/games/arcade/","/games/playgames/","/games/playgames/details.jsp","/games/playgames/webplayable/","/games/playgames/downloadable/index.jsp"];
for(i=0;i<migrated_urls.length;i++){
if(document.location.pathname==migrated_urls[i]){
document.location.href="http://playgames.comcast.net";
}
}
if(document.location.pathname=="/games/invasion/setup/"){
document.location.href="/gameinvasion/setup/";
}
if(document.location.pathname=="/games/invasion/sales/"){
document.location.href="/gameinvasion/sales/";
}
if(new String(document.location.pathname).indexOf("/games/invasion/")!=-1){
document.location.href="/gameinvasion/";
}
var tabData={active:[],types:{dvd:[0,31,66],movies:[0,80],playgames:[0,87,218]}};
function getRedirectArguments(){
var _1=window.location;
if(new String(_1).indexOf("?")==-1){
return "?redirectUrl="+document.location;
}else{
var _2="?redirectUrl="+_1.protocol+"//"+_1.host+_1.pathname;
var _3=_1.search.substr(1,_1.search.length);
var _4=_3.split("&");
if(_4.length){
for(i=0;i<_4.length;i++){
_2+="&redirectArg"+(i+1)+"="+_4[i];
}
}
return _2;
}
}
function setSigninRedirect(_5){
var _6=document.getElementById(_5);
if(_6==null){
return false;
}
_6.href=domain+"/signin.jsp"+getRedirectArguments();
}
function getGreeting(){
var _7=new Date();
var _8=_7.getHours();
var _9="<span>";
if(_8<12){
_9+="Good Morning";
}else{
if(_8<17){
_9+="Good Afternoon";
}else{
_9+="Good Evening";
}
}
return _9;
}
var mn=60000;
var hr=3600000;
var dy=hr*6;
var months=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var days=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
function getElapsed(_a){
var _b=(new Date()).getTime();
var dt=makeDate(_a);
var _d=dt.getTime();
var _e=_b-_d;
var _f="";
if(_e>dy){
_f=days[dt.getDay()]+" ";
_f+=months[dt.getMonth()]+" ";
_f+=dt.getDate()+", ";
min=dt.getMinutes();
if(min<10){
min="0"+min;
}
if(dt.getHours()>12){
_f+=(dt.getHours()-12)+":"+min+" ";
_f+="PM";
}else{
_f+=dt.getHours()+":"+min+" ";
_f+="AM";
}
}else{
if(_e>hr){
var tm=Math.round(_e/hr);
var s=(tm>1)?"s":"";
_f=tm+" hour"+s+" ago";
}else{
if(_e>mn){
var tm=Math.round(_e/mn);
var s=(tm>1)?"s":"";
_f=tm+" minute"+s+" ago";
}
}
}
return _f;
}
function makeDate(_12){
var _13=_12.substr(0,4);
var _14=_12.substr(4,2)-1;
var day=_12.substr(6,2);
var _16=_12.substr(9,2);
var _17=_12.substr(11,2);
var dt=new Date();
dt.setUTCFullYear(_13);
dt.setUTCMonth(_14);
dt.setUTCDate(day);
dt.setUTCHours(_16);
dt.setUTCMinutes(_17);
return dt;
}
function getArgs(){
var _19=new Object();
try{
var _1a=top.location.search.substring(1);
}
catch(e){
var _1a="";
}
var _1b=_1a.split("&");
for(var i=0;i<_1b.length;i++){
var pos=_1b[i].indexOf("=");
if(pos==-1){
continue;
}
var _1e=_1b[i].substring(0,pos);
var _1f=_1b[i].substring(pos+1);
_19[_1e]=unescape(_1f);
}
return _19;
}
function getParam(_20){
var _21=getArgs();
var _22=_21[_20];
if(typeof _22=="undefined"){
_22="";
}
return _22;
}
function isProduction(){
var dom=new String(location.hostname);
if(dom.indexOf("comcast.net")>=0||dom.indexOf("attbi.com")>=0){
return true;
}else{
return false;
}
}
function stringReplace(_24,_25,_26){
var _27;
var _28="";
var _29="";
for(var x=0;x<_25.length;x++){
_28=_25.substr(x,1);
if(_28=="$"||_28=="^"||_28=="*"||_28=="("||_28==")"||_28=="+"||_28=="?"||_28=="\\"){
_28="\\"+_28;
}
_29+=_28;
}
_27=new RegExp(_29,"gi");
results=_24.replace(_27,_26);
return results;
}
function trim(_2b){
if(typeof _2b!="string"){
return _2b;
}
var _2c=_2b;
var ch=_2c.substring(0,1);
while(ch==" "){
_2c=_2c.substring(1,_2c.length);
ch=_2c.substring(0,1);
}
ch=_2c.substring(_2c.length-1,_2c.length);
while(ch==" "){
_2c=_2c.substring(0,_2c.length-1);
ch=_2c.substring(_2c.length-1,_2c.length);
}
while(_2c.indexOf("  ")!=-1){
_2c=_2c.substring(0,_2c.indexOf("  "))+_2c.substring(_2c.indexOf("  ")+1,_2c.length);
}
return _2c;
}
var minNum=10000000;
var maxNum=99999999;
var randomNumber=Math.round(Math.random()*(maxNum-minNum))+minNum;
var status=((loggedin)?"logged":"anon");
var term=getParam("query");
var pagename=getFirstFolder();
var placement=((loggedin)?"Left":"Right");
if((pagename=="comcast.html")||(pagename=="home.html")||(pagename=="explore.html")){
pagename="home";
}
function writeBannerSkyScraper(_2e){
document.write("<scr"+"ipt language=\"JavaScript1.1\" src=\"http://oascentral.comcast.net/RealMedia/ads/adstream_jx.ads/comcast.net/searchresults/1"+randomNumber+"@Right?c="+status+"&query="+term+"\">");
document.write("</scr"+"ipt>");
}
function writeSkyBan(_2f,_30){
if(_30!=null){
pagename=_30;
}
if((document.getElementById("comcastnet").className.indexOf("lite")==-1)){
if((_2f=="navbar"&&loggedin)||(_2f=="assistant"&&!loggedin)){
document.write("<iframe id=\"skyban\" src=\"/providers/banners/skyscraper/index.html\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" scrolling=\"no\"></iframe>");
}
}
}
function getFirstFolder(){
var _31=new String(window.location.pathname);
var _32=_31.split("/");
return _32[1];
}
function getChannelName(){
var _33=(iscobrand==true)?cobrand:pagename;
var _34=new String(window.location.pathname).split("/");
var _35=(_33=="qry");
if(_35){
_33="search/?tab=web";
}
var _36=new String(location.hostname).split(".");
if(_36[0]=="acctmgt"){
_33="account";
}else{
if(_36[0]=="shopping"||(new String(window.location.pathname).indexOf("pricegrabber")!=-1)){
_33="shopping";
}
}
return _33;
}
function navTracking(){
if(document.getElementById!=null){
var _37=document.getElementById("nav");
if(_37!=null){
var _38=_37.getElementsByTagName("a");
for(i=0;i<_38.length;i++){
if(_38[i].className=="menu"){
continue;
}
var _39=new String(_38[i].href);
if(_39.indexOf("javascript:")!=-1){
continue;
}
_38[i].href+=((_39.indexOf("?")!=-1)?"&":"?")+"CM.src=Navigation";
}
}
}
}
var chnlPath="";
if(document.location.href.indexOf("invasion")!=-1){
chnlPath="games";
}else{
if(document.location.href.indexOf("playgames")!=-1){
chnlPath="gamesplay";
}else{
chnlPath=pagename;
}
}
function searchQry(_3a){
if(_3a!="videosearch"){
document.location.href="/qry/"+_3a+"?query="+getParam("query");
}else{
document.location.href="http://videosearch.comcast.net/ss-query/videosearch.jsp?q="+getParam("query");
}
}
function submitAskComcast(frm){
if(frm.q.value==""){
return false;
}
var _3c="scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes";
var _3d=_3c+",width=500,height=435";
var _3e=new String(frm.q.value).split(" ");
var _3f=frm.action+"?q="+_3e.join("+");
window.open(_3f,"ask",_3d);
return false;
}
function externalLinks(){
if(!document.getElementsByTagName){
return;
}
var _40=document.getElementsByTagName("a");
for(var i=0;i<_40.length;i++){
var _42=_40[i];
var _43="scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes";
var _44=_43+",width=650,height=320";
var _45=_43+",width=560,height=625";
var _46=_43+",width=560,height=625";
var _47=_43+",width=500,height=435";
var _48=". This link will open in a new window.";
var _49=". This link will open in a new window.";
var _4a="View a photo slideshow starting with this picture. This link will open in a new window.";
if(window.self.location!=window.top.location){
if(_42.getAttribute("target")!="_blank"){
_42.setAttribute("target","_top");
}
}
if(_42.getAttribute("rel")){
if(_42.getAttribute("rel").indexOf("external")!=-1){
_42.target="_blank";
}
if(_42.getAttribute("rel").indexOf("popup")!=-1){
_42.onclick=function(){
var _4b=(this.href.indexOf("Comic")!=-1||this.href.indexOf("comic")!=-1)?_44:_43;
window.open(this.href,this.rel,_4b);
return false;
};
}
if(_42.getAttribute("rel")=="fan"){
_42.onclick=function(){
window.open(this.href,"fan",_45);
return false;
};
}
if(_42.getAttribute("rel")=="ask"){
_42.onclick=function(){
window.open(this.href,"ask",_47);
return false;
};
}
if(_42.getAttribute("rel").indexOf("symbollookup")!=-1){
_42.onclick=function(){
var _4c=this.href;
var _4d=document.getElementById("searchfor");
if(_4d!=null){
_4c+="?searchfor="+_4d.value;
}
window.open(_4c,this.rel,_47);
return false;
};
}
if(_42.className&&_42.className.indexOf("channel")!=-1){
_42.onclick=function(){
subnav(this.getAttribute("rel"),this);
return false;
};
}
if(_42.getAttribute("rel")=="opener"){
_42.onclick=function(){
opener.document.location.href=this.getAttribute("href");
self.close();
return false;
};
}
}
}
}
function subnav(_4e,_4f){
if(!document.getElementById){
return;
}
var _4e=document.getElementById(_4e);
if(_4e.style.display=="none"){
_4e.style.display="";
_4f.className=stringReplace(_4f.className,"menu","menu-s");
}else{
_4e.style.display="none";
_4f.className=stringReplace(_4f.className,"menu-s","menu");
}
}
function writeNav(){
document.write("<iframe src=\"http://www.comcast.net/includes/layout/inav.html\" id=\"navframe\" frameborder=\"0\" scrolling=\"no\"></iframe>");
}
function writeNavBody(){
if(parent.document.location.href.indexOf("finance.comcast.net")!=-1){
if(parent.document.location.href.indexOf("/rich/us_markets")!=-1){
document.write("<body id=\"comcastnet\" class=\"finance markets rich standard\">");
}else{
document.write("<body id=\"comcastnet\" class=\"finance main rich standard\">");
}
}
}
function writeAssistant(){
var _50=document.getElementsByTagName("body")[0];
if(_50.className.indexOf("rich")!=-1){
var pop="<div id=\"assistant-pop\"><a href=\"#\" onclick=\"popAssistant(); return false;\" title=\"Launch the Popup Assistant. This link will open in a new window.\"><span>Comcast Assistant</span></a></div>";
var _52="<div id=\"assistant-modify\"><div><a href=\"#\"><span>Modify Assistant</span></a></div></div>";
var _53="<div class=\"skip\"><a href=\"#a-assistant\">Skip this Flash Movie</a></div>";
var _54="<a name=\"a-assistant\"></a><div class=\"skip\"><a href=\"#a-pagetop\">Back to Top</a><br /></div>";
var _55="<div id=\"assistant-faux\"><a href=\"/signin.jsp\" title=\"Access the Comcast Assistant by signing in to Comcast.net\"><span>Comcast Assistant</span></a></div>";
var _56="<div id=\"assistant-teaser\"><a href=\"http://www.comcast.net/security/mcafee/?cm.src=VirusScanAssistantPromo\"><img src=\"/images/global/teaser.jpg\" alt=\"Comcast High-Speed Internet includes: McAfee Virus Protection. Free Download.\" /></a></div>";
var _57="<div id=\"assistant-teaser\"><iframe src=\"/providers/assistant/teaser/index.html\" scrolling=\"no\" frameborder=\"0\" width=\"200\" height=\"300\"></iframe></div>";
var _58="?is=common/assistant";
_58+="&un="+user;
if((hasRightVersion)&&(loggedin)){
document.write(pop);
document.write(_53);
document.write("<div id=\"assistant-flash\">");
writeFlash("assistantFlash","/Canvas.swf"+_58,200,1900,"#19314B","Window");
document.write("</div>");
document.write(_54);
}else{
if((hasRightVersion)&&(isInNetwork)){
document.write(pop);
document.write(_57);
writeSkyBan("assistant");
}else{
if((hasRightVersion)&&((!isInNetwork)&&(!loggedin))){
document.write(_57);
writeSkyBan("assistant");
}
}
}
}
}
function writePopupAssistant(){
if((hasRightVersion)&&(loggedin)){
self.focus();
var _59="?is=common/assistant";
_59+="&un="+user;
var _5a=600;
if(typeof (window.innerWidth)=="number"){
_5a=window.innerHeight;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
_5a=document.documentElement.clientHeight;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
_5a=document.body.clientHeight;
}
}
}
writeFlash("assistantFlash","/Canvas.swf"+_59,200,1300,"#19314B");
}else{
self.close();
}
}
function popAssistant(){
if((hasRightVersion)&&(loggedin)){
var h=(eval((screen.height)-100));
window.open("/providers/assistant/popup.html","popup_assistant","scrollbars=yes,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=220,height="+h+",top=10,left=10");
}else{
document.location.href="/signin.jsp?redirectUrl="+document.location;
}
}
function writeCover(_5c){
if(hasRightVersion){
var _5d="?channel="+_5c+"&";
var h=246;
if(loggedin||isInNetwork){
_5d+="isLoggedIn=true&";
h=466;
}
_5d+="tod="+getParam("tod")+"&lvl="+getParam("lvl");
document.write("<div id=\"cover\">");
writeFlash("coverFlash","/swf/classic/cover/CoverSA.swf"+_5d,592,h);
document.write("</div>");
}
}
function writePoll(_5f){
}
function writeScores(_60,_61){
if((hasRightVersion)&&(document.location.href.indexOf("golf")==-1)){
document.write("<div class=\"module wide scores\">");
document.write("<h3 id=\"h-scores\">Scoreboard</h3>");
document.write("<div class=\"skip\"><a href=\"#a-scores\">Skip this Flash Movie</a><br /></div>");
writeFlash("scoresFlash","/swf/common/module/scores/scores.swf?backgroundColor=FFFFFF&islgin="+loggedin,200,420);
document.write("<a name=\"a-scores\"></a>");
document.write("</div>");
document.write("<div class=\"module-divider\"></div>");
}
}
function writeFlashHome(){
var _62=GetCrumb(myportal,"em");
document.write("<div id=\"flashhome-wrapper\">");
document.write("<div id=\"flashhome\">");
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"592\" height=\"2000\" id=\"site\" align=\"middle\">");
document.write("  <param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.write("  <param name=\"movie\" value=\"Canvas.swf\" />");
document.write("  <param name=\"FlashVars\" value=\"is=classic&loggedin=true&ion=true&un="+_62+"&tod="+getParam("tod")+"&lvl="+getParam("lvl")+"\" />");
document.write("  <param name=\"quality\" value=\"high\" />");
document.write("  <param name=\"menu\" value=\"false\" />");
document.write("  <param name=\"salign\" value=\"lt\" />");
document.write("  <param name=\"bgcolor\" value=\"#EBEDEF\" />");
document.write("  <embed src=\"Canvas.swf\" quality=\"high\" FlashVars=\"is=classic&loggedin=true&ion=true&un="+_62+"\" salign=\"lt\" bgcolor=\"#19314B\" width=\"592\" height=\"2000\" name=\"site\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
document.write("</object>");
document.write("</div></div>");
}
var sessionHomeCookie=GetCookie("SESSIONHOME");
function writeExpress(){
var _63=new String(window.location.search);
_63=_63.substr(1);
if(_63.length>0){
_63+="&";
}
_63+="un="+GetCrumb(myportal,"em")+"&";
_63+="&is=express&";
_63+="ion="+isInNetwork+"&";
_63+=stamp;
var w="100%";
if(isIE){
w="995";
}
document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\""+w+"\" height=\"2000\" id=\"site\" align=\"middle\">");
document.write("  <param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.write("  <param name=\"movie\" value=\"Canvas.swf\" />");
document.write("  <param name=\"FlashVars\" value=\""+_63+"\" />");
document.write("  <param name=\"quality\" value=\"high\" />");
document.write("  <param name=\"menu\" value=\"false\" />");
document.write("  <param name=\"salign\" value=\"lt\" />");
document.write("  <param name=\"bgcolor\" value=\"#19314B\" />");
document.write("  <embed src=\"Canvas.swf\" quality=\"high\" FlashVars=\""+_63+"\" salign=\"lt\" bgcolor=\"#19314B\" width=\""+w+"\" height=\"2000\" name=\"site\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
document.write("</object>");
document.write("<iframe id=\"page\" name=\"page\" src=\"page.html?section=0&content=0&name=HOME - Comcast.net\" noresize=\"noresize\" width=\"400\" height=\"0\" frameborder=\"0\" scrolling=\"no\"></iframe>");
}
function metaBypass(){
if((sessionHomeCookie=="express")||(sessionHomeCookie=="forcedexpress")){
}else{
if(loggedin){
document.write("<meta http-equiv=\"refresh\" content=\"5; URL=/explore.html\" />");
}else{
}
}
}
function writeEmbeddedFan(){
}
function viewTheFan(_65){
}
function hideTheFan(){
var _66=document.getElementById("fanLayer");
_66.style.left=-2500;
_66.style.display="none";
}
function popTheFan(vid,_68){
window.open("/providers/fan/popup.html?"+vid+"&config="+_68,"thefan","width=560,height=625");
}
function hideStatusMsg(){
document.getElementById("statusmsg").style.display="none";
}
function initTabs(){
if(document.getElementsByTagName){
var _69=document.getElementsByTagName("dl");
for(i=0;i<_69.length;i++){
if(!_69[i].className||_69[i].className!="tab-set"){
continue;
}
var _6a=new String(_69[i].id).split("-")[2];
var _6b=new String(_69[i].id).split("-")[3];
var _6c=new String(_69[i].id).split("-");
var _6d=(_6c[4]!=null)?_6c[4]:160;
tabData.active[_6b]={tabRefs:[],contentRefs:[],currTab:null,type:_6a};
var _6e=new Date();
var _6f=_6e.getDay();
var _70=(_6f==0||_6f>4);
var _71=((_6b=="intheaters")&&_70);
var _72=0;
var _73=0;
var _74=null;
for(var o=0;o<_69[i].childNodes.length;o++){
if(_69[i].childNodes[o].nodeType==1){
var _76=new String(_69[i].childNodes[o].nodeName).toLowerCase();
if(_76=="dt"){
tabData.active[_6b].tabRefs[_72]=_69[i].childNodes[o];
if((_71&&_72==1)||_74==null){
_74=_69[i].childNodes[o];
}
var _77=tabData.types[_6a][_72];
var _78=(tabData.types[_6a][_72+1]!=null)?tabData.types[_6a][_72+1]:null;
var _79=(_78!=null?_78:_6d)-_77;
_73+=tabData.types[_6a][_72];
_69[i].childNodes[o].id="tab-set-hdr-"+_6b+"-"+_72;
_69[i].childNodes[o].style.backgroundImage="url(http://media3.comcast.net/images/headings/tabs-"+_6a+".gif)";
_69[i].childNodes[o].style.backgroundPosition="-"+_77+"px 0px";
_69[i].childNodes[o].style.marginLeft=(_77+"px");
_69[i].childNodes[o].style.width=(_79+"px");
_69[i].childNodes[o].onclick=function(){
activateTab(this);
};
}else{
if(_76=="dd"){
tabData.active[_6b].contentRefs[_72]=_69[i].childNodes[o];
if(!_72++){
_69[i].childNodes[o].style.visiblity="visible";
}
}
}
}else{
lastTag=null;
}
}
if(_74!=null){
activateTab(_74);
}
}
}
}
function activateTab(_7a){
var _7b=new String(_7a.id).split("-");
var _7c=_7b[3];
var _7d=tabData.active[_7c].type;
var _7e=_7b[4];
if(tabData.active[_7c].currTab!=null){
var _7f=tabData.active[_7c].currTab;
var _80=tabData.types[_7d][_7f];
tabData.active[_7c].tabRefs[_7f].style.backgroundPosition="-"+_80+"px 0px";
tabData.active[_7c].contentRefs[_7f].style.display="none";
}
var _81=tabData.types[_7d][_7e];
tabData.active[_7c].tabRefs[_7e].style.backgroundPosition="-"+_81+"px -18px";
tabData.active[_7c].contentRefs[_7e].style.display="block";
tabData.active[_7c].currTab=_7e;
}
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;
}
}
function getZipCode(){
return zipCode;
}
function fanPopup(url){
if(hasRightVersion){
window.open(url,"thefan","scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=560,height=625");
if(this.href){
return false;
}
}else{
document.location.href="/flashUpgrade.html";
}
}
function radioPopup(url){
window.open(url,"rhapPlayer","width=270,height=395,hotkeys=no,status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no");
return false;
}
function nhlPopup(_84,_85){
var url=(_84=="3")?"http://hockeylive.comcast.net/player/wide/index.html?gameType=game"+_84:"http://hockeylive.comcast.net/player/index.jsp?gameType=game"+_84;
var win=(_84=="3")?"width=800,height=649":"width=730,height=688";
window.open(url,_84,"scrollbars=no,status=yes,statusbar=yes,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,"+win);
}
function askPopup(url){
window.open(url,"askcomcast","scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=520,height=482");
return false;
}
function askPopupF(url){
window.open(url,"askcomcast","scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=520,height=482");
return false;
}
function slidePopup(url){
window.open(url,"slideshow","scrollbars=auto,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=600,height=650");
}
function slideClose(url){
opener.document.location.href=url;
self.close();
return false;
}
function addLoadEvent(_8c){
var _8d=window.onload;
if(typeof window.onload!="function"){
window.onload=_8c;
}else{
window.onload=function(){
_8d();
_8c();
};
}
}
function addClass(_8e,_8f){
if(!_8e.className){
_8e.className=_8f;
}else{
var _90=_8e.className.split(" ");
for(var i=0;i<_90.length;i++){
if(_90[i]==_8f){
return;
}
}
_8e.className+=" "+_8f;
}
}
function removeClass(_92,_93){
if(!_92.className){
return false;
}
var _94=_92.className.split(" ");
var _95=[];
for(var i=0;i<_94.length;i++){
if(_94[i]!=_93){
_95[i]=_94[i];
}
}
_92.className=_95.join(" ");
return true;
}
function getElementsByClassName(_97,_98,_99){
var _9a=(_98=="*"&&document.all)?document.all:_97.getElementsByTagName(_98);
var _9b=new Array();
_99=_99.replace(/\-/g,"\\-");
var _9c=new RegExp("(^|\\s)"+_99+"(\\s|$)");
var _9d;
for(var i=0;i<_9a.length;i++){
_9d=_9a[i];
if(_9c.test(_9d.className)){
_9b.push(_9d);
}
}
return (_9b);
}
function toggleBlockElement(_9f,vis){
if(typeof (_9f)=="string"||typeof (_9f)=="number"){
var _9f=document.getElementById(_9f);
}
_9f.style.display=vis?"block":"none";
_9f.style.visibility=vis?"visible":"hidden";
}
function toggleInlineElement(_a1,vis){
if(typeof (_a1)=="string"||typeof (_a1)=="number"){
var _a1=document.getElementById(_a1);
}
_a1.style.display=vis?"inline":"none";
_a1.style.visibility=vis?"visible":"hidden";
}
function pageLoad(){
externalLinks();
if(typeof (initTabs)!="undefined"){
initTabs();
}
if(document.location.hash!=null&&document.location.hash!=""){
return;
}
if(document.getElementById("search-field")==null){
return;
}
var _a3=(typeof (setSearchFocus)!="undefined"&&!setSearchFocus);
var _a4=document.getElementById("user");
if(_a4!=null&&(pagename!="home")){
setTimeout("document.getElementById('user').focus();",1);
}else{
var _a5=true;
var _a6=[];
var _a7=document.getElementsByTagName("input");
for(var f=0;f<_a7.length;f++){
var _a9=getElementType(_a7[f]);
var _aa=_a7[f].name;
if(((_a9=="text"&&_aa=="user")||_a9=="password")&&(_a7[f].value!="")){
_a5=false;
continue;
}
}
if(_a5&&_a3){
_a5=false;
}
if(_a5){
setTimeout("document.getElementById('search-field').focus();",1);
}
}
if(is_firefox||_a3){
return false;
}
document.onkeydown=function(evt){
var evt=(evt!=null)?evt:((event!=null)?event:null);
if(!evt){
return;
}
if(evt.altKey||evt.ctrlKey){
return;
}
var _ac=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);
if(_ac==null){
return;
}
var _ad=(_ac.nodeName!=null)?new String(_ac.nodeName).toLowerCase():"";
var _ae=(_ac.type!=null)?new String(_ac.type).toLowerCase():"";
if(_ac.id!=null&&_ac.id=="search-field"){
var _af=parseInt(evt.keyCode);
if(_af==13){
return;
}
if(_af==38||_af==40||_af==33||_af==34){
setTimeout("document.getElementById('search-field').blur();",1);
}
}else{
if((_ad=="input"&&(_ae=="text"||_ae=="password"))||_ad=="textarea"){
return;
}else{
if(evt.keyCode==null){
return;
}
var _b0=document.getElementById("search-field");
if(evt.keyCode>47&&evt.keyCode<112){
var _b1=String.fromCharCode(evt.keyCode)[evt.shiftKey?"toUpperCase":"toLowerCase"]();
if(!is_safari){
_b0.value+=_b1;
}
setTimeout("document.getElementById('search-field').focus();",1);
}
}
}
};
}
function getElementType(_b2){
if(_b2==null){
return false;
}
var _b3=_b2.type;
if(!_b3){
var _b4=_b2[0];
if(_b4==null){
return false;
}
var _b3=_b4.type;
if(!_b3){
return false;
}
}
return new String(_b3).toLowerCase();
}
function randomizeURL(url){
return url+((url.indexOf("?")!=-1)?"&random=":"?random=")+Math.floor(Math.random()*999999);
}
function disneyConnection(url){
var _b7="Welcome to Disney Connection!";
var _b8="disneyConnectionAuth";
var _b9="800";
var _ba="500";
var _bb=(screen.width-_b9)/2;
var _bc=(screen.height-_ba)/2;
features="toolbar=yes,height="+_ba+",width="+_b9+",top="+_bc+",left="+_bb+",scrollbars=yes,";
if(self.SymRealWinOpen){
window.open=SymRealWinOpen;
}
var uri="/kids/";
var _be="";
var _bf="";
var _c0=false;
if(uri.indexOf(".exlink")==-1){
if(_c0){
uri+=".inlink";
}else{
uri+=".exlink";
}
}
setTitle(_b7);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _c1=new Date();
DCS.dcsdat=_c1.getTime();
if(_be.length==0){
_be=window.location.href;
}
DCS.dcsref=_be;
var _c2=getTitle()+dcsDCS()+_bf+((url.length>0)?"&CM.url="+url:"");
dcsTrack(_c2);
if(url.length>0){
if(_c0){
window.location=url;
}else{
_b9=castInt(_b9);
_ba=castInt(_ba);
var _c3="";
if(_b9>0){
_c3+=(_c3!=null&&_c3.length>0)?",":"";
_c3+="width="+_b9;
}
if(_ba>0){
_c3+=(_c3!=null&&_c3.length>0)?",":"";
_c3+="height="+_ba;
}
if(features!=null&&features.length>0){
_c3+=(_c3!=null&&_c3.length>0)?",":"";
_c3+=features;
}
window.open(url,"tracking",_c3);
}
}
}
window.onload=pageLoad;
function cacheImage(_c4){
var _c5=new Image();
_c5.src=_c4;
return _c5;
}
function appendBreadcrumbList(_c6){
if(document.getElementById("breadcrumb2")){
for(x=0;x<_c6.length;x++){
appendBreadcrumb(_c6[x]);
}
}
}
function appendBreadcrumb(_c7){
if(typeof (_c7)!="object"||_c7.text==null||_c7.href==null){
return false;
}
var _c8=document.getElementById("breadcrumb");
var _c9=_c8.getElementsByTagName("dd")[0];
var _ca="&#160;<span>&gt;</span>&#160"+"<a href=\""+_c7.href+"\">"+_c7.text+"</a>";
_c9.innerHTML+=_ca;
}
function removeFaqCrumbs(){
if(document.getElementById("breadcrumb2")){
var _cb=document.getElementById("content");
var _cc=_cb.getElementsByTagName("div")[0];
var _cd=_cc.getElementsByTagName("h4")[0];
var _ce=_cd.getElementsByTagName("a");
var _cf=[];
for(x=0;x<_ce.length;x++){
var _d0=new String(_ce[x].href);
if(_d0.indexOf(".com/")==-1){
var _d1=_d0;
}else{
var _d1=_d0.substr(_d0.indexOf(".com/")+4);
}
_cf[_cf.length]={text:_ce[x].innerHTML,href:_d1};
}
_cd.style.display="none";
_cd.style.visibility="hidden";
return _cf;
}
}
function photoPopup(){
var _d2="400";
var _d3="533";
_d2=(_d2!=null&&_d2.length!=0)?parseInt(_d2)+148:700;
_d3=(_d3!=null&&_d3.length!=0)?parseInt(_d3)+32:600;
window.open("".concat("/data/home/photopopup.html?random=",Math.random()),"Photo","width="+_d3+",height="+_d2+",hotkeys=no,status=no,resizable=yes,scrollbars=no");
}
function ScrollProps(){
this.begin;
this.end;
this.start;
this.change;
this.dur=1000;
}
var xScroll=new ScrollProps();
var yScroll=new ScrollProps();
var psintv;
function easeOut(t,b,c,d){
return -c*(t/=d)*(t-2)+b;
}
function pageScroll(){
var _d8=(new Date()).getTime()-yScroll.start;
if(_d8<yScroll.dur){
scrollTo(easeOut(_d8,xScroll.begin,xScroll.change,xScroll.dur),easeOut(_d8,yScroll.begin,yScroll.change,yScroll.dur));
}else{
scrollTo(xScroll.end,yScroll.end);
clearInterval(psintv);
}
}
function jumpTo(x,y){
yScroll.begin=getWindowYOffset();
yScroll.end=y;
yScroll.start=(new Date()).getTime();
yScroll.change=yScroll.end-yScroll.begin;
xScroll.begin=getWindowXOffset();
xScroll.end=x;
xScroll.start=yScroll.start;
xScroll.change=xScroll.end-xScroll.begin;
clearInterval(psintv);
psintv=setInterval("pageScroll()",10);
}
var d=document;
var checkObj=d.all?(d.getElementById?3:2):(d.getElementById?4:(d.layers?1:0));
function getWindowXOffset(){
if(checkObj==2||checkObj==3){
if(document.documentElement&&document.documentElement.scrollTop){
return document.documentElement.scrollLeft;
}else{
return d.body.scrollLeft;
}
}else{
if(checkObj==1||checkObj==4){
return window.pageXOffset;
}
}
}
function getWindowYOffset(){
if(checkObj==2||checkObj==3){
if(document.documentElement&&document.documentElement.scrollTop){
return document.documentElement.scrollTop;
}else{
return document.body.scrollTop;
}
}else{
if(checkObj==1||checkObj==4){
return window.pageYOffset;
}
}
}
function openFlash8InstallerPopup(){
window.open("/flash/installer/flash8/genericInstaller.html?redirectURL="+document.location.href,"flash8Install","scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=300,height=300");
}
function trackCover(_db,_dc){
}
function getCoverLink(_dd,_de,_df,_e0,_e1){
_dd=unescape(_dd);
_de=unescape(_de);
_df=unescape(_df);
_e1=unescape(_e1);
_hbPageView(_de,"cover/"+pagename+"/"+_e0+"/linkclicks/"+_dd);
if(_df.indexOf("fan/popup")!=-1){
fanPopup(_df);
}else{
if(_e1=="_blank"){
window.open(_df);
}else{
document.location.href=_df;
}
}
}
function trackEvolutionListImpression(_e2){
}
function trackEvolutionListLink(_e3,_e4,_e5,_e6){
_hbPageView(_e3,"cover/"+pagename+"/lists/"+_e5);
_e3=unescape(_e3);
_e4=unescape(_e4);
_e5=unescape(_e5);
_e6=unescape(_e6);
if(_e4.indexOf("fan/popup")!=-1){
fanPopup(_e4);
}else{
if(_e6=="_blank"){
window.open(_e4);
}else{
document.location.href=_e4;
}
}
}
var emailQuery={ref:{frame:null,frameDoc:null},request:null,url:"/qry/yhm.js?rand="+randomNumber};
function triggerCover(){
try{
if(window.location.href.indexOf("explore.html")==-1){
window.document.coverFlash.SetVariable("pageLoaded","true");
}else{
window.document.site.SetVariable("pageLoaded","true");
}
}
catch(e){
}
}
addLoadEvent(triggerCover);
function getAjaxRequestObj(){
if(window!=null&&window.XMLHttpRequest!=null){
return new XMLHttpRequest();
}else{
if(window!=null&&window.ActiveXObject!=null&&!is_mac){
return new ActiveXObject("Microsoft.XMLHTTP");
}else{
return null;
}
}
}
function writeEmailIcon(){
if(!loggedin||!hasRightVersion){
return false;
}
emailQuery.request=getAjaxRequestObj();
if(emailQuery.request==null){
initEmailFrameRequest();
return false;
}
emailQuery.request.onreadystatechange=function(){
if(emailQuery.request.readyState!=4){
return false;
}
if(emailQuery.request.responseXML==null){
return false;
}
var _e7=emailQuery.request.responseXML;
var _e8=new String(getElementTextNS("","status",_e7,0)).toLowerCase();
if(_e8!="success"){
return false;
}
var _e9=parseInt(getElementTextNS("","newmail",_e7,0));
if(_e9&&_e9!="0"){
document.getElementById("email-icon").innerHTML="<span>"+_e9+"</span>";
}
};
var tmp=emailQuery.request.open("GET",emailQuery.url,true);
emailQuery.request.send(null);
}
function initEmailFrameRequest(){
var _eb=document.createElement("iframe");
_eb.setAttribute("id","email-icon-frame");
_eb.setAttribute("name","email-icon-frame");
_eb.style.border="0px";
_eb.style.height="0px";
_eb.style.width="0px";
_eb.src=emailQuery.url;
emailQuery.ref.frame=document.getElementById("email-icon").appendChild(_eb);
if(emailQuery.ref.frame.contentDocument){
emailQuery.ref.frameDoc=emailQuery.ref.frame.contentDocument;
}else{
if(emailQuery.ref.frame.contentWindow){
emailQuery.ref.frameDoc=emailQuery.ref.frame.contentWindow.document;
}else{
if(emailQuery.ref.frame.document){
emailQuery.ref.frameDoc=emailQuery.ref.frame.document;
}
}
}
}
function getElementTextNS(_ec,_ed,_ee,_ef){
var _f0="";
if(_ec&&isIE){
_f0=_ee.getElementsByTagName(_ec+":"+_ed)[_ef];
}else{
var _f1=_ee.getElementsByTagName(_ed);
_f0=_f1[_ef];
}
if(_f0){
if(_f0.childNodes.length>1){
return _f0.childNodes[1].nodeValue;
}else{
return _f0.firstChild.nodeValue;
}
}else{
return null;
}
}
function loadMoveEmailIcon(){
if(yhmcount>-1){
var s=document.createElement("span");
var st=document.createTextNode(yhmcount);
s.appendChild(st);
var e=document.getElementById("email-icon");
if(e!=null||!document.getElementById){
e.appendChild(s);
}
}else{
if(yhmcount==-2){
setTimeout("loadMoveEmailIcon()",1000);
}
}
}
function displayLoginLogoutButton(){
if(loggedin){
var _f5=document.getElementsByTagName("body")[0];
if(_f5.className.indexOf("oberon")!=-1){
return "<div id=\"t-signout\"><a href=\"http://www.comcast.net/signout/\" title=\"Sign Out\">Sign Out<span id=\"s-signout\" class=\"signin\"></span></a></div>";
}else{
if(_f5.className.indexOf("comstocknew")!=-1){
return "<div id=\"t-signout\"><a href=\"http://finance-new.comcast.net/user/logout.html\" title=\"Sign Out\">Sign Out<span id=\"s-signout\" class=\"signin\"></span></a></div>";
}else{
return "<div id=\"t-signout\"><a href=\""+domain+"/signout.jsp\" title=\"Sign Out\">Sign Out<span id=\"s-signout\" class=\"signin\"></span></a></div>";
}
}
}else{
if((document.location.href.indexOf("home.html")!=-1)||(document.location.href.indexOf("comcast.html")!=-1)){
return "<div id=\"t-signin\"><a href=\""+domain+"/signin.jsp\" title=\"Sign In\">Sign In<span id=\"s-signin\" class=\"signin\"></span></a></div>";
}else{
if(window.self.location!=window.top.location){
return "<div id=\"t-signin\"><a href=\""+domain+"/signin.jsp?redirectUrl="+domain+"\" title=\"Sign In\">Sign In<span id=\"s-signin\" class=\"signin\"></span></a></div>";
}else{
return "<div id=\"t-signin\"><a href=\""+domain+"/signin.jsp"+getRedirectArguments()+"\" title=\"Sign In\">Sign In<span id=\"s-signin\" class=\"signin\"></span></a></div>";
}
}
}
}
function displaySwitchButton(){
return "<a href=\""+domain+"/express\" title=\"Switch to the Express View. Requires the Flash 7 plugin.\" onclick=\"setSessionCookie('SESSIONHOME', 'forcedexpress', '/', '"+sessiondomain+"', false);top.document.location.href='"+domain+"/';return false;\" target=\"_top\" />Go to Express</a>";
}
function displayGreetingYHM(){
var tmp="<span>Welcome, Guest!</span>";
if(loggedin){
tmp=getGreeting();
if(greeting.length>=1){
tmp+=", "+"<a href=\""+domain+"/providers/greeting/\" title=\"Modify your greeting name\" class=\"greet\" onclick=\"window.open(this.href, 'greeting', 'scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=335,height=205'); return false;\">"+greeting+"</a>!</span>";
}
}
return tmp;
}
function writeLogo(){
document.write("<h2><a href=\"/"+(iscobrand!=true?(getChannelName()+"\">"+getChannelName()):(CBchannel+"\">"+CBchannel))+"</a></h2>");
}
var searchObj={getOptions:function(){
var _f7=GetCookie("searchOptions");
var _f8=false;
if(_f7==""){
return {useSafe:1,useHistory:(_f8?1:0)};
}
var _f9=_f7.split("-&-");
var _fa=[];
for(var x=0;x<_f9.length;x++){
var tmp=_f9[x].split("=");
_fa[tmp[0]]=tmp[1];
}
if(!_f8){
_fa.useHistory=0;
}
return _fa;
},init:function(){
handleHeaderTabClick();
this.ref.field=document.getElementById("search-field");
this.ref.box=document.getElementById("search-history");
this.ref.nub=document.getElementById("search-nub");
if(isSearchResultsPage!=null&&isSearchResultsPage){
this.options.isResult=true;
}
toggleBlockElement(this.ref.nub,(this.getOptions().useHistory==1));
this.populateHistory();
var _fd=document.getElementById("footer-search");
if(!is_safari||_fd==null){
return;
}
var _fe=_fd.getElementsByTagName("label");
for(var l=0;l<_fe.length;l++){
_fe[l].onclick=function(){
document.getElementById(this.getAttribute("for")).checked=true;
};
}
},options:{histLength:10,isResult:false},populateHistory:function(){
if(this.getOptions().useHistory!=1){
return;
}
var hist=new String(GetCookie("searchHistory")).split("-&-");
this.ref.box.innerHTML="";
for(var x=0;x<hist.length;x++){
if(hist[x]==""){
continue;
}
var tmpD=document.createElement("div");
tmpD.onclick=clickHistoryItem;
var tmpS=document.createElement("span");
tmpS.innerHTML=new String(hist[x]).replace(/\+/g," ");
tmpD.appendChild(tmpS);
this.ref.box.appendChild(tmpD);
}
},ref:{box:null,nub:null,field:null},setHeaderSearchType:function(_104,_105){
var _106=document.getElementById("search-form");
if(_105==null){
var _105=false;
}
if(document.getElementById("searchtabs")!=null){
var _107=document.getElementById("searchtab-"+headerSearch.currTab).firstChild;
_107.className="";
var _108=document.getElementById("searchtab-"+_104).firstChild;
_108.className="selectedtab";
}
if(_105&&_104!="web"){
for(fieldName in headerSearch.data.web.fields){
var _109=document.getElementById(fieldName);
if(_109!=null){
_109.parentNode.removeChild(_109);
}
}
}
if(headerSearch.currTab!=null){
var _10a=document.getElementsByTagName("input");
for(fieldName in headerSearch.data[headerSearch.currTab].fields){
for(var i=0;i<_10a.length;i++){
if(_10a[i].name!=fieldName){
continue;
}
_10a[i].parentNode.removeChild(_10a[i]);
}
}
}
if(headerSearch.currTab!=null){
headerSearch.data[headerSearch.currTab].uninstall();
}
headerSearch.currTab=_104;
var _10c="q";
for(fieldName in headerSearch.data[_104].fields){
var _10d=headerSearch.data[_104].fields[fieldName];
if(fieldName=="fieldname"){
_10c=_10d;
continue;
}
var _109=document.createElement("input");
_109.type="hidden";
_109.id=fieldName;
_109.name=fieldName;
_109.value=_10d;
_106.appendChild(_109);
}
document.getElementById("search-field").name=_10c;
_106.action=headerSearch.data[_104].action;
document.getElementById("search-label").innerHTML=headerSearch.data[_104].label+":";
headerSearch.data[_104].install();
},submitHeader:function(_10e,_10f){
if(_10f==null){
var _10f=false;
}
var term=this.ref.field.value;
trackBanners(headerSearch.data[headerSearch.currTab].action,headerSearch.currTab);
if(term!=""){
return true;
}
var _111=new String(headerSearch.currTab).charAt(0).toUpperCase()+new String(headerSearch.currTab).substr(1);
if(_10f){
document.location.href=search_action_url+"?cat="+_111;
}
return false;
},submitFooter:function(_112,_113){
if(_112.name!="swr"||(_112.q.value=="")){
return false;
}
if(document.getElementById("search_type_1").checked){
var _114=document.createElement("input");
_114.type="hidden";
_114.id="refine";
_114.name="refine";
_114.value=new String(_112.q.value);
_112.q.value=new String(_112.orig_query.value);
_112.replaceChild(_114,_112.orig_query);
}
if(_113!=null){
_112.elements["cat"].value=_113;
_112.elements["con"].value=(_113=="Games")?"gi":"net";
}
_112.submit();
return true;
},toggleDropdown:function(_115){
if(_115==null){
var _115=!this.visible;
}
this.ref.nub.style.backgroundPosition=(_115?"-10px":"0px")+" 0px";
toggleBlockElement(this.ref.box,_115);
this.visible=_115;
},toggleNavigator:function(node,_117){
var _118=(new String(node.className).indexOf("visible")!=-1);
node.className="search-nav nav-"+(_118?"hidden":"visible");
if(!_118&&_117){
node.className+="-full";
}
var _119=node.getElementsByTagName("a");
_119[_119.length-1].innerHTML=_118?"More":"Close";
},toggleNewsResult:function(node){
var _11b=(new String(node.className).indexOf("open")!=-1);
node.className="results-news-article result-"+(_11b?"closed":"open");
node.getElementsByTagName("a")[1].innerHTML=(_11b?"Read":"Close")+" Summary";
},userClickSubmit:function(_11c){
if(_11c==null){
return false;
}
this.setHeaderSearchType(_11c);
if(this.ref.field.value==""){
return false;
}
document.getElementById("search-form").submit();
},visible:false};
function clickHistoryItem(){
searchObj.ref.field.value=this.firstChild.innerHTML;
searchObj.toggleDropdown(false);
return false;
}
function HdrSearch(_11d,_11e,_11f,_120,_121,_122){
this.title=_11d;
this.action=_11e;
this.label=_11f;
this.fields=(_120!=null)?_120:[];
this.install=(_121!=null)?_121:function(){
return true;
};
this.uninstall=(_122!=null)?_122:function(){
return true;
};
}
var shopSch="http://shopping.comcast.net/search.php";
var videoSch="http://videosearch.comcast.net/ss-query/videosearch.jsp";
var search_action_url="http://search.comcast.net/";
var headerSearch={currTab:"web",data:{web:new HdrSearch("Web",search_action_url,"Search the Web",{"fieldname":"q","cat":"Web","con":"net"}),video:new HdrSearch("Video",videoSch,"Search Videos",{"fieldname":"q","dr":"1","cp":"1"}),images:new HdrSearch("Images",search_action_url,"Search Images",{"fieldname":"q","cat":"Images","con":"net"}),news:new HdrSearch("News",search_action_url,"Search News",{"fieldname":"q","cat":"News","con":"net"}),shopping:new HdrSearch("Shopping",shopSch,"Search Products",{"fieldname":"form_keyword"}),entertainment:new HdrSearch("Entertainment","http://sitesearch.comcast.net/","Search Entertainment",{"fieldname":"q","c":"net","cat1":"Entertainment"}),finance:new HdrSearch("Finance","http://sitesearch.comcast.net/","Search Finance",{"fieldname":"q","c":"net","cat1":"Finance"}),games:new HdrSearch("Comcast Games",search_action_url,"Search Games",{"fieldname":"q","c":"net","cat1":"Games"}),oberon:new HdrSearch("Games","http://sitesearch.comcast.net/","Search Games",{"fieldname":"q","c":"net","cat1":"Games"}),help:new HdrSearch("Help","http://sitesearch.comcast.net/","Search Help",{"fieldname":"q","c":"net","cat1":"Help"}),movies:new HdrSearch("Movies","http://sitesearch.comcast.net/","Search Movies",{"fieldname":"q","c":"net","cat1":"Movies"}),music:new HdrSearch("Music","http://sitesearch.comcast.net/","Search Music",{"fieldname":"q","c":"net","cat1":"Music"}),relationships:new HdrSearch("Relationships","http://sitesearch.comcast.net/","Search Relationships",{"fieldname":"q","c":"net","cat1":"Relationships"}),sports:new HdrSearch("Sports","http://sitesearch.comcast.net/","Search Sports",{"fieldname":"q","c":"net","cat1":"Sports"}),tv:new HdrSearch("TV","http://sitesearch.comcast.net/","Search TV",{"fieldname":"q","c":"net","cat1":"TV"}),yellow:new HdrSearch("Yellow Pages",search_action_url,"Search Yellow Pages",{"fieldname":"q","cat":"yp"},function(){
var row=document.createElement("td");
row.id="local-extra";
row.appendChild(document.createElement("div"));
var _124=document.createElement("input");
_124.type="text";
_124.className="single";
_124.id="search-field-2";
_124.name="l";
row.childNodes[0].appendChild(_124);
var _125=document.getElementById("search-field");
if(_125==null){
return false;
}
_125.className="single";
var _126=_125.parentNode.parentNode;
_126.parentNode.insertBefore(row,_126.nextSibling);
},function(){
var row=document.getElementById("local-extra");
if(row!=null){
row.parentNode.removeChild(row);
}
var _128=document.getElementById("search-field");
if(_128!=null){
_128.className="";
}
})},map:{custom:{web:2,video:1,images:1,news:1,shopping:1},home:{web:2,video:1,images:1,news:1,shopping:1},web:{web:2,video:1,images:1,news:1,shopping:1},video:{web:1,video:2,images:1,news:1,shopping:1},images:{web:1,video:1,images:2,news:1,shopping:1},local:{web:1,video:1,images:1,yellow:2,news:1,shopping:1},news:{web:1,video:1,images:1,news:2,shopping:1},shopping:{web:1,video:1,images:1,news:1,shopping:2}},channelsTabs:{account:"help",entertainment:"entertainment",games:"games",help:"help",movies:"movies",music:"music",oberon:"oberon",relationships:"relationships",security:"help",sports:"sports",tv:"tv",toolbar:"toolbar"}};
function writeHeaderSearchTabs(_129){
if(is_ie&&is_mac){
return;
}
if((_129!=null)&&(_129.length)){
var _12a=new String(_129).toLowerCase();
var _12b=(headerSearch.map[_12a]!=null)?headerSearch.map[_12a]:headerSearch.map["web"];
}else{
var _12b=headerSearch.map["web"];
var _12a=getChannelName();
if(headerSearch.channelsTabs[_12a]!=null){
_12b[headerSearch.channelsTabs[_12a]]=1;
}
}
document.write("<ul>");
for(tabName in _12b){
if(headerSearch.data[tabName]==null){
continue;
}
writeHeaderTab(tabName,(_12b[tabName]==2));
}
document.write("</ul>");
}
function writeHeaderTab(_12c,_12d){
if(_12d){
headerSearch.currTab=_12c;
}
var _12e="searchtab-"+_12c;
var _12f=_12d?"selectedtab":"";
var _130=headerSearch.data[_12c].title;
var _131="<li id='"+_12e+"'>"+"<a onclick=\"handleHeaderTabClick('"+_12c+"');\" class='"+_12f+"'>"+_130+"</a></li>";
document.write(_131);
}
function handleHeaderTabClick(_132){
var _133=document.getElementById("search-form");
var _134=false;
if(_132==null){
var _132=headerSearch.currTab;
_134=true;
}else{
if(headerSearch.currTab==_132){
return false;
}else{
document.getElementById("search-field").focus();
}
}
searchObj.setHeaderSearchType(_132,_134);
if(_134||document.getElementById("search-field").value==""){
return false;
}
_133.submit();
}
function getCookieVal(_135){
var _136=document.cookie.indexOf(";",_135);
if(_136==-1){
_136=document.cookie.length;
}
return unescape(document.cookie.substring(_135,_136));
}
function GetCookie(name){
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while(i<clen){
var j=i+alen;
if(document.cookie.substring(i,j)==arg){
return getCookieVal(j);
}
i=document.cookie.indexOf(" ",i)+1;
if(i==0){
break;
}
}
return "";
}
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;
}
}
function setCookie(name,_13e,days,path,_141,_142){
if(isNaN(days)){
days=1;
}
var _143=days*24*60*60*1000;
var now=new Date();
var d;
if(!isNaN(now.valueOf())){
var then=now.valueOf()+_143;
d=new Date(then);
}else{
d=now;
}
var _147=name+"="+escape(_13e)+"; expires="+d.toGMTString()+((path==null)?"":("; path="+path))+((_141==null)?"":("; domain="+_141))+((_142==true)?"; secure":"");
document.cookie=_147;
}
function getCrumbVal(_148,_149){
var _14a=_148.indexOf("&",_149);
if(_14a==-1){
_14a=_148.length;
}
var temp=_148.substring(_149,_14a);
temp=stringReplace(temp,"+"," ");
return unescape(temp);
}
function GetCrumb(_14c,name){
var arg=name+"=";
var alen=arg.length;
var clen=_14c.length;
var i=0;
while(i<clen){
var j=i+alen;
if(_14c.substring(i,j)==arg){
return getCrumbVal(_14c,j);
}
i=_14c.indexOf("&",i)+1;
if(i==0){
break;
}
}
return "";
}
function setSessionCookie(name,_154,path,_156,_157){
var _158=name+"="+escape(_154)+";"+((path==null)?"":("; path="+path))+((_156==null)?"":("; domain="+_156))+((_157==true)?"; secure":"");
document.cookie=_158;
}
function setSessionAndFlip(name,_15a){
setSessionCookie(name,_15a,"/",sessiondomain,false);
document.location.href="/";
}
var flash2Installed=false;
var flash3Installed=false;
var flash4Installed=false;
var flash5Installed=false;
var flash6Installed=false;
var flash7Installed=false;
var flash8Installed=false;
var flash9Installed=false;
var maxVersion=9;
var actualVersion=0;
var requiredVersion=7;
var hasRightVersion=false;
var jsVersion=1;
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;
var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;
jsVersion=1.1;
if(isIE&&isWin){
document.write("<SCR"+"IPT LANGUAGE=\"VBScript\"> \n");
document.write("on error resume next \n");
document.write("flash2Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.2\"))) \n");
document.write("flash3Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.3\"))) \n");
document.write("flash4Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.4\"))) \n");
document.write("flash5Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.5\"))) \n");
document.write("flash6Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\"))) \n");
document.write("flash7Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.7\"))) \n");
document.write("flash8Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.8\"))) \n");
document.write("flash9Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.9\"))) \n");
document.write("</SCR"+"IPT> \n");
}
function detectFlash(){
if(navigator.plugins){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _15b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _15c=navigator.plugins["Shockwave Flash"+_15b].description;
var _15d=parseInt(_15c.substring(16));
flash2Installed=_15d==2;
flash3Installed=_15d==3;
flash4Installed=_15d==4;
flash5Installed=_15d==5;
flash6Installed=_15d==6;
flash7Installed=_15d==7;
flash8Installed=_15d==8;
flash9Installed=_15d>=9;
}
}
for(var i=2;i<=maxVersion;i++){
if(eval("flash"+i+"Installed")==true){
actualVersion=i;
}
}
if(navigator.userAgent.indexOf("WebTV")!=-1){
actualVersion=4;
}
if(actualVersion<requiredVersion){
}else{
hasRightVersion=true;
}
}
function writeFlash(name,file,_161,_162,_163,_164){
_163=(_163==null)?"#FFFFFF":_163;
_164=(_164==null)?"opaque":_164;
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='"+name+"' width='"+_161+"' height='"+_162+"'>");
document.write("  <param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.write("  <param name='movie' value='"+file+"'>");
document.write("  <param name='wmode' value='"+_164+"'>");
document.write("  <param name='quality' value='high'>");
document.write("  <param name='bgcolor' value='"+_163+"'>");
document.write("  <param name='menu' value='false'>");
document.write("  <embed src='"+file+"' bgcolor='"+_163+"' name='"+name+"' width='"+_161+"' height='"+_162+"' wmode='"+_164+"' quality='high' menu='false' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
document.write("</object>");
}
var flashcookie=GetCookie("FPO");
var clientprefs=GetCookie("CLIENTPREFS");
if(clientprefs!=""){
var flashVersion=GetCrumb(clientprefs,"fpo");
var upgradeMsg=GetCrumb(clientprefs,"umsg");
}
function upgrade(){
if(iscobrand==true){
return false;
}
var _165="";
var _166="Visit our Upgrade page to download the Macromedia Flash 7 player.";
var _167="Visit our Upgrade page to download a new web browser.";
var _168="<div id=\"upgradebar\"><p>";
var _169=" <span id=\"upgrade-close\"><a href=\"#\" onclick=\"hideUpgrade()\" title=\"Do not show me this message again.\">Do not show me this message again.</a></span>";
var _16a="</p></div>";
if((upgradeMsg!="off")||(flashcookie==null)){
if((!document.getElementById)&&(!hasRightVersion)){
_165="We recommend that you upgrade your <a href=\"/browserUpgrade.html\" title=\""+_167+"\">Web browser</a> and <a href=\"/flashUpgrade.html\" title=\""+_166+"\">Macromedia Flash</a> to view the full experience of Comcast.net.";
}else{
if((!hasRightVersion)&&(document.getElementById)){
_165="We recommend that you upgrade to the latest version of <a href=\"/flashUpgrade.html\" title=\""+_166+"\">Macromedia Flash</a> to view the full experience of Comcast.net.";
var _16b=document.getElementById("breadcrumb");
if(_16b!=null){
_16b.style.top="130px";
}
}else{
if(!document.getElementById){
_165="We recommend that you upgrade your <a href=\"/browserUpgrade.html\" title=\""+_167+"\">Web browser</a> to view the full experience of Comcast.net.";
}else{
_168="";
_165="";
_169="";
_16a="";
}
}
}
document.write(_168+_165);
if(document.getElementById){
document.write(_169);
}
document.write(_16a);
}
}
function hideUpgrade(){
document.getElementById("upgradebar").style.display="none";
document.getElementById("breadcrumb").style.top="110px";
var _16c="fpo="+flashVersion+"&umsg=off";
setCookie("CLIENTPREFS",_16c,360,"/");
}
function setOverride(ver){
var _16e="fpo="+ver+"&umsg="+upgradeMsg;
setCookie("CLIENTPREFS",_16e,360,"/");
window.location.replace("/");
}
detectFlash();
if(typeof deconcept=="undefined"){
var deconcept=new Object();
}
if(typeof deconcept.util=="undefined"){
deconcept.util=new Object();
}
if(typeof deconcept.SWFObjectUtil=="undefined"){
deconcept.SWFObjectUtil=new Object();
}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.getElementById){
return;
}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){
this.setAttribute("swf",_1);
}
if(id){
this.setAttribute("id",id);
}
if(w){
this.setAttribute("width",w);
}
if(h){
this.setAttribute("height",h);
}
if(_5){
this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));
}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(c){
this.addParam("bgcolor",c);
}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){
this.setAttribute("redirectUrl",_a);
}
};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){
_16.push(key+"="+_18[key]);
}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){
_19+=key+"=\""+_1a[key]+"\" ";
}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){
_19+="flashvars=\""+_1c+"\"";
}
_19+="/>";
}else{
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");
}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){
_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";
}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){
_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";
}
_19+="</object>";
}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);
}
}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){
document.location.replace(this.getAttribute("redirectUrl"));
}
}
return false;
}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){
var _23=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){
_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}
}else{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}
catch(e){
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=new deconcept.PlayerVersion([6,0,21]);
axo.AllowScriptAccess="always";
}
catch(e){
if(_23.major==6){
return _23;
}
}
try{
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}
catch(e){
}
}
if(axo!=null){
_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}
}
return _23;
};
deconcept.PlayerVersion=function(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){
return false;
}
if(this.major>fv.major){
return true;
}
if(this.minor<fv.minor){
return false;
}
if(this.minor>fv.minor){
return true;
}
if(this.rev<fv.rev){
return false;
}
return true;
};
deconcept.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){
var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));
}
}
}
return "";
}};
deconcept.SWFObjectUtil.cleanupSWFs=function(){
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){
_2d[i].style.display="none";
for(var x in _2d[i]){
if(typeof _2d[i][x]=="function"){
_2d[i][x]=null;
}
}
}
};
if(typeof window.onunload=="function"){
var oldunload=window.onunload;
window.onunload=function(){
deconcept.SWFObjectUtil.cleanupSWFs();
oldunload();
};
}else{
window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;
}
if(Array.prototype.push==null){
Array.prototype.push=function(_30){
this[this.length]=_30;
return this.length;
};
}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;
function getFlashJsObject(_19d){
if(navigator.appName.indexOf("Microsoft")!=-1){
return window[_19d];
}else{
return document[_19d];
}
}
function loadPlaylist(p){
this.fan.getFileData(p);
}
function playVideoByVideoAndConfig(s){
s=unescape(s);
a=s.split("&");
video=a[0].split("=")[1];
config=a[1].split("=")[1];
this.fan.playByVideoAndConfig(video,config);
}
function loadPlaylistByConfig(s){
this.fan.loadPlaylistByConfig(s);
}
function setCallBack(_1a1,_1a2){
this.fan.setCallBack(_1a1,_1a2);
}
function playVideoById(id){
this.fan.playVideoById(id);
}
function getCurrentMediaId(){
return this.fan.getCurrentMediaId();
}
function getCurrentPlaylistName(){
return this.fan.getCurrentPlaylistName();
}
function getCurrentPlayheadTime(){
return this.fan.getCurrentPlayheadTime();
}
function getInitConfigFile(){
return this.fan.getInitConfigFile();
}
function pauseVideo(){
this.fan.pauseVideo();
}
function resetVideoPlayer(){
this.fan.resetVideoPlayer();
}
function showClickToPlayScreen(){
this.fan.showClickToPlayScreen();
}
function getCurrentMediaIndex(){
return this.fan.getCurrentMediaIndex();
}
function JSFan(s){
this.fan=getFlashJsObject(s);
this.loadPlaylist=loadPlaylist;
this.playVideoByVideoAndConfig=playVideoByVideoAndConfig;
this.loadPlaylistByConfig=loadPlaylistByConfig;
this.playVideoById=playVideoById;
this.setCallBack=setCallBack;
this.getCurrentMediaId=getCurrentMediaId;
this.getCurrentPlaylistName=getCurrentPlaylistName;
this.getCurrentPlayheadTime=getCurrentPlayheadTime;
this.pauseVideo=pauseVideo;
this.showClickToPlayScreen=showClickToPlayScreen;
this.getCurrentMediaIndex=getCurrentMediaIndex;
this.resetVideoPlayer=resetVideoPlayer;
this.getInitConfigFile=getInitConfigFile;
}
var f;
function fanReady(){
f=new JSFan("miniFan");
f.loadPlaylistByConfig("/config/common/fan/music.xml");
f.setCallBack("videoChosen","onNewVideo");
f.showClickToPlayScreen();
}
function onNewVideo(){
var idx=Number(f.getCurrentMediaIndex());
unsetNowPlaying();
setNowPlaying(idx);
}
function fanPlayVideoById(id){
f.playVideoById(id);
}
function launchMidFan(){
var _1a7=f.getCurrentMediaId();
var pl=f.getCurrentPlaylistName();
var _1a9=f.getCurrentPlayheadTime();
var _1aa=f.getInitConfigFile();
window.open("/providers/fan/popup.html?v="+_1a7+"&pl="+pl+"&seekTo="+_1a9+"&viewmode=fullScreenMode&config="+_1aa,"thefan","scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes,width=560,height=625");
f.resetVideoPlayer();
unsetNowPlaying();
}
var testStr=document.domain+"/music/";
var docStr=String(window.location);
if((docStr.indexOf(testStr)!=-1)&&(docStr.indexOf("redirectUrl")==-1)){
addLoadEvent(modifyVideosList);
}
function modifyVideosList(){
if(is_ie&&is_mac){
return false;
}
var s=document.getElementById("sidebar");
if(s==null){
return false;
}
var d=s.getElementsByTagName("div")[1];
var fv=document.getElementById("fanvideo");
if(fv==null){
return false;
}
var f=document.createElement("div");
f.setAttribute("id","inline_fan_container");
d.insertBefore(f,fv);
var _1af=deconcept.SWFObjectUtil.getPlayerVersion()["major"];
_1af=Number(_1af);
if(loggedin||isInNetwork){
if(_1af>7){
var _1b0=document.createElement("p");
_1b0.setAttribute("id","fanenlarge");
var lnk=document.createElement("a");
lnk.setAttribute("href","javascript:launchMidFan()");
var _1b2=document.createTextNode("Enlarge");
lnk.appendChild(_1b2);
_1b0.appendChild(lnk);
f.appendChild(_1b0);
var inF=document.createElement("div");
inF.setAttribute("id","inline_fan");
inF.setAttribute("title","Click to launch the Fan");
f.appendChild(inF);
var _1b4=document.createElement("div");
var so=new SWFObject("/swf/fan/miniFan.swf?width=180&height=160&jsConnection=true&config=/config/fan/properties_minifan.xml","miniFan","180","160","8","#FFFFFF","true");
so.write("inline_fan");
var _1b6=fv.getElementsByTagName("a");
for(var i=0;i<_1b6.length-1;i++){
_1b6[i].setAttribute("rel","");
_1b6[i].setAttribute("title","Click to play video");
_1b6[i].onclick=function(){
unsetNowPlaying();
addClass(this.parentNode.parentNode,"nowplaying");
addPlayImage(this.parentNode.parentNode);
var _1b8=this.getAttribute("href");
var vStr=_1b8.split("v=")[1];
vStr=vStr.split("&")[0];
fanPlayVideoById(vStr);
return false;
};
}
var dl=fv.getElementsByTagName("dl");
addClass(dl[0],"first");
for(i=0;i<5;i++){
addClass(dl[i],"playlist");
}
addClass(fv,"playlist");
}else{
var so=new SWFObject("/swf/fan/miniFanUpdater.swf","miniFanUpdater","180","160","8","#FFFFFF","true");
so.write("inline_fan_container");
f.className="inlineFanMessaging";
}
}else{
if(_1af>7){
var _1bb=document.createElement("img");
_1bb.setAttribute("src","/images/global/signinforinlinefan.gif");
_1bb.onclick=function(){
document.location.href="/signin.jsp?redirectUrl="+document.location.href;
};
f.appendChild(_1bb);
f.className="inlineFanMessaging";
}else{
var so=new SWFObject("/swf/fan/miniFanUpdater.swf","miniFanUpdater","180","160","8","#FFFFFF","true");
so.write("inline_fan_container");
f.className="inlineFanMessaging";
}
}
}
function unsetNowPlaying(){
var fv=document.getElementById("fanvideo");
var dl=fv.getElementsByTagName("dl");
if(fv==null){
return false;
}
for(var i=0;i<dl.length;i++){
removeClass(dl[i],"nowplaying");
}
var _1bf=document.getElementById("fv-nowplaying-dd");
if(_1bf!=null){
_1bf.parentNode.removeChild(_1bf);
}
}
function setNowPlaying(idx){
var fv=document.getElementById("fanvideo");
var dl=fv.getElementsByTagName("dl");
if(fv==null){
return false;
}
addClass(dl[idx],"nowplaying");
addPlayImage(dl[idx]);
}
function addPlayImage(_1c3){
var d=document.createElement("dd");
var dt=document.createTextNode("Now Playing");
d.appendChild(dt);
d.className="fv-nowplaying";
d.setAttribute("id","fv-nowplaying-dd");
_1c3.appendChild(d);
}
if(((document.location.hostname.indexOf("www.comcast.net")!=-1)||(document.location.hostname.indexOf("preview.comcast.net")!=-1))&&(document.location.href.indexOf(".comcast.net/cobrand")==-1)){
var _networkDebug=false;
var isInNetwork=false;
var hasIsInNetworkCookieSet=false;
var networkCookie=GetCookie("ISINNETWORK");
if(networkCookie!=""){
var isInNetworkCheck=GetCrumb(networkCookie,"network");
isInNetwork=(isInNetworkCheck=="comcast")||(networkCookie=="comcast");
if(_networkDebug){
alert("isInNetworkCheck="+isInNetworkCheck);
}
hasIsInNetworkCookieSet=true;
}
if(_networkDebug){
alert("isInNetwork="+isInNetwork+",hasIsInNetworkCookieSet="+hasIsInNetworkCookieSet+",networkCookie="+networkCookie);
}
if(!hasIsInNetworkCookieSet){
window.location="/CheckIsInNetwork?redirectUrl="+document.URL;
}
}
var dcsTesting=false;
if(dcsTesting&&isProduction()){
dcsTesting=false;
}
var dcsHTML=0;
var dcsPOLL=1;
var dcsEXPLORE=2;
var dcsEXPRESS=3;
var dcsLITE=4;
var dcsDomain="ssdc.comcast.net";
var dcsURI="";
var dcsTitle="";
var dcsHeadlines="";
var dcsModules="";
var dcsBanners="";
var dcsRef="";
var gImages=new Array;
var gIndex=0;
var DCS=new Object();
var WT=new Object();
var COMCAST=new Object();
function dcsClearValues(){
dcsID="";
dcsURI="";
dcsTitle="";
dcsModules="";
dcsBanners="";
dcsRef="";
dcsSIP=window.location.hostname;
}
function setModule(name){
if(dcsModules.length==0){
dcsModules=name;
}else{
dcsModules+=";"+name;
}
}
function setHeadlines(name){
if(dcsHeadlines.length==0){
dcsHeadlines=name;
}else{
dcsHeadlines+=";"+name;
}
}
function setBanner(name){
if(dcsBanners.length==0){
dcsBanners=name;
}else{
dcsBanners+=";"+name;
}
}
function addBanner(name){
setBanner(name);
}
function setTitle(_1ca){
if(typeof _1ca=="undefined"||_1ca==null){
_1ca="";
}
dcsTitle=_1ca;
}
function setURI(uri){
if(typeof uri=="undefined"||uri==null){
uri="";
}
dcsURI=uri;
}
function setReferrer(ref){
if(typeof ref=="undefined"||ref==null){
ref="";
}
dcsRef=ref;
}
function getID(type){
var id="dcskz8vvr00000c9f3oy3ybgs_3d5h";
if(isProduction()){
switch(type){
case dcsPOLL:
id="dcs7bjhh110000oyioyaka1kl_7j9u";
break;
case dcsHTML:
id="dcskz8vvr00000c9f3oy3ybgs_3d5h";
break;
case dcsEXPLORE:
id="dcs8ir0f010000oyioyaka1kl_8j7n";
break;
case dcsEXPRESS:
id="dcsc5owwq00000kv5xgto5tru_4j8e";
break;
case dcsLITE:
id="dcsigvpg110000oyioyaka1kl_7j7v";
break;
}
}else{
id="dcscah7h110000oyioyaka1kl_7j8d";
}
return id;
}
function getModule(){
return append("CM.mn",dcsModules);
}
function getHeadlines(){
return append("CM.hl",dcsHeadlines);
}
function getBanner(){
return append("WT.ad",dcsBanners);
}
function getTitle(){
return append("WT.ti",dcsTitle);
}
function getURI(){
return append("dcsuri",dcsURI);
}
function getSIP(){
return append("dcssip",dcsSIP);
}
function getFlashVersion(){
return append("CM.flashver",actualVersion);
}
function getReferrer(){
if(dcsRef.length>0){
return append("dcsref",dcsRef);
}else{
if((window.document.referrer!="")&&(window.document.referrer!="-")){
return append("dcsref",new String(window.document.referrer));
}
}
return "";
}
function append(name,_1d0){
if(typeof _1d0=="undefined"||_1d0==null){
_1d0="";
}else{
_1d0+="";
}
if(_1d0.length>0){
return "&"+name+"="+escape(_1d0);
}else{
return "";
}
}
function dcsComcast(){
var _1d1="";
for(name in COMCAST){
if(COMCAST[name]){
_1d1+=append(name,COMCAST[name]);
}
}
return _1d1;
}
function dcsDCS(){
var _1d2="";
for(name in DCS){
if(DCS[name]){
if(name=="dcsuri"){
var str=DCS[name];
var _1d4="/qry/myhome";
var _1d5=str.indexOf(_1d4);
if(_1d5>=0){
_1d5+=_1d4.length;
DCS[name]=str.substring(0,_1d5);
}
}
_1d2+=append(name,DCS[name]);
}
}
return _1d2;
}
function dcsWT(){
var _1d6="";
for(name in WT){
if(WT[name]){
_1d6+=append("WT."+name,WT[name]);
}
}
return _1d6;
}
function dcsTag(){
var _1d7="";
_1d7+=dcsComcast();
_1d7+=dcsDCS();
_1d7+=dcsWT();
_1d7+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
dcsTrack(_1d7);
}
function dcsCreateImage(_1d8){
if(dcsTesting){
displayInWindow(_1d8);
}else{
}
}
function dcsTrack(_1d9,type){
if(typeof type=="undefined"){
type=dcsHTML;
}
var path="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+dcsDomain+"/"+getID(type)+"/dcs.gif?";
if(_1d9.indexOf("&")==0){
_1d9=_1d9.substring(1);
}
path+=_1d9;
if(path.length>2040&&navigator.userAgent.indexOf("MSIE")>=0){
path=path.substring(0,2040)+"&WT.tu=1";
}
dcsCreateImage(path);
dcsClearValues();
}
function dcsVar(){
var _1dc=new Date();
WT.tz=_1dc.getTimezoneOffset()/60*-1;
WT.bh=_1dc.getHours();
WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
if(typeof (screen)=="object"){
WT.cd=screen.colorDepth;
WT.sr=screen.width+"x"+screen.height;
}
if(typeof (navigator.javaEnabled())=="boolean"){
WT.jo=navigator.javaEnabled()?"Yes":"No";
}
WT.ti=document.title;
WT.js="Yes";
if(typeof (gVersion)!="undefined"){
WT.jv=gVersion;
}
DCS.dcsuri=window.location.pathname;
DCS.dcsqry=window.location.search;
if((window.document.referrer!="")&&(window.document.referrer!="-")){
if(!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
DCS.dcsref=window.document.referrer;
}
}
DCS.dcssip=window.location.hostname;
DCS.dcsdat=_1dc.getTime();
}
function dcsMeta(){
var _1dd;
if(document.all){
_1dd=document.all.tags("meta");
}else{
if(document.documentElement){
_1dd=document.getElementsByTagName("meta");
}
}
if(typeof (_1dd)!="undefined"){
for(var i=0;i<_1dd.length;i++){
myMeta=_1dd.item(i);
if(myMeta.name){
if(myMeta.name.indexOf("WT.")==0){
WT[myMeta.name.substring(3)]=myMeta.content;
}else{
if(myMeta.name.indexOf("DCS.")==0){
DCS[myMeta.name.substring(4)]=myMeta.content;
}else{
COMCAST[myMeta.name]=myMeta.content;
}
}
}
}
}
}
function castBoolean(_1df){
if(typeof _1df!="boolean"){
_1df=castString(_1df).toLowerCase();
if(_1df.length==0||_1df=="true"||_1df=="1"){
_1df=true;
}else{
_1df=false;
}
}
return _1df;
}
function castString(_1e0){
if(typeof _1e0=="undefined"||_1e0==null){
_1e0="";
}else{
if(typeof _1e0!="string"){
_1e0+="";
}
}
return _1e0;
}
function castInt(_1e1){
if(isNaN(_1e1)){
_1e1=-1;
}else{
_1e1=parseInt(_1e1,10);
}
return _1e1;
}
function displayInWindow(str){
if(dcsTesting){
var win=window.open("","","height=400,width=400,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
win.document.writeln("<html><head><title>Tracking Testing</title></head><body><textarea style=\"height:375px;width:375px;\">"+str+"</textarea></body></html>");
}
}
function displayArguments(){
if(dcsTesting){
var _1e4="";
for(var x=0;x<arguments.length;x++){
if(arguments[x].length>0){
_1e4+=x+": "+arguments[x]+"\n";
}
}
if(_1e4.length>0){
displayInWindow("Parameters:<br />"+_1e4);
}
}
}
function wtParseParamString(_1e6){
var args=new Object();
var _1e8=_1e6.split("&");
for(var i=0;i<_1e8.length;i++){
var pos=_1e8[i].indexOf("=");
if(pos==-1){
continue;
}
var _1eb=_1e8[i].substring(0,pos);
var _1ec=_1e8[i].substring(pos+1);
args[_1eb]=unescape(_1ec);
}
return args;
}
function wtGetParam(_1ed,_1ee){
var _1ef=wtParseParamString(_1ed);
var _1f0=castString(_1ef[_1ee]);
return _1f0;
}
function trackBanners(uri,name,_1f3,url,_1f5,_1f6){
uri=castString(uri);
name=castString(name);
_1f3=castString(_1f3);
url=castString(url);
_1f6=castString(_1f6);
_1f5=castBoolean(_1f5);
if(uri.indexOf(".banner")==-1){
uri+=".banner";
}
if(name.length==0){
name="UnknownName";
}
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _1f7=new Date();
DCS.dcsdat=_1f7.getTime();
if(_1f3.length==0){
_1f3=window.location.href;
}
DCS.dcsref=_1f3;
var _1f8=append("WT.ac",name)+dcsDCS()+_1f6;
dcsTrack(_1f8);
if(url.length>0){
if(_1f5){
window.open(url,"tracking");
}else{
window.location=url;
}
}
}
function trkLink(uri,_1fa,_1fb,url,_1fd,_1fe,_1ff,_200,_201){
uri=castString(uri);
_1fa=castString(_1fa);
_1fb=castString(_1fb);
url=castString(url);
_1fd=castString(_1fd);
_201=castString(_201);
_1fe=castBoolean(_1fe);
if(uri.indexOf(".exlink")==-1){
if(_1fe){
uri+=".inlink";
}else{
uri+=".exlink";
}
}
setTitle(_1fa);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _202=new Date();
DCS.dcsdat=_202.getTime();
if(_1fb.length==0){
_1fb=window.location.href;
}
DCS.dcsref=_1fb;
var _203=getTitle()+dcsDCS()+_1fd+((url.length>0)?"&CM.url="+url:"");
dcsTrack(_203);
if(url.length>0){
if(_1fe){
window.location=url;
}else{
_1ff=castInt(_1ff);
_200=castInt(_200);
var _204="";
if(_1ff>0){
_204+=(_204!=null&&_204.length>0)?",":"";
_204+="width="+_1ff;
}
if(_200>0){
_204+=(_204!=null&&_204.length>0)?",":"";
_204+="height="+_200;
}
if(_201!=null&&_201.length>0){
_204+=(_204!=null&&_204.length>0)?",":"";
_204+=_201;
}
window.open(url,"tracking",_204);
}
}
}
function trkExLink(uri,_206,_207,url,_209){
trkLink(uri,_206,_207,url,_209,false);
}
function linkTracking(name,_20b,_20c,_20d){
trkLink(name,"Old Tracking","",_20b,"",false);
}
function trackExternalLink(uri,_20f,_210,url,_212){
trkLink(uri,_20f,_210,url,_212,false);
}
function trackPoll(uri,_214){
uri=castString(uri);
_214=castString(_214);
setURI(uri);
setTitle("Comcast Polls");
var _215=getURI()+getTitle()+"&"+_214;
dcsTrack(_215,dcsPOLL);
}
function trackPortal(_216){
var _217="";
_217+=dcsComcast();
_217+=dcsDCS();
_217+=dcsWT();
_217+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
_216=castString(_216);
_216=unescape(_216);
_216=_217+_216;
if(_216.indexOf("CM.site=explore")>-1){
dcsTrack(_216,dcsEXPLORE);
}else{
if(_216.indexOf("CM.site=express")>-1){
dcsTrack(_216,dcsEXPRESS);
}else{
if(_216.indexOf("CM.site=lite")>-1){
dcsTrack(_216,dcsLITE);
}else{
dcsTrack(_216);
}
}
}
}
function trackPortalLink(_218,url,trgt){
var _21b="";
_21b+=dcsComcast();
_21b+=dcsDCS();
_21b+=dcsWT();
_21b+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
_218=castString(_218);
_218=unescape(_218);
_218=_21b+_218;
url=castString(url);
url=unescape(url);
trgt=castString(trgt);
trgt=unescape(trgt);
if(_218.indexOf("CM.site=explore")>-1){
dcsTrack(_218,dcsEXPLORE);
}else{
if(_218.indexOf("CM.site=express")>-1){
dcsTrack(_218,dcsEXPRESS);
}else{
if(_218.indexOf("CM.site=lite")>-1){
dcsTrack(_218,dcsLITE);
}else{
dcsTrack(_218);
}
}
}
window.open(url,trgt);
}
function pTopNav(_21c){
var uri="/topnav.swf";
var _21e=wtGetParam(_21c,"r");
var _21f=wtGetParam(_21c,"l");
var _220=wtGetParam(_21c,"e");
_220=stringReplace(_220,";;;","&")+"&CM.gc="+wtGetParam(_21c,"i");
if(_220.indexOf("&sw=1")>-1){
_220=stringReplace(_220,"&sw=1","");
trkLink(uri,"",_21e,_21f,_220,true);
}else{
var _221=wtGetParam(_21c,"w");
var _222=wtGetParam(_21c,"h");
var _223=wtGetParam(_21c,"f");
_220=stringReplace(_220,"&sw=0","");
trkLink(uri,"",_21e,_21f,_220,false,_221,_222,_223);
}
}
function pCoverL(_224){
_224=castString(_224);
var uri=wtGetParam(_224,"u");
var _226=wtGetParam(_224,"t");
var _227=wtGetParam(_224,"r");
var _228=wtGetParam(_224,"l");
var _229=wtGetParam(_224,"e");
_229=unescape(_229);
_229=stringReplace(_229,";;;","&");
if(_229.indexOf("&sw=1")>-1){
_229=stringReplace(_229,"&sw=1","");
trkLink(uri,_226,_227,_228,_229,true);
}else{
_229=stringReplace(_229,"&sw=0","");
trkLink(uri,_226,_227,_228,_229,false);
}
}
function pCover(_22a){
_22a=castString(_22a);
var uri=wtGetParam(_22a,"u");
var _22c=wtGetParam(_22a,"t");
var _22d=wtGetParam(_22a,"r");
var _22e=wtGetParam(_22a,"e");
_22e=unescape(_22e);
_22e=stringReplace(_22e,";;;","&");
trackFlash(uri,_22c,_22d,_22e);
}
function pFan(_22f){
var _230=wtGetParam(_22f,"ts");
var uri=_230+"/fan"+wtGetParam(_22f,"u")+".swf";
var _232=wtGetParam(_22f,"t");
var _233="/fan"+wtGetParam(_22f,"r")+".swf";
var _234=wtGetParam(_22f,"e");
_234=stringReplace(_234,";;;","&");
trackFlash(uri,_232,_233,_234);
}
function pFanL(_235){
var _236=wtGetParam(_235,"ts");
var uri=_236+"/fan"+wtGetParam(_235,"u")+".swf";
var _238=wtGetParam(_235,"t");
var _239="/fan"+wtGetParam(_235,"r")+".swf";
var _23a=wtGetParam(_235,"l");
var _23b=wtGetParam(_235,"e");
_23b=stringReplace(_23b,";;;","&");
trkLink(uri,_238,_239,_23a,_23b,false);
}
function trackFlash(uri,_23d,_23e,_23f){
uri=castString(uri);
_23d=castString(_23d);
_23e=castString(_23e);
_23f=castString(_23f);
setTitle(_23d);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _240=new Date();
DCS.dcsdat=_240.getTime();
if(_23e.length==0){
_23e=window.location.href;
}
DCS.dcsref=_23e;
var _241=getTitle()+dcsDCS()+_23f;
dcsTrack(_241);
}
dcsVar();
dcsMeta();
function isProduction(){
var dom=new String(location.hostname);
if(dom.indexOf("comcast.net")>=0||dom.indexOf("attbi.com")>=0){
return true;
}else{
return false;
}
}
var _hbEC=0;
var _hbE=new Array;
function _hbEvent(a,b){
b=_hbE[_hbEC++]=new Object();
b._N=a;
b._C=0;
return b;
}
var hbx=_hbEvent("pv");
hbx.vpc="HBX0100u";
hbx.gn="serviceh.comcast.net";
if(isProduction()){
hbx.acct="DM550914NIBE";
}else{
hbx.acct="DM550618GPRV";
}
hbx.pn="PUT+PAGE+NAME+HERE";
hbx.mlc="CONTENT+CATEGORY";
hbx.pndef="title";
hbx.ctdef="full";
hbx.fv="";
hbx.lt="auto";
hbx.dlf="n";
hbx.dft="n";
hbx.elf="n";
function changeFlashPage(_245){
_hbPageView(_245,hbx.pn);
}


