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_ie7=(is_ie&&(is_major==4)&&(agt.indexOf("msie 7.")!=-1));
var is_ie7up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5&&!is_ie5_5&&!is_ie6);
var is_iecc=(is_ie&&(agt.indexOf("comcast")!=-1));
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="";
if(document.location.href.indexOf("wwwj")!=-1){
domain="http://www.comcast.net";
}else{
domain="http://"+document.domain;
}
var sessiondomain=getPartialDomain(domain,".comcast.net");
function getPartialDomain(_1,_2){
var _3=_2;
var _4=_1.split("/");
if(_4.length>=3){
temp=_4[2].split(".");
if(temp.length>1){
temp[0]="";
_3=temp.join(".");
}
}
return _3;
}
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/win") != -1) {
	document.location.href = "http://www.comcast.net/win/";
}
else {
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(new String(document.location.pathname).indexOf("/games/invasion/setup/")!=-1){
document.location.href="http://gameinvasion.comcast.net/gameinvasion/setup/";
}else{
if(new String(document.location.pathname).indexOf("/games/invasion/sales/")!=-1){
document.location.href="http://gameinvasion.comcast.net/gameinvasion/sales/";
}else{
if(new String(document.location.pathname).indexOf("/games/invasion/")!=-1){
document.location.href="http://gameinvasion.comcast.net";
}
}
}
if(document.location.pathname=="/gameinvasion/setup"){
document.location.href="http://gameinvasion.comcast.net/gameinvasion/setup/";
}else{
if(document.location.pathname=="/gameinvasion/sales"){
document.location.href="http://gameinvasion.comcast.net/gameinvasion/sales/";
}else{
if(document.location.pathname=="/gameinvasion"){
document.location.href="http://gameinvasion.comcast.net";
}
}
}
var tabData={active:[],types:{dvd:[0,31,66],movies:[0,80],playgames:[0,87,218]}};
function getRedirectArguments(){
var _5=window.location;
if(new String(_5).indexOf("?")==-1){
return "?redirectUrl="+document.location;
}else{
var _6="?redirectUrl="+_5.protocol+"//"+_5.host+_5.pathname;
var _7=_5.search.substr(1,_5.search.length);
var _8=_7.split("&");
if(_8.length){
for(i=0;i<_8.length;i++){
_6+="&redirectArg"+(i+1)+"="+_8[i];
}
}
return _6;
}
}
function setSigninRedirect(_9){
var _a=document.getElementById(_9);
if(_a==null){
return false;
}
_a.href=domain+"/signin.jsp"+getRedirectArguments();
}
function getGreeting(){
var _b=new Date();
var _c=_b.getHours();
var _d="<span>";
if(_c<12){
_d+="Good Morning";
}else{
if(_c<17){
_d+="Good Afternoon";
}else{
_d+="Good Evening";
}
}
return _d;
}
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(_e){
var _f=(new Date()).getTime();
var dt=makeDate(_e);
var _11=dt.getTime();
var _12=_f-_11;
var _13="";
if(_12>dy){
_13=days[dt.getDay()]+" ";
_13+=months[dt.getMonth()]+" ";
_13+=dt.getDate()+", ";
min=dt.getMinutes();
if(min<10){
min="0"+min;
}
if(dt.getHours()>12){
_13+=(dt.getHours()-12)+":"+min+" ";
_13+="PM";
}else{
_13+=dt.getHours()+":"+min+" ";
_13+="AM";
}
}else{
if(_12>hr){
var tm=Math.round(_12/hr);
var s=(tm>1)?"s":"";
_13=tm+" hour"+s+" ago";
}else{
if(_12>mn){
var tm=Math.round(_12/mn);
var s=(tm>1)?"s":"";
_13=tm+" minute"+s+" ago";
}
}
}
return _13;
}
function makeDate(_16){
var _17=_16.substr(0,4);
var _18=_16.substr(4,2)-1;
var day=_16.substr(6,2);
var _1a=_16.substr(9,2);
var _1b=_16.substr(11,2);
var dt=new Date();
dt.setUTCFullYear(_17);
dt.setUTCMonth(_18);
dt.setUTCDate(day);
dt.setUTCHours(_1a);
dt.setUTCMinutes(_1b);
return dt;
}
function getArgs(){
var _1d=new Object();
try{
var _1e=top.location.search.substring(1);
}
catch(e){
var _1e="";
}
var _1f=_1e.split("&");
for(var i=0;i<_1f.length;i++){
var pos=_1f[i].indexOf("=");
if(pos==-1){
continue;
}
var _22=_1f[i].substring(0,pos);
var _23=_1f[i].substring(pos+1);
_1d[_22]=unescape(_23);
}
return _1d;
}
function getParam(_24){
var _25=getArgs();
var _26=_25[_24];
if(typeof _26=="undefined"){
_26="";
}
return _26;
}
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(_28,_29,_2a){
var _2b;
var _2c="";
var _2d="";
for(var x=0;x<_29.length;x++){
_2c=_29.substr(x,1);
if(_2c=="$"||_2c=="^"||_2c=="*"||_2c=="("||_2c==")"||_2c=="+"||_2c=="?"||_2c=="\\"){
_2c="\\"+_2c;
}
_2d+=_2c;
}
_2b=new RegExp(_2d,"gi");
results=_28.replace(_2b,_2a);
return results;
}
function trim(_2f){
if(typeof _2f!="string"){
return _2f;
}
var _30=_2f;
var ch=_30.substring(0,1);
while(ch==" "){
_30=_30.substring(1,_30.length);
ch=_30.substring(0,1);
}
ch=_30.substring(_30.length-1,_30.length);
while(ch==" "){
_30=_30.substring(0,_30.length-1);
ch=_30.substring(_30.length-1,_30.length);
}
while(_30.indexOf("  ")!=-1){
_30=_30.substring(0,_30.indexOf("  "))+_30.substring(_30.indexOf("  ")+1,_30.length);
}
return _30;
}
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(_32){
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(_33,_34){
if(_34!=null){
pagename=_34;
}
if((document.getElementById("comcastnet").className.indexOf("lite")==-1)){
if((_33=="navbar"&&loggedin)||(_33=="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 _35=new String(window.location.pathname);
var _36=_35.split("/");
return _36[1];
}
function getChannelName(){
var _37=(iscobrand==true)?cobrand:pagename;
var _38=new String(window.location.pathname).split("/");
var _39=(_37=="qry");
if(_39){
_37="search/?tab=web";
}
var _3a=new String(location.hostname).split(".");
if(_3a[0]=="acctmgt"){
_37="account";
}else{
if(_3a[0]=="shopping"||(new String(window.location.pathname).indexOf("pricegrabber")!=-1)){
_37="shopping";
}
}
return _37;
}
function navTracking(){
if(document.getElementById!=null){
var _3b=document.getElementById("nav");
if(_3b!=null){
var _3c=_3b.getElementsByTagName("a");
for(i=0;i<_3c.length;i++){
if(_3c[i].className=="menu"){
continue;
}
var _3d=new String(_3c[i].href);
if(_3d.indexOf("javascript:")!=-1){
continue;
}
_3c[i].href+=((_3d.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(_3e){
if(_3e!="videosearch"){
document.location.href="/qry/"+_3e+"?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 _40="status=yes,toolbar=no,scrollbars=1";
var _41=_40+",width=500,height=600";
var _42=new String(frm.q.value).split(" ");
var _43=frm.action+"?q="+_42.join("+");
window.open(_43,"eva",_41);
return false;
}
function externalLinks(){
if(!document.getElementsByTagName){
return;
}
var _44=document.getElementsByTagName("a");
for(var i=0;i<_44.length;i++){
var _46=_44[i];
var _47="scrollbars=no,status=no,location=no,toolbar=no,favorites=no,address=no,menubar=no,resizable=yes";
var _48=_47+",width=650,height=320";
var _49=_47+",width=560,height=625";
var _4a=_47+",width=560,height=625";
var _4b="height=600,width=500,status=yes,toolbar=no,scrollbars=1";
var _4c=". This link will open in a new window.";
var _4d=". This link will open in a new window.";
var _4e="View a photo slideshow starting with this picture. This link will open in a new window.";
if(window.self.location!=window.top.location){
if(_46.getAttribute("target")!="_blank"){
_46.setAttribute("target","_top");
}
}
if(_46.getAttribute("rel")){
if(_46.getAttribute("rel").indexOf("external")!=-1){
_46.target="_blank";
}
if(_46.getAttribute("rel").indexOf("popup")!=-1){
_46.onclick=function(){
var _4f=(this.href.indexOf("Comic")!=-1||this.href.indexOf("comic")!=-1)?_48:_47;
window.open(this.href,this.rel,_4f);
return false;
};
}
if(_46.getAttribute("rel")=="fan"){
_46.onclick=function(){
window.open(this.href,"fan",_49);
return false;
};
}
if(_46.getAttribute("rel")=="ask"){
_46.onclick=function(){
window.open(this.href,"eva",_4b);
return false;
};
}
if(_46.getAttribute("rel").indexOf("symbollookup")!=-1){
_46.onclick=function(){
var _50=this.href;
var _51=document.getElementById("searchfor");
if(_51!=null){
_50+="?searchfor="+_51.value;
}
window.open(_50,this.rel,_4b);
return false;
};
}
if(_46.className&&_46.className.indexOf("channel")!=-1){
_46.onclick=function(){
subnav(this.getAttribute("rel"),this);
return false;
};
}
if(_46.getAttribute("rel")=="opener"){
_46.onclick=function(){
opener.document.location.href=this.getAttribute("href");
self.close();
return false;
};
}
}
}
}
function subnav(_52,_53){
if(!document.getElementById){
return;
}
var _52=document.getElementById(_52);
if(_52.style.display=="none"){
_52.style.display="";
_53.className=stringReplace(_53.className,"menu","menu-s");
}else{
_52.style.display="none";
_53.className=stringReplace(_53.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 _54=document.getElementsByTagName("body")[0];
if(_54.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 _56="<div id=\"assistant-modify\"><div><a href=\"#\"><span>Modify Assistant</span></a></div></div>";
var _57="<div class=\"skip\"><a href=\"#a-assistant\">Skip this Flash Movie</a></div>";
var _58="<a name=\"a-assistant\"></a><div class=\"skip\"><a href=\"#a-pagetop\">Back to Top</a><br /></div>";
var _59="<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 _5a="<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 _5b="<div id=\"assistant-teaser\"><iframe src=\"/providers/assistant/teaser/index.html\" scrolling=\"no\" frameborder=\"0\" width=\"200\" height=\"300\"></iframe></div>";
var _5c="?is=common/assistant";
_5c+="&un="+user;
if((hasRightVersion)&&(loggedin)){
document.write(pop);
document.write(_57);
document.write("<div id=\"assistant-flash\">");
writeFlash("assistantFlash","/Canvas.swf"+_5c,200,1900,"#19314B","Window");
document.write("</div>");
document.write(_58);
}else{
if((hasRightVersion)&&(isInNetwork)){
document.write(pop);
writeSkyBan("assistant");
}else{
if((hasRightVersion)&&((!isInNetwork)&&(!loggedin))){
writeSkyBan("assistant");
}
}
}
}
}
function writePopupAssistant(){
if((hasRightVersion)&&(loggedin)){
self.focus();
var _5d="?is=common/assistant";
_5d+="&un="+user;
var _5e=600;
if(typeof (window.innerWidth)=="number"){
_5e=window.innerHeight;
}else{
if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){
_5e=document.documentElement.clientHeight;
}else{
if(document.body&&(document.body.clientWidth||document.body.clientHeight)){
_5e=document.body.clientHeight;
}
}
}
writeFlash("assistantFlash","/Canvas.swf"+_5d,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(_60){
if(hasRightVersion){
var _61="?channel="+_60+"&";
_61+="isLoggedIn=true&";
h=466;
_61+="tod="+getParam("tod")+"&lvl="+getParam("lvl");
document.write("<div id=\"cover\">");
writeFlash("coverFlash","/swf/classic/cover/CoverSA.swf"+_61,592,h);
document.write("</div>");
}
}
function writePoll(_62){
}
function writeScores(_63,_64){
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 _65=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="+_65+"&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="+_65+"\" 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 _66=new String(window.location.search);
_66=_66.substr(1);
if(_66.length>0){
_66+="&";
}
_66+="un="+GetCrumb(myportal,"em")+"&";
_66+="&is=express&";
_66+="ion="+isInNetwork+"&";
_66+=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=\""+_66+"\" />");
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=\""+_66+"\" 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(_68){
}
function hideTheFan(){
var _69=document.getElementById("fanLayer");
_69.style.left=-2500;
_69.style.display="none";
}
function popTheFan(vid,_6b){
window.open("/providers/fan/popup.html?"+vid+"&config="+_6b,"thefan","width=560,height=625");
}
function hideStatusMsg(){
document.getElementById("statusmsg").style.display="none";
}
function initTabs(){
if(document.getElementsByTagName){
var _6c=document.getElementsByTagName("dl");
for(i=0;i<_6c.length;i++){
if(!_6c[i].className||_6c[i].className!="tab-set"){
continue;
}
var _6d=new String(_6c[i].id).split("-")[2];
var _6e=new String(_6c[i].id).split("-")[3];
var _6f=new String(_6c[i].id).split("-");
var _70=(_6f[4]!=null)?_6f[4]:160;
tabData.active[_6e]={tabRefs:[],contentRefs:[],currTab:null,type:_6d};
var _71=new Date();
var _72=_71.getDay();
var _73=(_72==0||_72>4);
var _74=((_6e=="intheaters")&&_73);
var _75=0;
var _76=0;
var _77=null;
for(var o=0;o<_6c[i].childNodes.length;o++){
if(_6c[i].childNodes[o].nodeType==1){
var _79=new String(_6c[i].childNodes[o].nodeName).toLowerCase();
if(_79=="dt"){
tabData.active[_6e].tabRefs[_75]=_6c[i].childNodes[o];
if((_74&&_75==1)||_77==null){
_77=_6c[i].childNodes[o];
}
var _7a=tabData.types[_6d][_75];
var _7b=(tabData.types[_6d][_75+1]!=null)?tabData.types[_6d][_75+1]:null;
var _7c=(_7b!=null?_7b:_70)-_7a;
_76+=tabData.types[_6d][_75];
_6c[i].childNodes[o].id="tab-set-hdr-"+_6e+"-"+_75;
_6c[i].childNodes[o].style.backgroundImage="url(http://media3.comcast.net/images/headings/tabs-"+_6d+".gif)";
_6c[i].childNodes[o].style.backgroundPosition="-"+_7a+"px 0px";
_6c[i].childNodes[o].style.marginLeft=(_7a+"px");
_6c[i].childNodes[o].style.width=(_7c+"px");
_6c[i].childNodes[o].onclick=function(){
activateTab(this);
};
}else{
if(_79=="dd"){
tabData.active[_6e].contentRefs[_75]=_6c[i].childNodes[o];
if(!_75++){
_6c[i].childNodes[o].style.visiblity="visible";
}
}
}
}else{
lastTag=null;
}
}
if(_77!=null){
activateTab(_77);
}
}
}
}
function activateTab(_7d){
var _7e=new String(_7d.id).split("-");
var _7f=_7e[3];
var _80=tabData.active[_7f].type;
var _81=_7e[4];
if(tabData.active[_7f].currTab!=null){
var _82=tabData.active[_7f].currTab;
var _83=tabData.types[_80][_82];
tabData.active[_7f].tabRefs[_82].style.backgroundPosition="-"+_83+"px 0px";
tabData.active[_7f].contentRefs[_82].style.display="none";
}
var _84=tabData.types[_80][_81];
tabData.active[_7f].tabRefs[_81].style.backgroundPosition="-"+_84+"px -18px";
tabData.active[_7f].contentRefs[_81].style.display="block";
tabData.active[_7f].currTab=_81;
}
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(_87,_88){
var url=(_87=="3")?"http://hockeylive.comcast.net/player/wide/index.html?gameType=game"+_87:"http://hockeylive.comcast.net/player/index.jsp?gameType=game"+_87;
var win=(_87=="3")?"width=800,height=649":"width=730,height=688";
window.open(url,_87,"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,"eva","height=600,width=500,status=yes,toolbar=no,scrollbars=1");
void (0);
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(_8f){
var _90=window.onload;
if(typeof window.onload!="function"){
window.onload=_8f;
}else{
window.onload=function(){
_90();
_8f();
};
}
}
function addClass(_91,_92){
if(!_91.className){
_91.className=_92;
}else{
var _93=_91.className.split(" ");
for(var i=0;i<_93.length;i++){
if(_93[i]==_92){
return;
}
}
_91.className+=" "+_92;
}
}
function removeClass(_95,_96){
if(!_95.className){
return false;
}
var _97=_95.className.split(" ");
var _98=[];
for(var i=0;i<_97.length;i++){
if(_97[i]!=_96){
_98[i]=_97[i];
}
}
_95.className=_98.join(" ");
return true;
}
function getElementsByClassName(_9a,_9b,_9c){
var _9d=(_9b=="*"&&document.all)?document.all:_9a.getElementsByTagName(_9b);
var _9e=new Array();
_9c=_9c.replace(/\-/g,"\\-");
var _9f=new RegExp("(^|\\s)"+_9c+"(\\s|$)");
var _a0;
for(var i=0;i<_9d.length;i++){
_a0=_9d[i];
if(_9f.test(_a0.className)){
_9e.push(_a0);
}
}
return (_9e);
}
function toggleBlockElement(_a2,vis){
if(typeof (_a2)=="string"||typeof (_a2)=="number"){
var _a2=document.getElementById(_a2);
}
_a2.style.display=vis?"block":"none";
_a2.style.visibility=vis?"visible":"hidden";
}
function toggleInlineElement(_a4,vis){
if(typeof (_a4)=="string"||typeof (_a4)=="number"){
var _a4=document.getElementById(_a4);
}
_a4.style.display=vis?"inline":"none";
_a4.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 _a6=(typeof (setSearchFocus)!="undefined"&&!setSearchFocus);
var _a7=document.getElementById("user");
if(_a7!=null&&(pagename!="home")){
setTimeout("document.getElementById('user').focus();",1);
}else{
var _a8=true;
var _a9=[];
var _aa=document.getElementsByTagName("input");
for(var f=0;f<_aa.length;f++){
var _ac=getElementType(_aa[f]);
var _ad=_aa[f].name;
if(((_ac=="text"&&_ad=="user")||_ac=="password")&&(_aa[f].value!="")){
_a8=false;
continue;
}
}
if(_a8&&_a6){
_a8=false;
}
if(_a8){
setTimeout("document.getElementById('search-field').focus();",1);
}
}
if(is_firefox||_a6){
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 _af=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);
if(_af==null){
return;
}
var _b0=(_af.nodeName!=null)?new String(_af.nodeName).toLowerCase():"";
var _b1=(_af.type!=null)?new String(_af.type).toLowerCase():"";
if(_af.id!=null&&_af.id=="search-field"){
var _b2=parseInt(evt.keyCode);
if(_b2==13){
return;
}
if(_b2==38||_b2==40||_b2==33||_b2==34){
setTimeout("document.getElementById('search-field').blur();",1);
}
}else{
if((_b0=="input"&&(_b1=="text"||_b1=="password"))||_b0=="textarea"){
return;
}else{
if(evt.keyCode==null){
return;
}
var _b3=document.getElementById("search-field");
if(evt.keyCode>47&&evt.keyCode<112){
var _b4=String.fromCharCode(evt.keyCode)[evt.shiftKey?"toUpperCase":"toLowerCase"]();
if(!is_safari){
_b3.value+=_b4;
}
setTimeout("document.getElementById('search-field').focus();",1);
}
}
}
};
}
function getElementType(_b5){
if(_b5==null){
return false;
}
var _b6=_b5.type;
if(!_b6){
var _b7=_b5[0];
if(_b7==null){
return false;
}
var _b6=_b7.type;
if(!_b6){
return false;
}
}
return new String(_b6).toLowerCase();
}
function randomizeURL(url){
return url+((url.indexOf("?")!=-1)?"&random=":"?random=")+Math.floor(Math.random()*999999);
}
function disneyConnection(url){
var _ba="Welcome to Disney Connection!";
var _bb="disneyConnectionAuth";
var _bc="800";
var _bd="500";
var _be=(screen.width-_bc)/2;
var _bf=(screen.height-_bd)/2;
features="toolbar=yes,height="+_bd+",width="+_bc+",top="+_bf+",left="+_be+",scrollbars=yes,";
if(self.SymRealWinOpen){
window.open=SymRealWinOpen;
}
var uri="/kids/";
var _c1="";
var _c2="";
var _c3=false;
if(uri.indexOf(".exlink")==-1){
if(_c3){
uri+=".inlink";
}else{
uri+=".exlink";
}
}
setTitle(_ba);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _c4=new Date();
DCS.dcsdat=_c4.getTime();
if(_c1.length==0){
_c1=window.location.href;
}
DCS.dcsref=_c1;
var _c5=getTitle()+dcsDCS()+_c2+((url.length>0)?"&CM.url="+url:"");
dcsTrack(_c5);
if(url.length>0){
if(_c3){
window.location=url;
}else{
_bc=castInt(_bc);
_bd=castInt(_bd);
var _c6="";
if(_bc>0){
_c6+=(_c6!=null&&_c6.length>0)?",":"";
_c6+="width="+_bc;
}
if(_bd>0){
_c6+=(_c6!=null&&_c6.length>0)?",":"";
_c6+="height="+_bd;
}
if(features!=null&&features.length>0){
_c6+=(_c6!=null&&_c6.length>0)?",":"";
_c6+=features;
}
window.open(url,"tracking",_c6);
}
}
}
window.onload=pageLoad;
function cacheImage(_c7){
var _c8=new Image();
_c8.src=_c7;
return _c8;
}
function appendBreadcrumbList(_c9){
if(document.getElementById("breadcrumb2")){
for(x=0;x<_c9.length;x++){
appendBreadcrumb(_c9[x]);
}
}
}
function appendBreadcrumb(_ca){
if(typeof (_ca)!="object"||_ca.text==null||_ca.href==null){
return false;
}
var _cb=document.getElementById("breadcrumb");
var _cc=_cb.getElementsByTagName("dd")[0];
var _cd="&#160;<span>&gt;</span>&#160"+"<a href=\""+_ca.href+"\">"+_ca.text+"</a>";
_cc.innerHTML+=_cd;
}
function removeFaqCrumbs(){
if(document.getElementById("breadcrumb2")){
var _ce=document.getElementById("content");
var _cf=_ce.getElementsByTagName("div")[0];
var _d0=_cf.getElementsByTagName("h4")[0];
var _d1=_d0.getElementsByTagName("a");
var _d2=[];
for(x=0;x<_d1.length;x++){
var _d3=new String(_d1[x].href);
if(_d3.indexOf(".com/")==-1){
var _d4=_d3;
}else{
var _d4=_d3.substr(_d3.indexOf(".com/")+4);
}
_d2[_d2.length]={text:_d1[x].innerHTML,href:_d4};
}
_d0.style.display="none";
_d0.style.visibility="hidden";
return _d2;
}
}
function photoPopup(){
var _d5="400";
var _d6="533";
_d5=(_d5!=null&&_d5.length!=0)?parseInt(_d5)+148:700;
_d6=(_d6!=null&&_d6.length!=0)?parseInt(_d6)+32:600;
window.open("".concat("/data/home/photopopup.html?random=",Math.random()),"Photo","width="+_d6+",height="+_d5+",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 _db=(new Date()).getTime()-yScroll.start;
if(_db<yScroll.dur){
scrollTo(easeOut(_db,xScroll.begin,xScroll.change,xScroll.dur),easeOut(_db,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(_de,_df){
}
function getCoverLink(_e0,_e1,_e2,_e3,_e4){
_e0=unescape(_e0);
_e1=unescape(_e1);
_e2=unescape(_e2);
_e4=unescape(_e4);
_sGetCoverLink(_e0,_e1,_e2,_e3,_e4);
_hbPageView(_e1,"cover/"+pagename+"/"+_e3+"/linkclicks/"+_e0);
if(_e2.indexOf("fan/popup")!=-1){
fanPopup(_e2);
}else{
if(_e4=="_blank"){
window.open(_e2);
}else{
document.location.href=_e2;
}
}
}
function trackEvolutionListImpression(_e5){
}
function trackEvolutionListLink(_e6,_e7,_e8,_e9){
_sTrackEvolutionListLink(_e6,_e7,_e8,_e9);
_hbPageView(_e6,"cover/"+pagename+"/lists/"+_e8);
_e6=unescape(_e6);
_e7=unescape(_e7);
_e8=unescape(_e8);
_e9=unescape(_e9);
if(_e7.indexOf("fan/popup")!=-1){
fanPopup(_e7);
}else{
if(_e9=="_blank"){
window.open(_e7);
}else{
document.location.href=_e7;
}
}
}
addLoadEvent(function(){
if(document.location.href.indexOf("home.html")!=-1){
var _ea=document.createElement("div");
_ea.className="module";
var _eb=document.getElementById("h-topstories");
var _ec=document.getElementById("content");
if(_eb){
_ec.insertBefore(_ea,_ec.firstChild);
_ea.innerHTML="<h3 id=\"h-finance\">Finance</h3><div class=\"ap-summary\"><form id=\"symbol_search_form\"  method=\"GET\" action=\"http://finance.comcast.net/www/search.html\"><label id=\"stock-search\">Stock Quotes:&nbsp;</label><input  type=\"hidden\" name=\"bDoSearch\" value=\"1\"><input type=\"text\" class=\"stock-searchbox\" name=\"SEARCH_VALUE\" value=\"\" accessKey=\"q\" /><input type=\"image\" src=\"http://media3.comcast.net/images/buttons/go.gif\" onclick=\"_hbLink('Finance Stock Quote Go Button')\" id=\"stocksearch-button\" alt=\"Go\" /><label id=\"stocksponser\">Sponsored by:</label></form></div><div class=\"clear\"></div><div id=\"financebanner\"><iframe src=\"/providers/banners/finance/index.html\" frameborder=\"0\" scrolling=\"no\" width=\"88px\" height=\"31px\"></iframe></div><div class=\"headlines\"><ul id=\"financelinks\"><li><a href=\"http://finance.comcast.net/www/overview.html\">Comcast Finance</a></li><li><a href=\"https://sso.comcast.net/sso?entityid=comstock&target=http://finance.comcast.net/portfolio/portfolio_overview.html?\">My Portfolio</a></li></ul></div>";
}
var _ed=document.createElement("div");
_ed.id="h-adserver";
if(_eb){
_ec.appendChild(_ed);
_ed.innerHTML="<iframe src=\"/providers/banners/300x250/index.html\" frameborder=\"0\" scrolling=\"no\" width=\"300px\" height=\"250px\"></iframe>";
}
submitAjaxRequest("/data/cover/games/inside.xml",buildHomePageCommerce);
}
});
function buildHomePageCommerce(_ee){
var xml=_ee.responseXML;
var _f0=xml.getElementsByTagName("item");
var _f1="";
var _f2=document.createElement("div");
_f2.className="module";
var _f3=document.getElementById("h-topstories");
var _f4=document.getElementById("content");
for(var i=0;i<_f0.length;i++){
var _f6=_f0[i].getElementsByTagName("title")[0];
if(_f6.childNodes[0].data!="unused"){
var _f7=_f0[i].getElementsByTagName("link")[0];
_f1+="<li><a href=\""+_f7.getAttribute("site")+"\" target=\""+_f7.getAttribute("target")+"\">"+_f6.childNodes[0].data+"</a></li>";
}
}
if(_f3){
_f4.insertBefore(_f2,_f4.childNodes[1]);
_f2.innerHTML="<h3 id=\"h-todaysfeatures\">Today's Features</h3><div class=\"headlines\"><br/><ul>"+_f1+"</ul></div></div>";
}
}
var emailQuery={ref:{frame:null,frameDoc:null},request:null,url:"/qry/yhm.js?rand="+randomNumber};
function triggerCover(){
if(window.location.href.indexOf("explore.html")==-1){
if(document.getElementById("cover")==null){
return false;
}else{
window.document.coverFlash.SetVariable("pageLoaded","true");
}
}else{
window.document.site.SetVariable("pageLoaded","true");
}
}
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 submitAjaxRequest(url,_f9){
var _fa=new Date();
var ts=_fa.getTime();
var _fc=url;
+"?ts="+ts;
var _fd=getAjaxRequestObj();
_fd.open("GET",_fc,true);
_fd.onreadystatechange=function(){
responseStateCheck(_fd,_f9);
};
_fd.send(null);
}
function responseStateCheck(_fe,_ff,_100,end){
if(_fe.readyState==4){
if(_fe.status==200){
_ff(_fe);
}else{
alert("HTTP error: "+_fe.status);
}
}
}
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 _102=emailQuery.request.responseXML;
var _103=new String(getElementTextNS("","status",_102,0)).toLowerCase();
if(_103!="success"){
return false;
}
var _104=parseInt(getElementTextNS("","newmail",_102,0));
if(_104&&_104!="0"){
document.getElementById("email-icon").innerHTML="<span>"+_104+"</span>";
}
};
var tmp=emailQuery.request.open("GET",emailQuery.url,true);
emailQuery.request.send(null);
}
function initEmailFrameRequest(){
var _106=document.createElement("iframe");
_106.setAttribute("id","email-icon-frame");
_106.setAttribute("name","email-icon-frame");
_106.style.border="0px";
_106.style.height="0px";
_106.style.width="0px";
_106.src=emailQuery.url;
emailQuery.ref.frame=document.getElementById("email-icon").appendChild(_106);
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(_107,_108,_109,_10a){
var _10b="";
if(_107&&isIE){
_10b=_109.getElementsByTagName(_107+":"+_108)[_10a];
}else{
var _10c=_109.getElementsByTagName(_108);
_10b=_10c[_10a];
}
if(_10b){
if(_10b.childNodes.length>1){
return _10b.childNodes[1].nodeValue;
}else{
return _10b.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 buildEmailLink(){
selectRandomLogin();
var _110="<div id=\"t-email\"><a href=\"";
var _111="\" title=\"Email\" accesskey=\"e\" target=\"_top\"><span>Mail</span><span id=\"email-icon\"></span></a></div>";
var _112=domain+"/qry/goto?app=mail&amp;CM.src=top";
var _113="?s=absmail&continue="+"http://mailcenter"+getPartialDomain(domain);
return buildLoginLink(_110,_112,_111,_113);
}
function buildAcctMgtHeaderLink(){
var _114="<a href=\"";
var _115="\" title=\"My Account\" accesskey=\"c\">My Account</a>";
var _116="https://acctmgt"+getPartialDomain(domain)+"/Comcast/AcctMgt/acctmgt.cmd?CM.src=top";
var _117="?s=acctmgt&continue="+_116;
return buildLoginLink(_114,_116,_115,_117);
}
function buildLoginLink(_118,_119,_11a,_11b){
var url=_119;
if(cimaLoginURL!=null){
if(!loggedin){
if(isCimaLoginsTurn&&cimaLoginURL!=null){
url=cimaLoginURL+_11b;
}
}
}
return _118+url+_11a;
}
function displayLoginLogoutButton(){
if(loggedin){
var body=document.getElementsByTagName("body")[0];
if(body.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(body.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{
if(window.self.location!=window.top.location){
return "<div id=\"t-signout\"><a href=\"https://login.comcast.net/logout?s=portal&continue="+"\" title=\"Sign Out\">Sign Out<span id=\"s-signout\" class=\"signin\"></span></a></div>";
}else{
return "<div id=\"t-signout\"><a href=\"https://login.comcast.net/logout?s=portal&continue="+document.location.href+"\" title=\"Sign Out\">Sign Out<span id=\"s-signout\" class=\"signin\"></span></a></div>";
}
}
}
}else{
var _11e="https://login.comcast.net/login?s=portal&continue=";
if((document.location.href.indexOf("home.html")!=-1)||(document.location.href.indexOf("comcast.html")!=-1)){
return "<div id=\"t-signin\"><a href=\""+_11e+"\" 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=\""+_11e+"\" title=\"Sign In\">Sign In<span id=\"s-signin\" class=\"signin\"></span></a></div>";
}else{
return "<div id=\"t-signin\"><a href=\""+_11e+document.location.href+"\" title=\"Sign In\">Sign In<span id=\"s-signin\" class=\"signin\"></span></a></div>";
}
}
}
}
function getOldLoginURL(){
if((document.location.href.indexOf("home.html")!=-1)||(document.location.href.indexOf("comcast.html")!=-1)){
return domain+"/signin.jsp";
}else{
if(window.self.location!=window.top.location){
return domain+"/signin.jsp?redirectUrl="+domain;
}else{
return domain+"/signin.jsp"+getRedirectArguments();
}
}
}
var isCimaLoginsTurn=false;
var cimaLoginURL=null;
var isCimaLogoutsTurn=false;
var cimaLogoutURL=null;
var cimaLoginTrafficRate=null;
function selectRandomLogin(){
getFileContent(domain+"/data/cimaAuthParms.txt");
if(document.fileContent!=null){
var _11f=document.fileContent.split(",");
cimaLoginURL=_11f[0];
cimaLoginTrafficRate=_11f[1];
cimaLogoutURL=_11f[2];
var _120=_11f[3];
}
isCimaLoginsTurn=randomBooleanSelection(cimaLoginTrafficRate);
isCimaLogoutsTurn=randomBooleanSelection(_120);
}
function randomBooleanSelection(_121){
var _122=false;
if(_121!=null){
if(Math.random()<(_121/100)){
_122=true;
}
}
return _122;
}
var xmlhttp;
function getFileContent(pURL){
xmlhttp=getAjaxRequestObj();
if(typeof (xmlhttp)=="object"){
xmlhttp.open("GET",pURL,false);
xmlhttp.send(null);
if(xmlhttp.status==200){
document.fileContent=xmlhttp.responseText;
}
}
}
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>");
}
function betaredirect(link){
if(typeof link=="undefined"){
link=this.href||(document.location+"");
}
var _126=link.replace(/([a-zA-Z0-9]*\.comcast\.net|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/,"www6.comcast.net");
var _127=GetCookie("Evo");
var _128="yes";
var _129=0;
var _12a=0;
getFileContent("/data/evoParms3.txt");
if(document.fileContent!=null){
var _12b=document.fileContent.split(",");
var _12c=_12b[0];
_12a=parseInt(_12b[1],10);
_129=parseInt(_12b[3],10);
}
if(_129==0&&_12a==0){
return true;
}
if(_129!=0){
document.location.href=_126;
}
if(_12a!=0){
document.location.href=_12c;
}
}
function instantbetaredirect(){
if(getParam("instantbetaredirect")=="true"){
writePersistentCookie("Evo","true",30);
document.location.href="http://www6.comcast.net";
}
}
function deeplinkredirects(){
var _12d=GetCookie("Evo");
var _12e=null;
var _12f=0;
getFileContent("/data/evoParms3.txt");
if(document.fileContent==null){
return;
}else{
var _130=document.fileContent.split(",");
_12e=_130[0];
_12f=parseInt(_130[1],10);
}
for(i=4;i<_130.length;i=i+2){
if(document.location.pathname==_130[i].replace(new RegExp("\\n","g"),"")){
if(_12f==0){
document.location.href=_130[i+1];
}else{
document.location.href=_12e;
}
}
}
}
function writeSessionCookie(_131,_132){
document.cookie=escape(_131)+"="+escape(_132)+"; path=/";
}
function writePersistentCookie(name,_134,days){
var _136="";
if(days){
var date=new Date();
date.setTime(date.getTime()+days*86400000);
var _136="; expires="+date.toGMTString();
}
document.cookie=name+"="+_134+_136+"; path=/; domain=.comcast.net";
}
deeplinkredirects();
instantbetaredirect();
var searchObj={getOptions:function(){
var _138=GetCookie("searchOptions");
var _139=false;
if(_138==""){
return {useSafe:1,useHistory:(_139?1:0)};
}
var _13a=_138.split("-&-");
var _13b=[];
for(var x=0;x<_13a.length;x++){
var tmp=_13a[x].split("=");
_13b[tmp[0]]=tmp[1];
}
if(!_139){
_13b.useHistory=0;
}
return _13b;
},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 _13e=document.getElementById("footer-search");
if(!is_safari||_13e==null){
return;
}
var _13f=_13e.getElementsByTagName("label");
for(var l=0;l<_13f.length;l++){
_13f[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(_145,_146){
var _147=document.getElementById("search-form");
if(_146==null){
var _146=false;
}
if(document.getElementById("searchtabs")!=null){
var _148=document.getElementById("searchtab-"+headerSearch.currTab).firstChild;
_148.className="";
var _149=document.getElementById("searchtab-"+_145).firstChild;
_149.className="selectedtab";
}
if(_146&&_145!="web"){
for(fieldName in headerSearch.data.web.fields){
var _14a=document.getElementById(fieldName);
if(_14a!=null){
_14a.parentNode.removeChild(_14a);
}
}
}
if(headerSearch.currTab!=null){
var _14b=document.getElementsByTagName("input");
for(fieldName in headerSearch.data[headerSearch.currTab].fields){
for(var i=0;i<_14b.length;i++){
if(_14b[i].name!=fieldName){
continue;
}
_14b[i].parentNode.removeChild(_14b[i]);
}
}
}
if(headerSearch.currTab!=null){
headerSearch.data[headerSearch.currTab].uninstall();
}
headerSearch.currTab=_145;
var _14d="q";
for(fieldName in headerSearch.data[_145].fields){
var _14e=headerSearch.data[_145].fields[fieldName];
if(fieldName=="fieldname"){
_14d=_14e;
continue;
}
var _14a=document.createElement("input");
_14a.type="hidden";
_14a.id=fieldName;
_14a.name=fieldName;
_14a.value=_14e;
_147.appendChild(_14a);
}
document.getElementById("search-field").name=_14d;
_147.action=headerSearch.data[_145].action;
document.getElementById("search-label").innerHTML=headerSearch.data[_145].label+":";
headerSearch.data[_145].install();
},submitHeader:function(_14f,_150){
if(_150==null){
var _150=false;
}
var term=this.ref.field.value;
trackBanners(headerSearch.data[headerSearch.currTab].action,headerSearch.currTab);
if(term!=""){
return true;
}
var _152=new String(headerSearch.currTab).charAt(0).toUpperCase()+new String(headerSearch.currTab).substr(1);
if(_150){
window.top.location.href=search_action_url+"?cat="+_152;
}
return false;
},submitFooter:function(_153,_154){
if(_153.name!="swr"||(_153.q.value=="")){
return false;
}
if(document.getElementById("search_type_1").checked){
var _155=document.createElement("input");
_155.type="hidden";
_155.id="refine";
_155.name="refine";
_155.value=new String(_153.q.value);
_153.q.value=new String(_153.orig_query.value);
_153.replaceChild(_155,_153.orig_query);
}
if(_154!=null){
_153.elements["cat"].value=_154;
_153.elements["con"].value=(_154=="Games")?"gi":"net";
}
_153.submit();
return true;
},toggleDropdown:function(_156){
if(_156==null){
var _156=!this.visible;
}
this.ref.nub.style.backgroundPosition=(_156?"-10px":"0px")+" 0px";
toggleBlockElement(this.ref.box,_156);
this.visible=_156;
},toggleNavigator:function(node,_158){
var _159=(new String(node.className).indexOf("visible")!=-1);
node.className="search-nav nav-"+(_159?"hidden":"visible");
if(!_159&&_158){
node.className+="-full";
}
var _15a=node.getElementsByTagName("a");
_15a[_15a.length-1].innerHTML=_159?"More":"Close";
},toggleNewsResult:function(node){
var _15c=(new String(node.className).indexOf("open")!=-1);
node.className="results-news-article result-"+(_15c?"closed":"open");
node.getElementsByTagName("a")[1].innerHTML=(_15c?"Read":"Close")+" Summary";
},userClickSubmit:function(_15d){
if(_15d==null){
return false;
}
this.setHeaderSearchType(_15d);
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(_15e,_15f,_160,_161,_162,_163){
this.title=_15e;
this.action=_15f;
this.label=_160;
this.fields=(_161!=null)?_161:[];
this.install=(_162!=null)?_162:function(){
return true;
};
this.uninstall=(_163!=null)?_163: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","cat":"ent","con":"net"}),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","cat":"pg","con":"net"}),help:new HdrSearch("Help","http://sitesearch.comcast.net/","Search Help",{"fieldname":"q","cat":"help","con":"net"}),movies:new HdrSearch("Movies","http://sitesearch.comcast.net/","Search Movies",{"fieldname":"q","cat":"movies","con":"net"}),music:new HdrSearch("Music","http://sitesearch.comcast.net/","Search Music",{"fieldname":"q","cat":"music","con":"net"}),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","cat":"sports","con":"net"}),tv:new HdrSearch("TV","http://sitesearch.comcast.net/","Search TV",{"fieldname":"q","cat":"tv","con":"net"}),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 _165=document.createElement("input");
_165.type="text";
_165.className="single";
_165.id="search-field-2";
_165.name="l";
_165.value="City & State or Zip";
_165.style.color="#848995";
_165.onfocus=function(){
this.value="";
this.style.color="#0A142B";
};
row.childNodes[0].appendChild(_165);
var _166=document.getElementById("search-field");
if(_166==null){
return false;
}
_166.className="single";
var _167=_166.parentNode.parentNode;
_167.parentNode.insertBefore(row,_167.nextSibling);
},function(){
var row=document.getElementById("local-extra");
if(row!=null){
row.parentNode.removeChild(row);
}
var _169=document.getElementById("search-field");
if(_169!=null){
_169.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,yellow: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(_16a){
if(is_ie&&is_mac){
return;
}
if((_16a!=null)&&(_16a.length)){
var _16b=new String(_16a).toLowerCase();
var _16c=(headerSearch.map[_16b]!=null)?headerSearch.map[_16b]:headerSearch.map["web"];
}else{
var _16c=headerSearch.map["web"];
var _16b=getChannelName();
if(headerSearch.channelsTabs[_16b]!=null){
_16c[headerSearch.channelsTabs[_16b]]=1;
}
}
document.write("<ul>");
for(tabName in _16c){
if(headerSearch.data[tabName]==null){
continue;
}
writeHeaderTab(tabName,(_16c[tabName]==2));
}
document.write("</ul>");
}
function writeHeaderTab(_16d,_16e){
if(_16e){
headerSearch.currTab=_16d;
}
var _16f="searchtab-"+_16d;
var _170=_16e?"selectedtab":"";
var _171=headerSearch.data[_16d].title;
var _172="<li id='"+_16f+"'>"+"<a onclick=\"handleHeaderTabClick('"+_16d+"');\" class='"+_170+"'>"+_171+"</a></li>";
document.write(_172);
}
function handleHeaderTabClick(_173){
var _174=document.getElementById("search-form");
var _175=false;
if(_173==null){
var _173=headerSearch.currTab;
_175=true;
}else{
if(headerSearch.currTab==_173){
return false;
}else{
document.getElementById("search-field").focus();
}
}
searchObj.setHeaderSearchType(_173,_175);
if(_175||document.getElementById("search-field").value==""){
return false;
}
_174.submit();
}
function getCookieVal(_176){
var _177=document.cookie.indexOf(";",_176);
if(_177==-1){
_177=document.cookie.length;
}
return unescape(document.cookie.substring(_176,_177));
}
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,_17f,days,path,_182,_183){
if(isNaN(days)){
days=1;
}
var _184=days*24*60*60*1000;
var now=new Date();
var d;
if(!isNaN(now.valueOf())){
var then=now.valueOf()+_184;
d=new Date(then);
}else{
d=now;
}
var _188=name+"="+escape(_17f)+"; expires="+d.toGMTString()+((path==null)?"":("; path="+path))+((_182==null)?"":("; domain="+_182))+((_183==true)?"; secure":"");
document.cookie=_188;
}
function getCrumbVal(_189,_18a){
var _18b=_189.indexOf("&",_18a);
if(_18b==-1){
_18b=_189.length;
}
var temp=_189.substring(_18a,_18b);
temp=stringReplace(temp,"+"," ");
return unescape(temp);
}
function GetCrumb(_18d,name){
var arg=name+"=";
var alen=arg.length;
var clen=_18d.length;
var i=0;
while(i<clen){
var j=i+alen;
if(_18d.substring(i,j)==arg){
return getCrumbVal(_18d,j);
}
i=_18d.indexOf("&",i)+1;
if(i==0){
break;
}
}
return "";
}
function setSessionCookie(name,_195,path,_197,_198){
var _199=name+"="+escape(_195)+";"+((path==null)?"":("; path="+path))+((_197==null)?"":("; domain="+_197))+((_198==true)?"; secure":"");
document.cookie=_199;
}
function setSessionAndFlip(name,_19b){
setSessionCookie(name,_19b,"/",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 ie7AlertSwitch=false;
var ie7SearchAlertSwitch=false;
var FFAlertSwitch=true;
var ffSrcFile="http://www.comcast.net/downloads/firefox/search/comcast.src";
var ffPngFile="http://www.comcast.net/downloads/firefox/search/comcast.png";
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 _19c=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _19d=navigator.plugins["Shockwave Flash"+_19c].description;
var _19e=parseInt(_19d.substring(16));
flash2Installed=_19e==2;
flash3Installed=_19e==3;
flash4Installed=_19e==4;
flash5Installed=_19e==5;
flash6Installed=_19e==6;
flash7Installed=_19e==7;
flash8Installed=_19e==8;
flash9Installed=_19e>=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,_1a2,_1a3,_1a4,_1a5){
_1a4=(_1a4==null)?"#FFFFFF":_1a4;
_1a5=(_1a5==null)?"opaque":_1a5;
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='"+name+"' width='"+_1a2+"' height='"+_1a3+"'>");
document.write("  <param name=\"allowScriptAccess\" value=\"sameDomain\" />");
document.write("  <param name='movie' value='"+file+"'>");
document.write("  <param name='wmode' value='"+_1a5+"'>");
document.write("  <param name='quality' value='high'>");
document.write("  <param name='bgcolor' value='"+_1a4+"'>");
document.write("  <param name='menu' value='false'>");
document.write("  <embed src='"+file+"' bgcolor='"+_1a4+"' name='"+name+"' width='"+_1a2+"' height='"+_1a3+"' wmode='"+_1a5+"' 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");
var upgradeMsgIE=GetCrumb(clientprefs,"ieumsg");
var upgradeMsgIEcc=GetCrumb(clientprefs,"ieccumsg");
var upgradeMsgFFsearch=GetCrumb(clientprefs,"ffsearchumsg");
}
function upgrade(){
if(iscobrand==true){
return false;
}
var _1a6="";
var _1a7="Visit our Upgrade page to download the Macromedia Flash 7 player.";
var _1a8="Visit our Upgrade page to download a new web browser.";
var _1a9="<div id=\"upgradebar\"><p>";
var _1aa=" <span id=\"upgrade-close\"><a href=\"#\" onclick=\"hideUpgrade('fpo')\" title=\"Do not show me this message again.\">Do not show me this message again.</a></span>";
var _1ab="</p></div>";
if(upgradeMsg!="off"){
if((!document.getElementById)&&(!hasRightVersion)){
_1a6="We recommend that you upgrade your <a href=\"/browserUpgrade.html\" title=\""+_1a8+"\">Web browser</a> and <a href=\"/flashUpgrade.html\" title=\""+_1a7+"\">Macromedia Flash</a> to view the full experience of Comcast.net.";
}else{
if((!hasRightVersion)&&(document.getElementById)){
_1a6="We recommend that you upgrade to the latest version of <a href=\"/flashUpgrade.html\" title=\""+_1a7+"\">Macromedia Flash</a> to view the full experience of Comcast.net.";
var _1ac=document.getElementById("breadcrumb");
if(_1ac!=null){
_1ac.style.top="130px";
}
}else{
if(!document.getElementById){
_1a6="We recommend that you upgrade your <a href=\"/browserUpgrade.html\" title=\""+_1a8+"\">Web browser</a> to view the full experience of Comcast.net.";
}else{
hideUpgrade("fpo");
_1a9="";
_1a6="";
_1aa="";
_1ab="";
}
}
}
document.write(_1a9+_1a6);
if(document.getElementById){
document.write(_1aa);
}
document.write(_1ab);
}else{
if((upgradeMsgIEcc!="off")&&(is_ie7)&&(is_win)&&(!is_iecc)&&(ie7SearchAlertSwitch)&&((document.location.href.indexOf("/home.html")!=-1)||(document.location.href.indexOf("/explore.html")!=-1)||(document.location.href.indexOf("/comcast.html")!=-1))){
_1a9="<div id=\"ieccsearchupgradebar\" onclick=\"javascript:window.external.AddSearchProvider('/downloads/ie7/ie7comcastsearch.xml');hideUpgrade('ieccumsg');return false;\"><p>";
_1aa=" <span id=\"ieccupgrade-close\"><a href=\"#\" onclick=\"evt = window.event;evt.cancelBubble = true; evt.returnVal = false;if (evt.preventDefault) evt.preventDefault();hideUpgrade('ieccumsg');return false;\" title=\"Do not show me this message again.\">Do not show me this message again.</a></span>";
_1ab="</p></div>";
var _1ac=document.getElementById("breadcrumb");
if(_1ac!=null){
_1ac.style.top="170px";
}
addLoadEvent(function(){
var _1ad=document.getElementById("assistant");
if(_1ad!=null){
_1ad.style.top="61px";
}
});
document.write(_1a9);
if(document.getElementById){
document.write(_1aa);
}
document.write(_1ab);
}
}
if((upgradeMsgFFsearch!="off")&&(is_firefox)&&((document.location.href.indexOf("/home.html")!=-1)||(document.location.href.indexOf("/explore.html")!=-1)||(document.location.href.indexOf("/comcast.html")!=-1))){
var _1ae="/downloads/firefox/search/flagfile.txt";
submitAjaxRequest(_1ae,buildFireFoxAlert);
}
}
function buildFireFoxAlert(http){
var val=http.responseText;
arrayOfStrings=val.split(",");
FFAlertSwitch=arrayOfStrings[0];
ffSrcFile=arrayOfStrings[1];
ffPngFile=arrayOfStrings[2];
if(FFAlertSwitch=="true"){
upgrade1="<div id=\"ffsearchupgradebar\" onclick=\"_sBuildFireFoxAlert();_hbPageView('search engine sidebar install','/comcast/general');if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addSearchEngine == 'function')){window.sidebar.addSearchEngine('"+ffSrcFile+"','"+ffPngFile+"','Comcast','General');}hideUpgrade('ffsearchumsg');return false;\"><p>";
upgrade2=" <span id=\"ffsearchupgrade-close\"><a href=\"#\" onclick=\"evt = event || window.event;evt.cancelBubble = true; evt.returnVal = false;if (evt.preventDefault) evt.preventDefault();hideUpgrade('ffsearchumsg');return false;\" title=\"Do not show me this message again.\">Do not show me this message again.</a></span>";
upgrade3="</p></div>";
var _1b1=document.getElementById("breadcrumb");
if(_1b1!=null){
_1b1.style.top="170px";
}
addLoadEvent(function(){
var _1b2=document.getElementById("assistant");
if(_1b2!=null){
_1b2.style.top="61px";
}
});
var _1b3=document.createElement("div");
var _1b4=document.getElementById("container");
_1b4.parentNode.insertBefore(_1b3,_1b4);
_1b3.innerHTML=upgrade1+upgrade2+upgrade3;
}
}
function hideUpgrade(_1b5){
if(_1b5=="fpo"){
if(document.getElementById("upgradebar")){
document.getElementById("upgradebar").style.display="none";
document.getElementById("breadcrumb").style.top="110px";
}
var _1b6="fpo="+flashVersion+"&umsg=off";
setCookie("CLIENTPREFS",_1b6,360,"/");
}else{
if(_1b5=="ieumsg"){
if(document.getElementById("ieupgradebar")!=null){
document.getElementById("ieupgradebar").style.display="none";
}
if(document.getElementById("breadcrumb")!=null){
document.getElementById("breadcrumb").style.top="110px";
}
if(document.getElementById("assistant")!=null){
document.getElementById("assistant").style.top="0";
}
if(!(clientprefs.match("ieumsg"))){
var _1b6="fpo="+flashVersion+"&umsg=off&ieumsg=off";
setCookie("CLIENTPREFS",_1b6,360,"/");
}
}else{
if(_1b5=="ieccumsg"){
if(document.getElementById("ieccsearchupgradebar")!=null){
document.getElementById("ieccsearchupgradebar").style.display="none";
}
if(document.getElementById("breadcrumb")!=null){
document.getElementById("breadcrumb").style.top="110px";
}
if(document.getElementById("assistant")!=null){
document.getElementById("assistant").style.top="0";
}
if(!(clientprefs.match("ieccumsg"))){
var _1b6="fpo="+flashVersion+"&umsg=off&ieumsg=off&ieccumsg=off";
setCookie("CLIENTPREFS",_1b6,360,"/");
}
}else{
if(_1b5=="ffsearchumsg"){
if(document.getElementById("ffsearchupgradebar")!=null){
document.getElementById("ffsearchupgradebar").style.display="none";
}
if(document.getElementById("breadcrumb")!=null){
document.getElementById("breadcrumb").style.top="110px";
}
if(document.getElementById("assistant")!=null){
document.getElementById("assistant").style.top="0";
}
if(!(clientprefs.match("ffsearchumsg"))){
var _1b6=clientprefs+"&ffsearchumsg=off";
setCookie("CLIENTPREFS",_1b6,360,"/");
}
}
}
}
}
}
function setOverride(ver){
var _1b8="fpo="+ver+"&umsg="+upgradeMsg;
setCookie("CLIENTPREFS",_1b8,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(_1e7){
if(navigator.appName.indexOf("Microsoft")!=-1){
return window[_1e7];
}else{
return document[_1e7];
}
}
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(_1eb,_1ec){
this.fan.setCallBack(_1eb,_1ec);
}
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 _1f1=f.getCurrentMediaId();
var pl=f.getCurrentPlaylistName();
var _1f3=f.getCurrentPlayheadTime();
var _1f4=f.getInitConfigFile();
window.open("/providers/fan/popup.html?v="+_1f1+"&pl="+pl+"&seekTo="+_1f3+"&viewmode=fullScreenMode&config="+_1f4,"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 _1f9=deconcept.SWFObjectUtil.getPlayerVersion()["major"];
_1f9=Number(_1f9);
if(loggedin||isInNetwork){
if(_1f9>7){
var _1fa=document.createElement("p");
_1fa.setAttribute("id","fanenlarge");
var lnk=document.createElement("a");
lnk.setAttribute("href","javascript:launchMidFan()");
var _1fc=document.createTextNode("Enlarge");
lnk.appendChild(_1fc);
_1fa.appendChild(lnk);
f.appendChild(_1fa);
var inF=document.createElement("div");
inF.setAttribute("id","inline_fan");
inF.setAttribute("title","Click to launch the Fan");
f.appendChild(inF);
var _1fe=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 _200=fv.getElementsByTagName("a");
for(var i=0;i<_200.length-1;i++){
_200[i].setAttribute("rel","");
_200[i].setAttribute("title","Click to play video");
_200[i].onclick=function(){
unsetNowPlaying();
addClass(this.parentNode.parentNode,"nowplaying");
addPlayImage(this.parentNode.parentNode);
var _202=this.getAttribute("href");
var vStr=_202.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(_1f9>7){
var _205=document.createElement("img");
_205.setAttribute("src","/images/global/signinforinlinefan.gif");
_205.onclick=function(){
document.location.href="/signin.jsp?redirectUrl="+document.location.href;
};
f.appendChild(_205);
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 _209=document.getElementById("fv-nowplaying-dd");
if(_209!=null){
_209.parentNode.removeChild(_209);
}
}
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(_20d){
var d=document.createElement("dd");
var dt=document.createTextNode("Now Playing");
d.appendChild(dt);
d.className="fv-nowplaying";
d.setAttribute("id","fv-nowplaying-dd");
_20d.appendChild(d);
}
if(((document.location.hostname.indexOf("www.comcast.net")!=-1)||(document.location.hostname.indexOf("portal-test3.comcastonline.com")!=-1)||(document.location.hostname.indexOf("comcast.net")!=-1))&&(document.location.href.indexOf(".comcast.net/cobrand")==-1)){
var _networkDebug=false;
var isInNetwork=false;
var hasIsInNetworkCookieSet=false;
var networkCookie=GetCookie("ISINNETWORK");
var triedsettingcookie=false;
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){
var urlSearch=location.search.substr(1);
var parms=urlSearch.split("&");
for(idx=0;idx<parms.length;idx++){
var parm=parms[idx].split("=");
if(parm[0]=="cookieattempt"&&parm[1]=="1"){
triedsettingcookie=true;
break;
}
}
if(!triedsettingcookie){
if(parms==""){
window.location="http://absorigins.comcast.net/CheckIsInNetwork?redirectUrl="+document.URL+"?cookieattempt=1";
}else{
var encodedurl=document.URL.replace("&","%26");
window.location="http://absorigins.comcast.net/CheckIsInNetwork?redirectUrl="+encodedurl+"%26cookieattempt=1";
}
}
}
}
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(_214){
if(typeof _214=="undefined"||_214==null){
_214="";
}
dcsTitle=_214;
}
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,_21a){
if(typeof _21a=="undefined"||_21a==null){
_21a="";
}else{
_21a+="";
}
if(_21a.length>0){
return "&"+name+"="+escape(_21a);
}else{
return "";
}
}
function dcsComcast(){
var _21b="";
for(name in COMCAST){
if(COMCAST[name]){
_21b+=append(name,COMCAST[name]);
}
}
return _21b;
}
function dcsDCS(){
var _21c="";
for(name in DCS){
if(DCS[name]){
if(name=="dcsuri"){
var str=DCS[name];
var _21e="/qry/myhome";
var _21f=str.indexOf(_21e);
if(_21f>=0){
_21f+=_21e.length;
DCS[name]=str.substring(0,_21f);
}
}
_21c+=append(name,DCS[name]);
}
}
return _21c;
}
function dcsWT(){
var _220="";
for(name in WT){
if(WT[name]){
_220+=append("WT."+name,WT[name]);
}
}
return _220;
}
function dcsTag(){
var _221="";
_221+=dcsComcast();
_221+=dcsDCS();
_221+=dcsWT();
_221+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
dcsTrack(_221);
}
function dcsCreateImage(_222){
if(dcsTesting){
displayInWindow(_222);
}else{
}
}
function dcsTrack(_223,type){
if(typeof type=="undefined"){
type=dcsHTML;
}
var path="http"+(window.location.protocol.indexOf("https:")==0?"s":"")+"://"+dcsDomain+"/"+getID(type)+"/dcs.gif?";
if(_223.indexOf("&")==0){
_223=_223.substring(1);
}
path+=_223;
if(path.length>2040&&navigator.userAgent.indexOf("MSIE")>=0){
path=path.substring(0,2040)+"&WT.tu=1";
}
dcsCreateImage(path);
dcsClearValues();
}
function dcsVar(){
var _226=new Date();
WT.tz=_226.getTimezoneOffset()/60*-1;
WT.bh=_226.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=_226.getTime();
}
function dcsMeta(){
var _227;
if(document.all){
_227=document.all.tags("meta");
}else{
if(document.documentElement){
_227=document.getElementsByTagName("meta");
}
}
if(typeof (_227)!="undefined"){
for(var i=0;i<_227.length;i++){
myMeta=_227.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(_229){
if(typeof _229!="boolean"){
_229=castString(_229).toLowerCase();
if(_229.length==0||_229=="true"||_229=="1"){
_229=true;
}else{
_229=false;
}
}
return _229;
}
function castString(_22a){
if(typeof _22a=="undefined"||_22a==null){
_22a="";
}else{
if(typeof _22a!="string"){
_22a+="";
}
}
return _22a;
}
function castInt(_22b){
if(isNaN(_22b)){
_22b=-1;
}else{
_22b=parseInt(_22b,10);
}
return _22b;
}
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 _22e="";
for(var x=0;x<arguments.length;x++){
if(arguments[x].length>0){
_22e+=x+": "+arguments[x]+"\n";
}
}
if(_22e.length>0){
displayInWindow("Parameters:<br />"+_22e);
}
}
}
function wtParseParamString(_230){
var args=new Object();
var _232=_230.split("&");
for(var i=0;i<_232.length;i++){
var pos=_232[i].indexOf("=");
if(pos==-1){
continue;
}
var _235=_232[i].substring(0,pos);
var _236=_232[i].substring(pos+1);
args[_235]=unescape(_236);
}
return args;
}
function wtGetParam(_237,_238){
var _239=wtParseParamString(_237);
var _23a=castString(_239[_238]);
return _23a;
}
function trackBanners(uri,name,_23d,url,_23f,_240){
uri=castString(uri);
name=castString(name);
_23d=castString(_23d);
url=castString(url);
_240=castString(_240);
_23f=castBoolean(_23f);
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 _241=new Date();
DCS.dcsdat=_241.getTime();
if(_23d.length==0){
_23d=window.location.href;
}
DCS.dcsref=_23d;
var _242=append("WT.ac",name)+dcsDCS()+_240;
dcsTrack(_242);
if(url.length>0){
if(_23f){
window.open(url,"tracking");
}else{
window.location=url;
}
}
}
function trkLink(uri,_244,_245,url,_247,_248,_249,_24a,_24b){
uri=castString(uri);
_244=castString(_244);
_245=castString(_245);
url=castString(url);
_247=castString(_247);
_24b=castString(_24b);
_248=castBoolean(_248);
if(uri.indexOf(".exlink")==-1){
if(_248){
uri+=".inlink";
}else{
uri+=".exlink";
}
}
setTitle(_244);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _24c=new Date();
DCS.dcsdat=_24c.getTime();
if(_245.length==0){
_245=window.location.href;
}
DCS.dcsref=_245;
var _24d=getTitle()+dcsDCS()+_247+((url.length>0)?"&CM.url="+url:"");
dcsTrack(_24d);
if(url.length>0){
if(_248){
window.location=url;
}else{
_249=castInt(_249);
_24a=castInt(_24a);
var _24e="";
if(_249>0){
_24e+=(_24e!=null&&_24e.length>0)?",":"";
_24e+="width="+_249;
}
if(_24a>0){
_24e+=(_24e!=null&&_24e.length>0)?",":"";
_24e+="height="+_24a;
}
if(_24b!=null&&_24b.length>0){
_24e+=(_24e!=null&&_24e.length>0)?",":"";
_24e+=_24b;
}
window.open(url,"tracking",_24e);
}
}
}
function trkExLink(uri,_250,_251,url,_253){
trkLink(uri,_250,_251,url,_253,false);
}
function linkTracking(name,_255,_256,_257){
trkLink(name,"Old Tracking","",_255,"",false);
}
function trackExternalLink(uri,_259,_25a,url,_25c){
trkLink(uri,_259,_25a,url,_25c,false);
}
function trackPoll(uri,_25e){
uri=castString(uri);
_25e=castString(_25e);
setURI(uri);
setTitle("Comcast Polls");
var _25f=getURI()+getTitle()+"&"+_25e;
dcsTrack(_25f,dcsPOLL);
}
function trackPortal(_260){
var _261="";
_261+=dcsComcast();
_261+=dcsDCS();
_261+=dcsWT();
_261+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
_260=castString(_260);
_260=unescape(_260);
_260=_261+_260;
if(_260.indexOf("CM.site=explore")>-1){
dcsTrack(_260,dcsEXPLORE);
}else{
if(_260.indexOf("CM.site=express")>-1){
dcsTrack(_260,dcsEXPRESS);
}else{
if(_260.indexOf("CM.site=lite")>-1){
dcsTrack(_260,dcsLITE);
}else{
dcsTrack(_260);
}
}
}
}
function trackPortalLink(_262,url,trgt){
var _265="";
_265+=dcsComcast();
_265+=dcsDCS();
_265+=dcsWT();
_265+=getModule()+getBanner()+getHeadlines()+getFlashVersion();
_262=castString(_262);
_262=unescape(_262);
_262=_265+_262;
url=castString(url);
url=unescape(url);
trgt=castString(trgt);
trgt=unescape(trgt);
if(_262.indexOf("CM.site=explore")>-1){
dcsTrack(_262,dcsEXPLORE);
}else{
if(_262.indexOf("CM.site=express")>-1){
dcsTrack(_262,dcsEXPRESS);
}else{
if(_262.indexOf("CM.site=lite")>-1){
dcsTrack(_262,dcsLITE);
}else{
dcsTrack(_262);
}
}
}
window.open(url,trgt);
}
function pTopNav(_266){
var uri="/topnav.swf";
var _268=wtGetParam(_266,"r");
var _269=wtGetParam(_266,"l");
var _26a=wtGetParam(_266,"e");
_26a=stringReplace(_26a,";;;","&")+"&CM.gc="+wtGetParam(_266,"i");
if(_26a.indexOf("&sw=1")>-1){
_26a=stringReplace(_26a,"&sw=1","");
trkLink(uri,"",_268,_269,_26a,true);
}else{
var _26b=wtGetParam(_266,"w");
var _26c=wtGetParam(_266,"h");
var _26d=wtGetParam(_266,"f");
_26a=stringReplace(_26a,"&sw=0","");
trkLink(uri,"",_268,_269,_26a,false,_26b,_26c,_26d);
}
}
function pCoverL(_26e){
_26e=castString(_26e);
var uri=wtGetParam(_26e,"u");
var _270=wtGetParam(_26e,"t");
var _271=wtGetParam(_26e,"r");
var _272=wtGetParam(_26e,"l");
var _273=wtGetParam(_26e,"e");
_273=unescape(_273);
_273=stringReplace(_273,";;;","&");
if(_273.indexOf("&sw=1")>-1){
_273=stringReplace(_273,"&sw=1","");
trkLink(uri,_270,_271,_272,_273,true);
}else{
_273=stringReplace(_273,"&sw=0","");
trkLink(uri,_270,_271,_272,_273,false);
}
}
function pCover(_274){
_274=castString(_274);
var uri=wtGetParam(_274,"u");
var _276=wtGetParam(_274,"t");
var _277=wtGetParam(_274,"r");
var _278=wtGetParam(_274,"e");
_278=unescape(_278);
_278=stringReplace(_278,";;;","&");
trackFlash(uri,_276,_277,_278);
}
function pFan(_279){
var _27a=wtGetParam(_279,"ts");
var uri=_27a+"/fan"+wtGetParam(_279,"u")+".swf";
var _27c=wtGetParam(_279,"t");
var _27d="/fan"+wtGetParam(_279,"r")+".swf";
var _27e=wtGetParam(_279,"e");
_27e=stringReplace(_27e,";;;","&");
trackFlash(uri,_27c,_27d,_27e);
}
function pFanL(_27f){
var _280=wtGetParam(_27f,"ts");
var uri=_280+"/fan"+wtGetParam(_27f,"u")+".swf";
var _282=wtGetParam(_27f,"t");
var _283="/fan"+wtGetParam(_27f,"r")+".swf";
var _284=wtGetParam(_27f,"l");
var _285=wtGetParam(_27f,"e");
_285=stringReplace(_285,";;;","&");
trkLink(uri,_282,_283,_284,_285,false);
}
function trackFlash(uri,_287,_288,_289){
uri=castString(uri);
_287=castString(_287);
_288=castString(_288);
_289=castString(_289);
setTitle(_287);
DCS=new Object();
DCS.dcsuri=uri;
DCS.dcspro=window.location.protocol;
DCS.dcssip=window.location.hostname;
var _28a=new Date();
DCS.dcsdat=_28a.getTime();
if(_288.length==0){
_288=window.location.href;
}
DCS.dcsref=_288;
var _28b=getTitle()+dcsDCS()+_289;
dcsTrack(_28b);
}
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(_28f){
_sChangeFlashPage(_28f);
_hbPageView(_28f,hbx.pn);
}

