   function TwoStateRollOver(label,inactive,active,status) {
      this._canRoll   = _canThisBrowserHandleImageRolls();
      this._imageId   = label;
      this._winStatus = status;
      this.isActive   = false;
      if( this._canRoll ) {
         this.activeImg         = new Image();
         this.activeImg.src     = active;
         this.inactiveImg       = new Image();
         this.inactiveImg.src   = inactive;
      }
      this.mouseOver = _rollActive;
      this.mouseOut  = _rollInactive;
   }////////////////////
   function _rollActive(){
      if ( this._canRoll && !this.isSelected ){
         document.images[this._imageId].src = this.activeImg.src;
      }
      this.isActive = true
      window.status = this._winStatus;
   }////////////////////
   function _rollInactive(){
      if ( this._canRoll ){
         if( !this.isSelected ) {document.images[this._imageId].src = this.inactiveImg.src;}
      }
      this.isActive = false
      window.status = '';
   }////////////////////
   function _canThisBrowserHandleImageRolls() {
      if (navigator.appName == "Microsoft Internet Explorer") {
         if(parseInt(navigator.appVersion) >= 4) {
            return( 1 );
         } else {
            return( 0 );
         }
      } else if (navigator.appName == "Netscape") {
         if(parseInt(navigator.appVersion) >= 4) {  
            return( 1 );
         } else {
            return( 0 );
         }
      }
   }

      r0 = new TwoStateRollOver("Image1","images/1_episode_guide_off.gif", "images/1_episode_guide_on.gif", "Episode Guide");
      r1 = new TwoStateRollOver("Image2","images/2_cast_guest_stars_off.gif", "images/2_cast_guest_stars_on.gif", "Cast & Guest Stars");
      r2 = new TwoStateRollOver("Image3","images/3_out_takes_off.gif", "images/3_out_takes_on.gif", "Gallery");
      r3 = new TwoStateRollOver("Image4","images/4_games_quizes_off.gif", "images/4_games_quizes_on.gif", "Games & Quizzes");
      r4 = new TwoStateRollOver("Image5","images/side_music_off.gif", "images/side_music_on.gif", "Music");
      r5 = new TwoStateRollOver("Image6","images/6_fan_sites_off.gif", "images/6_fan_sites_on.gif", "Free Stuff");
      r6 = new TwoStateRollOver("Image7","images/7_medical_facts_off.gif", "images/7_medical_facts_on.gif", "Credits");
      r7 = new TwoStateRollOver("ImageBoards","images/side_boards_off.gif", "images/side_boards_on.gif", "Message Boards");

function openwinsoon(){
   var newwin = window.open('coming_soon.html','pop','scrollbars=no,resizable=no,width=300,height=300');
}

function writeFooter() {
document.writeln('<center><font face="Arial, helvetica" size="1">');
document.writeln('<a href="http://disney.go.com/corporate/legal/terms.html" TARGET="_blank">PLEASE CLICK HERE FOR LEGAL RESTRICTIONS AND TERMS OF USE APPLICABLE TO THIS SITE.</a><br>');
document.writeln('USE OF THIS SITE SIGNIFIES YOUR AGREEMENT TO THE TERMS OF USE.<br>');
document.writeln('<a href="http://disney.go.com/corporate/legal/wdig_privacy.html" TARGET="_blank">PLEASE CLICK HERE TO VIEW OUR INTERNET PRIVACY POLICY.</a><BR>');
document.writeln('&copy; Touchstone Television. All rights reserved.</font><br>');
}

function writeNav() {
document.writeln('<table cellspacing="0" cellpadding="7" border="0" background="images/left_image.gif"><tr><td>');
document.writeln('<table cellspacing="0" cellpadding="0" border="0" background="" width="140">');
document.writeln('<tr><td><a href="episode_guide.html" onmouseover="r0.mouseOver(); return true;" onmouseout="r0.mouseOut();"><img src="images/1_episode_guide_off.gif" width=107 height=43 alt="Episode Guide" border=0 name="Image1" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="cast_guest_stars.html" onmouseover="r1.mouseOver(); return true;" onmouseout="r1.mouseOut();"><img src="images/2_cast_guest_stars_off.gif" width=107 height=43 alt="Cast & Guest Stars" border=0 name="Image2" /></a></td>');
document.writeln('</tr>');
document.writeln('<td><a href="gallery.html" onmouseover="r2.mouseOver(); return true;" onmouseout="r2.mouseOut();"><img src="images/3_out_takes_off.gif" width=107 height=43 alt="Gallery" border=0 name="Image3" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="games_quizes.html" onmouseover="r3.mouseOver(); return true;" onmouseout="r3.mouseOut();"><img src="images/4_games_quizes_off.gif" width=107 height=42 alt="Games & Quizzes" border=0 name="Image4" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="music.html" onmouseover="r4.mouseOver(); return true;" onmouseout="r4.mouseOut();"><img src="images/side_music_off.gif" width=107 height=44 alt="Music" border=0 name="Image5" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="free_stuff.html" onmouseover="r5.mouseOver(); return true;" onmouseout="r5.mouseOut();"><img src="images/6_fan_sites_off.gif" width=107 height=42 alt="Free Stuff" border=0 name="Image6" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="credits.html" onmouseover="r6.mouseOver(); return true;" onmouseout="r6.mouseOut();"><img src="images/7_medical_facts_off.gif" width=107 height=42 alt="Credits" border=0 name="Image7" /></a></td>');
document.writeln('</tr><tr>');
document.writeln('<td><a href="javascript:goBoard();" onmouseover="r7.mouseOver(); return true;" onmouseout="r7.mouseOut();"><img src="images/side_boards_off.gif" width="107" height="42" alt="Message Boards" border="0" name="ImageBoards"></a></td>');
document.writeln('</tr></table>');
document.writeln('</td></tr></table>');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function goBoard() {
window.open("http://boards.go.com/cgi/scrubs/request.dll?LIST&room=tv_scrubs","ScrubsBoard","toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=780,height=490");
}

function popVideo() {
window.open('popvideo.html','ScrubsSupermanVideo','width=250,height=145,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');
}

//hitbox variables
var lastSlash // the position of the last slash in the path
var fileName  // the name of the file
var fullPath // full path to the file
fullPath = document.location;
var pathString  = new String(fullPath)   ; //convert the browser location to a string
lastSlash = pathString.lastIndexOf("/");
var pagename = pathString.substring(lastSlash+1,pathString.length-5);
var _pn= pagename;							//page name(s)
var _mlc="/TVPlex/Scrubs"; //multi-level content category
var _cp="null"; //campaign 
var _acct="DM510312C3MA38EN3;DM51030813MR38EN3;DM5103083LCA38EN3"; //account number(s) 
var _pndef="title"; //default page name 
var _ctdef="full"; //default content category 
var _dlf="n"; //download filter 
var _elf="n"; //exit link filter 
var _epg="n"; //event page identifier 
var _hcv=65; //code version 
var _mn="localagg"; //machine name 
var _gn="ehg-dig.hitbox.com"; //gateway name 
