window.onerror=function(){ return true; };

try{ var _gpn=document.location.href.match(new RegExp("\/([^\/\?\.]*)\.htm"))[1]; } catch(peein){ var _gpn='index'; }
if (_gpn==""){_gpn="index";}
var _gmlc="/TVPlex/AccordingToJim";
var _gacct="DM510312C3MA38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
function hitIt(_hbpn,_hbmlc){ try{ hitbox.Set_hbPageView(_hbpn,_hbmlc,_gacct); }catch(hb){}}

/* Start of studio.go.com/chrome/chrome.js */
var _proto='http://';
try{
	if (window.location.protocol == "https:") 
		_proto='https://';
} catch(e){}

var chromeOptions='<option selected="selected">Partner Sites</option>\
	<option value="">-----------</option>\
	<option value="http://bventertainment.go.com">BV Entertainment Home</option>\
	<option value="http://abc.go.com">ABC.com</option>\
	<option value="http://abcfamily.go.com">ABCFamily.com</option>\
	<option value="http://ebertandroeper.tv">Ebert &amp; Roeper</option>\
	<option value="http://hollywoodrecords.go.com">Hollywood Records</option>\
	<option value="http://liveregisandkelly.com">Live with Regis and Kelly</option>\
	<option value="http://www.lyricstreet.com">Lyric Street Records</option>\
	<option value="http://www.miramax.com">Miramax Films</option>\
	<option value="http://www.movies.com">Movies.com</option>\
	<option value="http://scrubs-tv.com">Scrubs</option>\
	<option value="http://soapnet.go.com">SOAPnet</option>\
	<option value="http://touchstonepictures.go.com">Touchstone Pictures</option>\
	<option value="http://video.go.com">Video.com</option>\
	<option value="http://millionairetv.com">Who Wants...Millionaire?</option>';

function writeNBChrome(width,bgcolor,breadcrumb,textcolor,nosearch){
	if (width == null)
		width = '770';
	if (bgcolor == null)
		bgcolor = 'black';
	if (breadcrumb == null)
		breadcrumb = '';
	if (textcolor == null)
		textcolor = 'white';
	
	document.writeln('<style>');
	document.writeln('a.bcb { color:'+textcolor+' !important; font-size:10px !important; text-decoration:none !important; font-weight:bold !important; font-family:verdana, arial, helvetica !important; }');
	document.writeln('a.bc { color:'+textcolor+' !important; font-size:10px !important; text-decoration:none !important; font-weight:normal !important; font-family:verdana, arial, helvetica !important; }');
	document.writeln('a.sch { color:'+textcolor+' !important; font-size:11px !important; text-decoration:none !important; font-weight:bold !important; font-family:verdana, arial, helvetica !important; }');
	document.writeln('.ChromeTop {color:'+textcolor+' !important; font-size:16px !important; text-decoration:none;}');
	document.writeln('.ChromeInput {font-size:12px !important;}');
	document.writeln('.ChromeMenu {font-size:11px !important; font-family: arial, helvetica, sans-serif !important;}');
	document.writeln('</style>');
	document.writeln('<table border="0" cellpadding="0" cellspacing="0" width='+width+' height="28" bgcolor="'+bgcolor+'">');
	document.writeln('<tr><td align="left" style="vertical-align:middle !important;">');
	document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.writeln('<form name="_chrome" id="_chromeform" action="http://search.studio.go.com/studio/query.html" method="post" target="_top">');
	document.writeln('<input type="hidden" name="clk" value="1004580">');
	document.writeln('<tr><td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="5" height="1"></td><td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="250" height="1"></td><td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="5" height="1"></td><td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="170" height="1"></td>');
	
	if (nosearch!=true)
		document.writeln('<td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="10" height="1"></td><td><img src="'+_proto+'global.go.com/secure/studio/blank.gif" border="0" width="180" height="1"></td>');
	
	document.writeln('</tr><tr><td width="5">&nbsp;</td><td valign="middle" nowrap style="vertical-align:middle !important;">');
	document.writeln(breadcrumb);
	document.writeln('</td><td width="10">&nbsp;</td>');
	
	if (nosearch!=true)
		document.writeln('<td align="center" style="vertical-align:middle !important;">');
	else document.writeln('<td align="right" style="vertical-align:middle !important; padding-right:6px;">');
	
	document.writeln('<font face="arial, helvetica, sans-serif" size="1">');
	document.writeln('<select name="navigation" size="1" class="ChromeMenu" ONCHANGE="if (this.form.navigation.options[this.form.navigation.selectedIndex].value) top.location.href=this.form.navigation.options[this.form.navigation.selectedIndex].value">');
	document.writeln(chromeOptions);
	document.writeln('</select>')
	
	if (nosearch!=true){
		document.writeln('</td><td width="10">&nbsp;</td>');
		document.writeln('<td align="right" style="vertical-align:middle !important;"><nobr><a href="http://jas.disney.go.com/cgi-bin/Click.cgi?code=16694&url=http://search.studio.go.com/studio/index.html" TARGET="_top" class="sch">Search:&nbsp;</a>');
		document.writeln('<input type="text" name="keyword" size="15" class="ChromeInput">');
		document.writeln('<input type="image" src="'+_proto+'global.go.com/secure/studio/go.gif" alt="Go" border="0" align="absmiddle">&nbsp;</nobr>');
	}
	
	document.writeln('</td></tr></form></table></td></tr></table>');
}

