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

try{ var addMe=(document.location.href.indexOf('.go.com')==-1)?'tvplex-tsdev.online.disney.com':'tvplex.go.com'; }
catch(add){var addMe='tvplex-tsdev.online.disney.com';}
var _proto='http://';
try{ if (window.location.protocol == "https:"){ _proto='https://'; } } catch(lockpee){}
var root="";

try{ var _gpn=document.location.href.match(new RegExp("\/([^\/\?\.]*)\.htm"))[1]; } catch(peein){ var _gpn='index'; }
if (_gpn==""){_gpn="index";}
var _gmlc="/TVPlex/Scrubs_synd";
var _gacct="DM510312C3MA38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";
function hitIt(_hbpn,_hbmlc){ if (_hbmlc==null){ _hbmlc=_gmlc; }  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="'+_proto+'global.go.com/detect/scripts/master_flash_light.js"><\/scr'+'ipt>');

styles=[
["body","margin:0px; background:url(images/bg_tile.jpg) 0px 0px repeat-x #40BA93;"],
["body, td","font:12px tahoma; color:#084b4b;"],
[".subheader","font:bold 14px arial; color:#e83272;"],
[".padleft","padding-left:5px;"],
[".darker","background:#e5f6ee;"],
[".sm","width:100px;"],
[".footer","font:10px arial; color:#115c5b;"],
["a","text-decoration:none;"],
["#CHROME","background:#EFFEF7;"]
];
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")
}

function writePositioned(_code,_left,_top,_width,_height){
document.writeln('<div style="position:relative; height:1px; overflow:visible;">\
<div style="position:absolute; left:'+_left+'px; top:'+_top+'px; width:'+_width+'px; height:'+_height+'px; overflow:hidden;">'+_code+'</div></div>');
}

//$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 _xml=''; 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')"]);
for (tim=doTimeShift.arguments.length-1; tim>=0; tim--){
thistime=new Date(doTimeShift.arguments[tim][0]); offset=(today.toString().match(/(DT|Daylight)/gi)!=null)?7:8;
thistime.setHours(thistime.getHours()+(offset-(thistime.getTimezoneOffset()/60))); //ALL TIMES PACIFIC
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",root+"noflash.html");
}

function writePrivacy(elcolor,txtcolor){
elcolor=(elcolor==null)?'white':elcolor;
document.writeln('<font face="verdana, helvetica, arial" size="1" color="'+((txtcolor==null)?'#064C4A':txtcolor)+'">');
writeNBFooterSmall('&copy; Disney*ABC Domestic Television. All rights reserved.',null,elcolor);
rolloverInit();
}

function writeScrubsChrome(){
writeNBChrome("100%","#044E51",'<a href="http://bventertainment.go.com" class="bcb">BV Entertainment</a> <a class="bc">&gt;</a> <a href="http://bventertainment.go.com/tv/buenavista/scrubs/index.html" target="_top" class="bc">Scrubs</a>');
}

function writeNav(){

document.writeln('<table width="770" border="0" cellspacing="0" cellpadding="0" align="center">\
<tr><td rowspan="3"><img src="images/nav_logo.jpg" width="338" height="105" alt="Scrubs"></td>\
<td colspan="8"><img src="images/nav_top.jpg" width="432" height="24" alt=""></td></tr>\
<tr><td><a href="index.html" id="nav_home"><img id="inav_home" src="images/nav_home-off.jpg" width="47" height="18" border="0" alt="Home"></a></td>\
<td><img src="images/nav_sep1.jpg" width="21" height="18" alt=""></td>');
if (_gpn!="about"){
document.writeln('<td><a id="nav_about" href="about.html"><img id="inav_about" src="images/nav_about-off.jpg" width="119" height="18" border="0" alt="About The Show"></a></td>');
} else {
document.writeln('<td><img src="images/nav_about-on.jpg" width="119" height="18" border="0" alt="About The Show"></td>');
}
document.writeln('<td><img src="images/nav_sep2.jpg" width="21" height="18" alt="About The Show"></td>');
if (_gpn!="gallery"){
document.writeln('<td><a id="nav_gallery" href="gallery.html"><img id="inav_gallery" src="images/nav_gallery-off.jpg" width="65" height="18" border="0" alt="Gallery"></a></td>');
} else {
document.writeln('<td><img src="images/nav_gallery-on.jpg" width="65" height="18" border="0" alt="Gallery"></td>');
}
document.writeln('<td><img src="images/nav_sep3.jpg" width="19" height="18" alt=""></td>');
if (_gpn!="local_listings"){
document.writeln('<td><a id="nav_listings" href="local_listings.html"><img id="inav_listings" src="images/nav_listings-off.jpg" width="108" height="18" border="0" alt="Local Listings"></a></td>');
} else {
document.writeln('<td><img src="images/nav_listings-on.jpg" width="108" height="18" border="0" alt="Local Listings"></td>');
}
document.writeln('<td><img src="images/nav_sep4.jpg" width="32" height="18" alt=""></td></tr>\
<tr><td colspan="8"><img src="images/nav_bottom.jpg" width="432" height="63" alt="5 Nights A Week This Fall!"></td></tr>\
</table>');

}

function rollins(e){ /*---ROLLOVER FUNCTIONS---*/
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (j=0;j<myArraySet.length;j++){ if (myArraySet[j][0]==thislink.id+'_over'){document.getElementById(thislink.id).src=myArraySet[j][1].src; break;}}}
function unrollins(e){
if (window.event) { thislink = window.event.srcElement; } else if (e.target) { thislink = e.target; } else { return; }
for (k=0;k<myArraySet.length;k++){ if (myArraySet[k][0]==thislink.id){ document.getElementById(thislink.id).src=myArraySet[k][1].src; break;}}}
function rolloverInit(){
myArraySet=new Array(); myImages=new Array(); count=-1;
for (i=0;i<document.links.length;i++){
elk=document.links[i];
if (elk.id!=""){
bob=document.getElementById('i'+elk.id); unName=bob.src; count++;
c3=bob.src.replace(/_off\./gi,'_ovr.').replace(/_on\./gi,'_ovr.').replace(/-off\./gi,'-on.');
thisImage=new Image(); thisImage.src=c3; myArraySet[count]=new Array(bob.id+'_over',thisImage);
elk.onmouseover=rollins; count++; thisImage=new Image(); thisImage.src=unName; myArraySet[count]=new Array(bob.id,thisImage);elk.onmouseout=unrollins;
bob.src=c3; bob.src=unName; //FLIP REAL QUICK TO PRELOAD
}}}
