/*******************************************************************************/
/*******************************************************************************/
/* Functions for the About BJC pages                                           */
/*******************************************************************************/
/*******************************************************************************/

/**************************************************************/
/* preload the pictures for the About page                    */
/**************************************************************/
function preloadAbout() {
 if (document.images) {
   img1  = new Image();
   img1.src  = "/images/about/MikeWright_large.jpg";
   img2  = new Image();
   img2.src  = "/images/about/BillMoltenbrey_large.jpg";
   img3  = new Image();
   img3.src  = "/images/about/TammyWilliams_large.jpg";
   img4  = new Image();
   img4.src  = "/images/about/JasonPons_large.jpg";
   img5  = new Image();
   img5.src  = "/images/about/DJKorzyniewski_large.jpg";
   img6  = new Image();
   img6.src  = "/images/about/DaveMills_large.jpg";
   img7  = new Image();
   img7.src  = "/images/about/JamieRistau_large.jpg";
   img8  = new Image();
   img8.src  = "/images/about/MaryGarcia_large.jpg";
 }
}

/*******************************************************************************/
/* show the bio info for one of the execs (About page)                         */
/*******************************************************************************/
function showInfo(inGroup, inName) {

  resetAbout();
  
  smallPics(inGroup);
  
  /* make the chosen picture large */
  if(document.images) {
    document.images[inName].src='/images/about/' + inName + '_large.jpg';
    document.images[inName].width='300';
  }
  
  /* expose the chosen bio text */
  if (document.getElementById) { 
     document.getElementById(inName + 'Row').className = 'showrow'; 
  } 

  /* expose the 'reset' link */
  if (document.getElementById) { 
     document.getElementById(inName + 'More').style.display = 'none';
     document.getElementById(inName + 'Reset').style.display = 'inline';
  } 

}

/*******************************************************************************/
/* shrink the pictures for one of the groups to the small size  (About page)   */
/*******************************************************************************/
function smallPics(inGroup) {

  if(inGroup == 'mt') {
    if(document.images) {
      document.images['MikeWright'].src='/images/about/MikeWright_small.jpg';
      document.images['MikeWright'].width='140';
      document.images['BillMoltenbrey'].src='/images/about/BillMoltenbrey_small.jpg';
      document.images['BillMoltenbrey'].width='140';
      document.images['TammyWilliams'].src='/images/about/TammyWilliams_small.jpg';
      document.images['TammyWilliams'].width='140';
    }
  }
  
  if(inGroup == 'otd') {
    if(document.images) {
      document.images['JasonPons'].src='/images/about/JasonPons_small.jpg';
      document.images['JasonPons'].width='140';
      document.images['DJKorzyniewski'].src='/images/about/DJKorzyniewski_small.jpg';
      document.images['DJKorzyniewski'].width='140';
    }
  }
  
  if(inGroup == 'oto') {
    if(document.images) {
      document.images['DaveMills'].src='/images/about/DaveMills_small.jpg';
      document.images['DaveMills'].width='140';
      document.images['JamieRistau'].src='/images/about/JamieRistau_small.jpg';
      document.images['JamieRistau'].width='140';
      document.images['MaryGarcia'].src='/images/about/MaryGarcia_small.jpg';
      document.images['MaryGarcia'].width='140';
    }
  }
  
}