function writeNBFooter(copyright,font,linkcolor){
	writeNBFooterSmall(copyright,font,linkcolor);
}

function writeNBFooterSmall(copyright,font,linkcolor){
	document.writeln('<style>#termslink{ font-weight:bold; color:red; }</style>');
	document.writeln('<div align="center" id="chromefooterdiv"><div id="footerspacer"><br></div>');
	
	if (font != null)
		document.writeln(font);
	else document.write('<span style="font:10px verdana;">');
	
	document.write('<a href="http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/corporate/legal/wdig_privacy.html&name=g_legalFooter_privacypolicy" target="_blank"'+((linkcolor!=null)?' style="color:'+linkcolor+'"':'')+'>Privacy Policy/Your California Privacy Rights</a> | <a href="http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/corporate/legal/safety_tips.html&name=g_legalFooter_internetsafety" target="_blank"'+((linkcolor!=null)?' style="color:'+linkcolor+'"':'')+'>Internet Safety</a> | <a href="http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/corporate/legal/terms.html&name=g_legalFooter_termsofuse" target="_blank" style="color:'+linkcolor+'">Terms of Use</a><br>');
	
	if (copyright != null)
		document.writeln(copyright);
	if (font!=null)
		document.writeln((font.match(/span/gi)!=null)?"</span>":"</font>");
	else document.writeln('</span>');
	
	document.write('</div>');
}
/* End of studio.go.com/chrome/chrome.js */

document.writeln('<scr'+'ipt language="javascript" src="http://global.go.com/detect/scripts/master_flash_light.js"><\/scr'+'ipt>');

styles=[
["body","margin:0; background:#FF7E05; padding:0 0 10px 0;"],
[".header","font:bold 16px arial; color:#3b3b3b;"],
[".subheader","font:bold 14px arial; color:#3b3b3b;"],
["a, a:link","color:#990000;"],
[".orange","background:#ffddb2;"],
[".fade","background:url(images/listing_fade.gif) repeat-y;"],
[".text","font:12px/16px arial; color:#000000;"],
[".padleft","padding-left:5px;"],
[".footer","font:10px arial; color:#a75e01;"],
["input.med, textarea.med","width:250px;"]
];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');

function params(wut,qp,dflt){ dflt=(dflt==null)?'':dflt; try{r=unescape(wut.match(new RegExp(qp+"=+([^&;]*)"))[1]);}catch(qp){r=dflt;} return r; }
function addZero(vNumber){ return ((vNumber<10)?"0":"")+vNumber; }
function gid(_id){ return document.getElementById(_id); }
function inner(_gid,_text){ gid(_gid).innerHTML=_text; }

function centerIt(popW,popH,urlToCenter,centeredWinName){
leftPos=(screen.availWidth-popW)/2; topPos=(screen.availHeight-popH)/2;
return window.open(urlToCenter,centeredWinName,"width="+popW+",height="+popH+",left="+leftPos+",top="+topPos+",statusbar=0,scrollbars=0")
}

//$flash({ movie:'topflash.swf', w:'100%', h:'163' }).render();
function $flash(ef){ //{ movie:'', w:'', h:'', bgcolor:'', base:'', vars:'' }
ef.w=(ef.w==null)?'590':ef.w; ef.h=(ef.h==null)?'450':ef.h;
sendback={}
flashstr='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ef.w+'" height="'+ef.h+'"><param name="movie" value="'+ef.movie+'"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="opaque"><param name="scale" value="noscale">';
if (ef.base!=null){flashstr+='<param name="base" value="'+ef.base+'">'; }
if (ef.bgcolor!=null){flashstr+='<param name="bgcolor" value="'+ef.bgcolor+'">'; }
if (ef.vars!=null){flashstr+='<param name="flashvars" value="'+ef.vars+'">'; }
flashstr+='<embed src="'+ef.movie+((ef.vars!=null)?'?'+ef.vars:'')+'" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ef.w+'" height="'+ef.h+'" swLiveConnect="true" wmode="opaque" scale="noscale"';
if (ef.base!=null){flashstr+=' base="'+ef.base+'"'; }
if (ef.bgcolor!=null){flashstr+=' bgcolor="'+ef.bgcolor+'"'; }
if (ef.vars!=null){flashstr+=' FlashVars="'+ef.vars+'"'; }
flashstr+='></embed></object>';
sendback.toString=function(){ return flashstr; }
sendback.render=function(){ document.writeln(flashstr); }
return sendback;
}

var today=new Date(); var _timeflip=false;
function getToday(){
if (params(location.search,'time','')!=''){
today=new Date(params(location.search,'time')); document.cookie='time='+today+'; path=/;';
document.writeln('<div style="position:absolute; top:0px; left:0px; width:250px; height:16px; font:bold 11px arial; color:white; background:#072B5E; border:1px solid white; overflow:hidden; z-index:100;">&nbsp; time: '+today.toString()+'</div>');
} else if (params(document.cookie,'time','')!=''){ today=new Date(params(document.cookie,'time'));
document.writeln('<div style="position:absolute; top:0px; left:0px; width:250px; height:16px; font:bold 11px arial; color:white; background:#072B5E; border:1px solid white; overflow:hidden; z-index:100;">&nbsp; time: '+today.toString()+'</div>');
} else { document.writeln('<scr'+'ipt language="javas'+'cript" src="http://dolutils.go.com/dolutils/tv/funct'+'ions?vars=today"></scr'+'ipt>'); }
}

function doTimeShift(){ //USAGE= doTimeShift(["July 4, 2005","alert('whatever')"], ["July 5, 2005","alert(today)"], ["July 6, 2005","alert('6th')"]);
offset=(today.toString().match(/(DT|Daylight|700)/gi)!=null)?7:8;
for (tim=doTimeShift.arguments.length-1; tim>=0; tim--){
thistime=new Date(doTimeShift.arguments[tim][0]+" GMT-0"+offset+"00");
if (today>=thistime){ eval(doTimeShift.arguments[tim][1]); _timeflip=true; break; }
}}

function flipCSS(){
styles=[ ["#SHOWER, #OLDER","display:none;"],["#STEALTH, #NEWER","display:block;"] ];
document.writeln('<style>');  for (sty in styles){ document.writeln(styles[sty][0]+'{ '+styles[sty][1]+' }'); }  document.writeln('</style>');
}

function setShowHide(dt,id,act){ //setShowHide("February 11, 2006 0:01","RERUNS","hide")
notyet='none'; nowisok='block'; try{ if (act.match(/(0|hid|none)/gi)!=null){ notyet='block'; nowisok='none'; }}catch(ssh){}
document.writeln('<style>#'+id+'{ display:'+((today<new Date(dt))?notyet:nowisok)+' }</style>');
}