/*******************************************************************************/
/* restore the normal sized pictures  (About page)                             */
/*******************************************************************************/
function resetAbout() {

  /* set up the expand all / reset all links */
  if (document.getElementById) { 
     document.getElementById('expandAll').style.display = 'inline';
     document.getElementById('resetAll').style.display = 'none';
     document.getElementById('expandAllBot').style.display = 'inline';
     document.getElementById('resetAllBot').style.display = 'none';
  }
  
  /* hide all info rows and seperator lines */
  if (document.getElementById) { 
     document.getElementById('MikeWrightRow').className = 'nodisplay'; 
     document.getElementById('BillMoltenbreyRow').className = 'nodisplay'; 
     document.getElementById('TammyWilliamsRow').className = 'nodisplay'; 
     document.getElementById('linemt1').className = 'nodisplay'; 
     document.getElementById('linemt2').className = 'nodisplay'; 
     document.getElementById('linemt3').className = 'nodisplay'; 

     document.getElementById('JasonPonsRow').className = 'nodisplay';
     document.getElementById('DJKorzyniewskiRow').className = 'nodisplay'; 
     document.getElementById('lineotd1').className = 'nodisplay'; 
     document.getElementById('lineotd2').className = 'nodisplay'; 

     document.getElementById('DaveMillsRow').className = 'nodisplay';
     document.getElementById('JamieRistauRow').className = 'nodisplay';
     document.getElementById('MaryGarciaRow').className = 'nodisplay';
     document.getElementById('lineoto1').className = 'nodisplay'; 
     document.getElementById('lineoto2').className = 'nodisplay'; 
     document.getElementById('lineoto3').className = 'nodisplay'; 
  } 

  /* reset the more/reset links */
  if (document.getElementById) { 
     document.getElementById('MikeWrightMore').style.display = 'inline';
     document.getElementById('MikeWrightReset').style.display = 'none';
     document.getElementById('BillMoltenbreyMore').style.display = 'inline';
     document.getElementById('BillMoltenbreyReset').style.display = 'none';
     document.getElementById('TammyWilliamsMore').style.display = 'inline';
     document.getElementById('TammyWilliamsReset').style.display = 'none';

     document.getElementById('JasonPonsMore').style.display = 'inline';
     document.getElementById('JasonPonsReset').style.display = 'none';
     document.getElementById('DJKorzyniewskiMore').style.display = 'inline';
     document.getElementById('DJKorzyniewskiReset').style.display = 'none';

     document.getElementById('DaveMillsMore').style.display = 'inline';
     document.getElementById('DaveMillsReset').style.display = 'none';
     document.getElementById('JamieRistauMore').style.display = 'inline';
     document.getElementById('JamieRistauReset').style.display = 'none';
     document.getElementById('MaryGarciaMore').style.display = 'inline';
     document.getElementById('MaryGarciaReset').style.display = 'none';
  } 

  /* reset all pictures to normal size */
  if(document.images) {
    document.images['MikeWright'].src='/images/about/MikeWright.jpg';
    document.images['MikeWright'].width='200';
    document.images['BillMoltenbrey'].src='/images/about/BillMoltenbrey.jpg';
    document.images['BillMoltenbrey'].width='200';
    document.images['TammyWilliams'].src='/images/about/TammyWilliams.jpg';
    document.images['TammyWilliams'].width='200';

    document.images['JasonPons'].src='/images/about/JasonPons.jpg';
    document.images['JasonPons'].width='200';
    document.images['DJKorzyniewski'].src='/images/about/DJKorzyniewski.jpg';
    document.images['DJKorzyniewski'].width='200';

    document.images['DaveMills'].src='/images/about/DaveMills.jpg';
    document.images['DaveMills'].width='200';
    document.images['JamieRistau'].src='/images/about/JamieRistau.jpg';
    document.images['JamieRistau'].width='200';
    document.images['MaryGarcia'].src='/images/about/MaryGarcia.jpg';
    document.images['MaryGarcia'].width='200';
  }

}

/*******************************************************************************/
/* Expand all the information content  (About page)                            */
/*******************************************************************************/
function expandAllAbout() {

  resetAbout();

  /* set up the expand all / reset all links */
  if (document.getElementById) { 
     document.getElementById('expandAll').style.display = 'none';
     document.getElementById('resetAll').style.display = 'inline';
     document.getElementById('expandAllBot').style.display = 'none';
     document.getElementById('resetAllBot').style.display = 'inline';
  }
  

  /* show all info rows and seperator lines */
  if (document.getElementById) { 
     document.getElementById('MikeWrightRow').className = 'showrow'; 
     document.getElementById('BillMoltenbreyRow').className = 'showrow'; 
     document.getElementById('TammyWilliamsRow').className = 'showrow'; 
     document.getElementById('linemt1').className = 'showrow'; 
     document.getElementById('linemt2').className = 'showrow'; 
     document.getElementById('linemt3').className = 'showrow'; 

     document.getElementById('JasonPonsRow').className = 'showrow';
     document.getElementById('DJKorzyniewskiRow').className = 'showrow'; 
     document.getElementById('lineotd1').className = 'showrow'; 
     document.getElementById('lineotd2').className = 'showrow'; 

     document.getElementById('DaveMillsRow').className = 'showrow';
     document.getElementById('JamieRistauRow').className = 'showrow';
     document.getElementById('MaryGarciaRow').className = 'showrow';
     document.getElementById('lineoto1').className = 'showrow'; 
     document.getElementById('lineoto2').className = 'showrow'; 
     document.getElementById('lineoto3').className = 'showrow'; 
  } 

}