function setScrollColor(_facecolor,_id){
faceup=''; facedown=''; _facecolor=_facecolor.replace(/\#/g,'');
R=parseInt(_facecolor.substring(0,2),16); G=parseInt(_facecolor.substring(2,4),16); B=parseInt(_facecolor.substring(4,6),16);
if(R<240){R+=16;} else if(R<255){R=255;} R=R.toString(16); R=(R.length==1)?R='0'+R:R;
if(G<240){G+=16;} else if(G<255){G=255;} G=G.toString(16); G=(G.length==1)?G='0'+G:G;
if(B<240){B+=16;} else if(B<255){B=255;} B=B.toString(16); B=(B.length==1)?B='0'+B:B;
faceup=''+R+G+B;
R=parseInt(_facecolor.substring(0,2),16); G=parseInt(_facecolor.substring(2,4),16); B=parseInt(_facecolor.substring(4,6),16);
if(R>15){R-=16;} else if(R>0){R=0;} R=R.toString(16); R=(R.length==1)?R='0'+R:R;
if(G>15){G-=16;} else if(G>0){G=0;} G=G.toString(16); G=(G.length==1)?G='0'+G:G;
if(B>15){B-=16;} else if(B>0){B=0;} B=B.toString(16); B=(B.length==1)?B='0'+B:B;
facedown=''+R+G+B;
document.writeln('<style>'+((_id==null)?'body':_id)+'{ scrollbar-shadow-color:#000000; scrollbar-track-color:#666666; scrollbar-3dlight-color:#666666; scrollbar-arrow-color:#ffffff; scrollbar-base-color:#000000; scrollbar-highlight-color:#'+faceup+'; scrollbar-darkshadow-color:#'+facedown+'; scrollbar-face-color:#'+_facecolor+'; }</style>');
}

function DoFlashDetection(){
CreateInterface(); DetectFlash("8","noflash.html");
}

function writePrivacy(elcolor,txtcolor){
elcolor=(elcolor==null)?'white':elcolor;
document.writeln('<span style="font:11px verdana; color:'+((txtcolor==null)?'#000':txtcolor)+'">');
//document.writeln('<br><a href="https://register.go.com/regisandkelly/index" style="color:'+elcolor+';">Register</a> | <a href="https://register.go.com/regisandkelly/lists" style="color:'+elcolor+';">Guest Services</a> | <a href="http://register.go.com/go/goFAQ" style="color:'+elcolor+';" target="_blank">Help</a><br></span>');
writeNBFooterSmall('&copy; Disney*ABC Domestic Television. All rights reserved.',null,elcolor);
}

function writeA2JChrome(){
writeNBChrome("100%","#FF7E05",'<a href="http://bventertainment.go.com" class="bcb">BV Entertainment</a> <a class="bc">&gt;</a> <a href="http://bventertainment.go.com/tv/buenavista/accordingtojim/index.html" target="_top" class="bc">According To Jim</a>');
}

/*--LINK DISCLAIMER--*/
function GOurl(url) {
_width=360; _height=170;
if (url.match(/http:/gi)==null){ url="http://"+url; }
var pip=window.open("","disclaimer","width="+_width+",height="+_height+",top=1,left=1,statusbar=0,scrollbars=0"); pdiddy=pip.document;
pdiddy.write('<html><head><title>Disclaimer</title><scr'+'ipt type="text/javascript" language="javascript">sendTimer = setTi'+'meout("sendToClientSide()",1500);closeTimer = setTi'+'meout("window.close()",15000);func'+'tion sendToCli'+'entSide(){window.op'+'en("'+url+'");}</scr'+'ipt></head><body bgcolor="#FFA805" text="#000000" link="#ffffff" vlink="#ffffff" alink="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background:url(images/disclaimer-bg.jpg) no-repeat center; background-color:#FFA805;"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:2px solid #FF0000; height:'+_height+'px;"><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="8"><tr><td><p align="justify" style="margin-top:4px"><font style="font:bold 11px arial,helvetica;">');
pdiddy.write('The web site you are about to link to is not controlled by "According to Jim" and different terms of use and privacy policy will apply. By proceeding you agree and understand that BVTV is not responsible for the site you are about to access.');
pdiddy.write('<br><div style="height:15px"><block type="spacer" width="1" height="1"><br></div>If your page does not load within a few seconds, please <nobr><a href="javascript:sendToCli'+'entSide();">click here</a> </nobr>to open it.<div align="center" style="font:bold 10px arial; margin-top:10px;"><a href="javascript:window.close();">close this window</a></div></td></tr></table></td></tr></table></body></html>');
pdiddy.close();
}
/*--END LINK DISCLAIMER--*/
