/* Before Pictures are 90x105  */
/* After Pictures are 250x250 (max) */

/* Global Variables */
var d = document;
var dc    = "District of Columbia";
var theObj= "";
var fEven = false;
var day      = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var month    = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var state    = new Array("Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia",
                         "Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts",
                         "Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey",
                         "New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island",
                         "South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia",
                         "Wisconsin","Wyoming",
                         dc,"Puerto Rico",
                         "Alberta","British Columbia","Quebec","Ontario","Manitoba",
                         "Australia","England","France","Niger");

var stateCnt = new Array( state.length );

/* Global Constants */
var DECEASED = "restInPeace";
 
var email = new Array( 'mlym8@yahoo.com',                              //#1 Count, #0 Index Mark Lymus
                       'desatnicka@aol.com',                           // 2   Allison Inglesby (Desatnick)          
                       'doc_amwhit@msn.com',                           // 3   Angela Whitaker (Edmonds)              
                       'laaahall@aol.com',                             // 4   Andrea Ignacio (Hall)
                       'eric@natalieanderic.com',                      // 5   Eric Brown                            x
                       'speightb@panthers.nfl.com,Speight_b@bellsouth.net', // 6   Bruce Speight
                       'andrea.carter@atlantaspirit.com',              // 7   Andrea Carter
                       'tonyamimi@aol.com',                            // 8   Tonya Bass (Hunter)
                       'hoovabh@starpower.net',                        // 9   Ashley Hoover
                       'bruegge@sbcglobal.net',                        // 10  Wendy Rodano (Brueggeman)
                       'beachsoul68@comcast.net,epallia@comcast.net',  // 11  Emanuelle Pallia
                       'detrick.gales@usace.army.mil',                 // 12  Detrick Gales
                       'asrobinson@mindspring.com',                    // 13  Angela Robinson
                       'jwoollatt@sbcglobal.net',                      // 14  Jennifer Marks
                       'mdsrns@mac.com,mds@cmu.edu',                   // 15  Michael Smith
                       'gorget1234@yahoo.com',                         // 16  Sharon Morey
                       'ckelly@cc-md.org,akelly1499@suscom.net',       // 17  Chris Kelly 
                       'slin@stanfordalumni.org,slin04@gmail.com',     // 18  Susan Lin
                       'sheryl1225@verizon.net',                       // 19  Sheryl Hicks
                       'lorichilds@verizon.net',                       // 20  Lori Wiener Childs
                       'tvaillant@landam.com',                         // 21  Tracie Ritchie Vaillant
                       'fnaz@bex.net,sales@mustangmh.com',             // 22  Fred Nasrallah          
                       'villaruzt@cs.com',                             // 23  Al Villaruz             
                       'russfink@hotmail.com',                         // 24  Russell Fink        
                       'mghb2003@yahoo.com',                           // 25  Welby Croson        
                       'Diane.craft@comcast.net',                      // 26  Diane Doffermyre Craft
                       'NavyJoe@sluggy.net,jkkr12@aol.com',            // 27  Henry Fields   
                       'prosinger@hotmail.com,prosinger@gmx.de',       // 28  Janet Rubin   
                       'lambic2@aol.com',                              // 29  Jeff Bass   
                       'eric.bennett@sbcglobal.net',                   // 30  Eric Bennett        
                       'fredware_2000@yahoo.com',                      // 31  Fred Ware        
                       'KDIstvan@aim.com,kkncottn@aim.com',            // 32  Kim Johnson (Istvan)
                       'lhargrove@maynardcooper.com',                  // 33  Lorrie Lizak (Hargrove)
                       'MTaylor@ncqa.org,MsCheleT@comcast.net',        // 34  Michele Taylor           
                       'mhiskey@ajc.com',                              // 35  Michelle Hiskey          
                       'rogomanp@comcast.net',                         // 36  Jennifer Janus (Rogofsky)
                       'dogteam@hotmail.com,joe.l.boone@usda.gov',     // 37  Joe Boone                 
                       'CPpncl@aol.com',                               // 38  Christina Papanicolas                 
                       'ckw@exchange.nih.gov',                         // 39  Chantel Walker (Steward)
                       'Dark_Star_superman@yahoo.com,Andrew.Mack@cms.hhs.gov', // 40  Andy Mack                 
                       'wandaeason@aol.com',                           // 41  Wanda Eason (Norman)
                       'jkmcgowan33@hotmail.com,Jodi.McGowan@zurichna.com', // 42  Jodi McGowan
                       'MGWTRAVELS@aol.com  ',                         // 43  Michelle Watson (Eze)
                       'lisalanglee@bellsouth.net',                    // 44  Lisa Langley (Wiley)
                       'acwmini@cablespeed.com',                       // 45  Steve May             
                       'suemay100@hotmail.com',                        // 46  Susan Foote (May)     
                       'lstemmy@hotmail.com',                          // 47  Lynn Stemmy (Davis)
                       'dhawkins@comcast.net,thethingg@yahoo.com',     // 48  Dean Hawkins
                       'khughes25@comcast.net',                        // 49  Kenny Hughes
                       'Lizzy_wic@yahoo.com',                          // 50  Lizzy Blahut (Brewster)
                       'Dawns01ss@aol.com',                            // 51  Dawn Riddle (Brink)
                       'tdouble2k@tampabay.rr.com',                    // 52  Troy Thomas             
                       'dgl@pix.net',                                  // 53  Debbie Greenberg (Lidl)             
                       'katelnorth@yahoo.com',                         // 54  Katy Bielenberg (North)             
                       'beachllama@gmail.com',                         // 55  Kristen Oberright             
                       'naja@frelich.us',                              // 56  Naja Leitch (Frelich)        
                       'kalowrey@yahoo.com',                           // 57  Kirsten Lowrey (Casey)        
                       'nanyamba@yahoo.com',                           // 58  Alexander Barnes     
                       'stacey@todaystanning.com',                     // 59  Stacey Bowie (Lauseng)
                       'jackr@mac.com',                                // 60  Jack Rosenzweig        
                       'callrob@gmail.com',                            // 61  Robbie Schmelzer       
                       'drbikelove@gmail.com,drbikelove@yahoo.com',    // 62  Lloyd Hanna       
                       'sd112987@earthlink.net',                       // 63  Sheena Hester          
                       'welchlouise@hotmail.com',                      // 64  Louise Welch           
                       DECEASED,                                       // 65  Vincent Li          
                       DECEASED,                                       // 66  Michelle Miller        
                       DECEASED,                                       // 67  Ramon Morgenstein      
                       DECEASED,                                       // 68  Lonnie Hanckock       
                       'reesecupd@yahoo.com',                          // 69  Carolynn Meier (de Tessieres)  
                       'JChappellj@aol.com',                           // 70  Alice Lange (Chappell)  
                       'Robinshood@hotmail.com',                       // 71  Raymond Robinson            
                       'terencesheppard@verizon.net',                  // 72  Terence Sheppard            
                       'Jen111Dave@AOL.com',                           // 73  Jennifer Rhue (Ricketts)    
                       'mbachkosky@yahoo.com',                         // 74  Mary Fitzmaurice (Bachkosky)  
                       'bigcat66504@adelphia.net',                     // 75  Dwayne Williams             
                       DECEASED,                                       // 76  Robert Gompers        
                       'kerrymccoy@verizon.net',                       // 77  Kerry McCoy                 
                       'kcomp78810@hotmail.com',                       // 78  Kimberly Compton (Cant)     
                       'rjfsbf@hotmail.com',                           // 79  Susan Behenna (Fuller)      
                       'ria@mann-home.com',                            // 80  Maria "Ria" Jahn (Mann)     
                       'makvkvk@mindspring.com',                       // 81  Valerie Van Note (Kreider)   
                       'kevin.guile@pepsi.com,gqstomp@aol.com',        // 82  Kevin Guile
                       'rangerbp1@hotmail.com',                        // 83  Dennis Ducosin
                       'kputens@rcp.com',                              // 84  Kimberly Putens
                       'dflewis@netzero.com',                          // 85  Donna Fisher (Lewis)
                       'blyons30@aol.com',                             // 86  Benita Lyons          
                       'slimman32@yahoo.com',                          // 87  Tyuan Rice          
                       'adam.grotke@fedbid.com',                       // 88  Adam Grotke
                       'hamlinjosh@yahoo.com',                         // 89  Josh Hamlin
                       'ndix92@hotmail.com',                           // 90  Nicole Rodgers (Dixon)
                       'purshelle@aol.com',                            // 91  Purshelle "Shelley" Taylor
                       'MamaSchaffer@aol.com',                         // 92  Rachel McAtee (Schaffer)
                       'khall1161@comcast.net',                        // 93  Kimberly Hall
                       'drherring1@msn.com,dherring1@msn.com',         // 94  Donna Herring
                       'lawrenceselleh@comcast.net',                   // 95  Larry Selleh 
                       'marcygonzales@mindspring.com',                 // 96  Marcy Smith (Gonzales)
                       'mmellott35@bellsouth.net',                     // 97  Matthew Mellott            
                       'eweaver@kunzler.com',                          // 98  Eric Weaver               
                       'dikblik67@aol.com,jocemacy@comcast.net',       // 99  Tim Macy                  
                       'brendashell@mindspring.com',                   // 100 Brenda Shell (Schneider)
                       'csa3@comcast.net',                             // 101 Sherita Hill (Golden)    
                       'kristin.o\'keefe@montgomerycollege.edu',       // 102 Kristin Terchek (O'Keefe)
                       'KimberlyRBarnes2@aol.com',                     // 103 Kimberly Barnes
                       'pgarrett7908@yahoo.com,Patricia.Garrett@fsis.usda.gov',    // 104 Patricia "Patty" Garrett
                       'bevan.das@pobox.com',                          // 105 Bevan Das               
                       'doconnor48@comcast.net',                       // 106 David O'Connor          
                       'donald.a.chomas@smithbarney.com',              // 107 Don Chomas             
                       'andyblocker@comcast.net',                      // 108 Ananias "Andy" Blocker
                       'vpoole@aqua.org',                              // 109 Vicky Poole            
                       'Gwaltneykr@state.gov',                         // 110 Kiviette Seabron (Gwaltney)
                       'yolandaL.gaston@dhs.gov,agem4heaven@yahoo.com',// 111 Yolanda Jones (Gaston)       
                       'cbach23@hotmail.com',                          // 112 Cameron Boswell (Bach)       
                       'wolf_larsen68@yahoo.com',                      // 113 Dawn Green                   
                       'tena69cancer@yahoo.com',                       // 114 LaChele "Tena" Jacobs (Brewington)
                       'nichellefoster@yahoo.com',                     // 115 Nichele "Nikki" Lambert (Foster)  
                       'Karen.Owens@usdoj.gov',                        // 116 Karen Moore (Owens)
                       'Talaya_McKinney@yahoo.com',                    // 117 Talaya "Tay" Boardley (McKinney)
                       'garyhahn1@comcast.net',                        // 118 Phil Hahn
                       'sheppard@pire.org',                            // 119 Monique Robertson (Sheppard)
                       'jamespinkney@hotmail.com',                     // 120 James Pinkney                
                       'steveschell@verizon.net',                      // 121 Steve Schell                 
                       'elderelectkrb@yahoo.com',                      // 122 Kimberly Parrott (Brown)     
                       'lkrivak@yahoo.com',                            // 123 Lisa Glasier (Krivak)     
                       'haywoodnorth@mris.com,north@mris.com',         // 124 Haywood North             
                       'tlbyron86@afofamily.net',                      // 125 Tracy Byron               
                       'karenacquah@netzero.net',                      // 126 Karen Grant Acquah        
                       'chellywms@aol.com',                            // 127 Michelle Akers (Williams) 
                       'lac1226@att.net,blj.cain@verizon.net',         // 128 Lisa Powers (Cain)
                       'kellylin_r@yahoo.com',                         // 129 Kelly Dickinson (Rivera)
                       'kearneycwatson@adelphia.net',                  // 130 Crystal Cox (Watson)      
                       'SEE STEVE',                                    // 131 Lisa Boyce (Schell)       
                       'aneed1125@yahoo.com',                          // 132 Deena Cunningham          
                       'apasilk@msn.com',                              // 133 Reginald Hickmon          
                       'rod.ellis@eds.com',                            // 134 Shirl Ellis               
                       'drgeorge001@comcast.net',                      // 135 Darlene "Renee" Maxwell (George)
                       'gary.lane@e-ssy.com',                          // 136 Gary Lane                       
                       'TimLeahy@aol.com',                             // 137 Timothy "Tim" Leahy             
                       'toh107@yahoo.com',                             // 138 Toni Wilson                     
                       'zeender@hotmail.com',                          // 139 Jane McCabe (Zeender)           
                       'phthibodeaux@earthlink.net',                   // 140 Pam Hall (Thibodeaux)           
                       'dara.seaman@comcast.net',                      // 141 Dara Volin (Seaman)             
                       'dannagle@hotmail.com',                         // 142 Dan Nagle                       
                       'mchelling@hotmail.com',                        // 143 Michael Helling                 
                       'mmurphy@akingump.com',                         // 144 Michele Harrington (Murphy)     
                       'bernard.grindel@quinnipiac.edu',               // 145 Bernard "Berny" Grindel        
                       'not available',                                // 146 Robert Kuttler                  
                       'kathy.a.walcott@kp.org',                       // 147 KathyAnn "Kathy" Alexander (Walcott)
                       'neil@ecoledebudo.com',                         // 148 Neil Lofgren                       
                       'msong@heritagewifi.com',                       // 149 Myung Song                         
                       'merk@milkyway.gsfc.nasa.gov',                  // 150 Stephen Merkowitz                
                       'thee_empress@yahoo.com',                       // 151 Carol Ready                   
                       'dknickma@mdmercy.com',                         // 152 Denise Knickman              
                       'mscotto@queenanne.org,mscotto@jsi.com',        // 153 Melina Scotto                
                       'brian.quinn@dlapiper.com ',                    // 154 Brian Quinn                  
                       'pastorred68@hotmail.com',                      // 155 Eric Redmond                
                       'Markette.McCloud@carefirst.com',               // 156 Markette McCloud            
                       'not available',                                // 157 Elizabeth Folts Sawyer     
                       'adam.balkcum@cpii.com',                        // 158 Adam Balkcum               
                       'SAdkins@ushrl.ars.usda.gov ',                  // 159 Scott Adkins
                       'not available',                                // 160 Shawn Robles
                       'cmarchetti@qwest.net',                         // 161 Chris Marchetti
                       'monica@languageandculture.com',                // 162 Monica Francois (Marcel)
                       'tina_lee1@comcast.net',                        // 163 Tina Newsome (Lee)         
                       'TLYaney@msn.com',                              // 164 Tara Yaney         
                       'not available',                                // 165 Suzanne "Kyung" Park
                       'not available',                                // 166 John Turner                 
                       'robdavis@longsnap.com',                        // 167 Rob Davis                   
                       'tnoraye@yahoo.com',                            // 168 Denise Anderson (Smith) 
                       'bhennies@earthlink.net',                       // 169 Brian Hennies 
                       'Martinml@sec.gov',                             // 170 Michele Martin 
                       'mjsdfam@yahoo.com',                            // 171 Arnold Cook 
                       'deciccos@comcast.net',                         // 172 Andy DeCicco 
                       'chapmansh@comcast.net',                        // 173 Shari Buckner (Chapman)
                       'izzielakey@mac.com',                           // 174 Elizabeth Lakey         
                       'sweeta0510@yahoo.com ',                        // 175 Sonja Mason             
                       'not available',                                // 176 Tonya Newman (Dreher)
                       'chuck.koon@mylanlabs.com',                     // 177 Charles "Chuck" Koon
                       'craig.jim@comcast.net',                        // 178 Jim Craig
                       'lmholmes333@hotmail.com',                      // 179 Lisa Holmes
                       'not available',                                // 180 Kevin Bowen
                       'not available',                                // 181 Rina Sera (Balogh)
                       'info@4vmg.com',                                // 182 Wendi Dvorak (Glass)
                       'kimberlyematthews@hotmail.com',                // 183 Kimberly Mattthews
                       'mcphate@sbcglobal.net',                        // 184 Lisa Walrath (McPhate)
                       'dskillman@bottnerlaw.com',                     // 185 David Skillman
                       'drice#@helixdfw.com',                          // 186 David Rice
                       'stuamart@yahoo.com',                           // 187 Martin Stuart
                       'ebetties@triad.rr.com',                        // 188 Eric Betties 
                //     'Valencia.wright@peaktech.com',                 // 1xx Valencia Paige (Wright)
                //     'msdeneen@gmail',                               // 1xx Yolanda Harris (Hawkins)
                       ''                         // blank
    );      
    

function resetStateCount()
{
  /* Initialize the state counters */
  for (m=0; (m<state.length); m++ ) 
    stateCnt[m] = 0;
}

function buildStates()
{
  var panel = "<center><font size='+1' color='#ffff00'><b><u>Where We Are...</u></b></font></center>";
  for (m=0; (m<state.length); m++ ) 
  {
    if ( stateCnt[m] > 0) 
    {
      panel = panel + state[m] + ": " + stateCnt[m] + "<br>\n";
    }

    /* Always assume we will have at least one person living in DC */
    if ( state[m] == dc) 
    {
      panel = panel + "<center><hr width='50%'></center>";
    }
  }

  document.getElementById('statePanel').innerHTML=panel;
  // For debug: alert( panel );
}

/* My own slide show script */
function slideInc( cmd )
{
  var picName = "reunion";
  var cnt = 1;
  var last = 5;

  if ( cmd == "a" ) 
    cnt = 1;
  else if ( cmd = "b" ) 
    cnt++;
  else if ( cmd == "c" )
    cnt--;
  else if ( cmd == "d" )
    cnt = last;

  if ( cnt < 1 ) 
    cnt = last;
  if ( cnt > last ) 
    cnt = 1;

  var suffix = new String( cnt );
  if ( cnt < 10 ) 
    suffix = "00"+suffix;
  if (( cnt >= 10) && ( cnt < 100 ))
    suffix = "0"+suffix; 
  picName = picName + suffix;              

  //document.getElementById('slideImage').src="reunion20/"+picName+".jpg";
  document.getElementById('slideCount').innerHTML="Picture " + cnt + " of " + last;
  //alert(picName);
}

function replacer(x, y, original)
{
    /* Find the first occurrence of substring "x" in the */
    /* string "original" and replace it with "y"         */
    var result = new String( original );

    ndx = result.indexOf( x );

    while ( ndx >= 0 ) 
    {
      beforeX = result.substring( 0, ndx );
      afterX  = result.substring( ndx + x.length );
      result = beforeX + y + afterX;

      ndx = result.indexOf( x );
    }

    return( result );
}

function drawRow( index, name, bday, city, fPic )
{

  /* Constants */
  var line         = "";
  var indexInsert  = index;
  var nameInsert   = name;
  var cityInsert   = city;
  var bdayInsert   = bday;

  /* Alternate row colors with style */
  var classInsert  = "";
  if ( fEven )
  {
    classInsert = "a";
    fEven = false;
  }
  else
  {
    classInsert = "b";
    fEven = true;
  }

  /* ...but if it's this person's birthday, highlight the row */
  if ( bday != '            ' )  // String length is 'september xx'
  {
    var d = new Date();
    mNum = d.getMonth();
    dNum = d.getDate();

    if ( bday.indexOf( month[mNum] ) >= 0 )
    {
       var dateSS = bday.substring( month[mNum].length );
       if ( dNum == dateSS) 
       {
         classInsert = "bday";
       }
    }
  }

  /* Do the state and country count */
  /* This bit of code works with resetStates() and buildStates() */
  var fState = false;
  for (m=0; ((m<state.length) && (!fState)); m++ ) 
  {
    searchString = ", " + state[m];
    if ( city.indexOf( searchString ) > 0 ) 
    {
      stateCnt[m] = stateCnt[m]+1;
      // For debug: if (state[m]=="North Carolina") alert( name+' is in NC = '+stateCnt[m]);
      fState = true;
    }
  }

  /* Set style for deceased classmates */
  if ( email[index-1] == DECEASED )
  {
    classInsert = "x";
  }

  /* Add camera icon if person has a picture and create picture fileName*/
  var cameraInsert = "";
  var picInsert    = "";
  if ( fPic == 1) 
  {
    cameraInsert = "&nbsp;&nbsp;&nbsp;<img src='camera.gif' alt='' border='0'>";
    picInsert    = new String( index );
  }
  else
  {
    picInsert    = "xxxxxx";          
  }

  /* Who's Who inserts */
  if ( name.indexOf( 'Bevan' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>valedictorian</font>";
  if ( name.indexOf( 'Debra Smith' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>salutatorian</font>";
  if ( name.indexOf( 'Phil Hahn' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>homecoming king</font>";
  if ( name.indexOf( 'Robin Barnes' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>homecoming queen</font>";
  if ( name.indexOf( 'Blocker' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>class treasurer</font>";
  if ( name.indexOf( 'Sherita' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>class secretary</font>";
  if ( name.indexOf( 'McAtee' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>class vice-president</font>";
  if ( name.indexOf( 'Rina' ) >=0 )
    cameraInsert = cameraInsert + "&nbsp;<font size='-2' color='#000000'>class president</font>";

  /* Put it all together */
  if ( email[index-1] == DECEASED )
  {
    //line = '<td class="'+classInsert+'"><a class="'+classInsert+'f" onmouseover="toolTip(\''+picInsert+'\',this);" href="#">'+nameInsert+'</a>'+cameraInsert+'</td><td class="'+classInsert+'">&nbsp;</td><td class="'+classInsert+'"><center><a class="'+classInsert+'f" href="#">--------------</a></center></td><td class="'+classInsert+'">'+cityInsert+'</td>';
    line = '<td class="'+classInsert+'"><a class="'+classInsert+'f" onmouseover="toolTip(\''+picInsert+'\',this);" href="#">'+nameInsert+cameraInsert+'</a></td><td class="'+classInsert+'">&nbsp;</td><td class="'+classInsert+'"><center><a class="'+classInsert+'f" href="#">&nbsp;</a></center></td><td class="'+classInsert+'">&nbsp;</td>';
  }
  else
  {
    //line = '<td class="'+classInsert+'"><a class="'+classInsert+'f" onmouseover="toolTip(\''+picInsert+'\',this);" href="#">'+nameInsert+'</a>'+cameraInsert+'</td><td class="'+classInsert+'">'+bdayInsert+'</td><td class="'+classInsert+'"><center><a href="#" onclick="top.doMail('+indexInsert+');">--click here--</a></center></td><td class="'+classInsert+'">'+cityInsert+'</td>';
    line = '<td class="'+classInsert+'"><a class="'+classInsert+'f" onmouseover="toolTip(\''+picInsert+'\',this);" href="#">'+nameInsert+cameraInsert+'</a></td><td class="'+classInsert+'">'+bdayInsert+'</td><td class="'+classInsert+'"><center><a href="#" onclick="top.doMail('+indexInsert+');">--click here--</a></center></td><td class="'+classInsert+'">'+cityInsert+'</td>';
  }
  //DEBUG alert( line );

  /* Write to browser */
  document.write( line );
}

function drawFormStart()
{
  document.writeln( '<form action="http://www.natalieanderic.com/cgi-bin/formmail.php" method="post" enctype="multipart/form-data">  ');       // formmail.php
  //FormMail.pl with no attachmentsdocument.writeln( '<form action="http://www.natalieanderic.com/cgi-bin/FormMail.pl" method="post"> ');      // FormMail.pl
  //document.writeln( '<input type="hidden" name="recipient" value="erhs1986@earthlink.net">                                         ');       // don't need this if using formmail.php
  document.writeln( '<input type="hidden" name="subject"   value="Directory Entry Form">                                           ');
  document.writeln( '<input type="hidden" name="required"  value="maidenname,aemail,city,state,bday,bmon">                                   ');
  document.writeln( '<input type="hidden" name="redirect"  value="http://home.earthlink.net/~erhs1986/success.htm">                ');
  document.writeln( '<input type="hidden" name="missing_fields_redirect" value="http://home.earthlink.net/~erhs1986/enter.htm">    ');
  document.writeln( '<input type="hidden" name="MAX_FILE_SIZE" value="1000000">');
}
                     

function drawFormEnd()
{
  document.writeln( "</form>" );
}

function toolTip(text,me) 
{
  if (text == "xxxxxx") 
  {
  }
  else
  {
      beforeInsert = "before" + new String( text );
      afterInsert  = "now" + new String( text );

      theObj=me;
      theObj.onmousemove=updatePos;
      //document.getElementById('toolTipBox').innerHTML=text;
  // With text from Maxim   data="<img src=yearbook/"+text+".jpg border=0 style='float:left; margin-right:10px;'><b><font color=#EB1E00>FSU Cowgirls</b></font><br>Wearing little more than school spirit, the FSU Cowgirls give everyone a reason to cheer."
      //data="<img src='yearbook/"+text+".jpg' border=0 style='float:left; margin-right:10px;'>"
      data="<table border='0'><tr><td valign='middle'><img src='yearbook/"+beforeInsert+".jpg' border='0' alt=''></td><td valign='middle'><img src='yearbook/"+afterInsert+".jpg' border=0 alt=''></td></tr></table>"
      document.getElementById('toolTipBox').innerHTML=data;
      document.getElementById('toolTipBox').style.display="block";

      /*
      // Allow the married classmates a bigger picture
      if (( text == 72  ) ||       // Lisa Schell
          ( text == "abc" ) ||       // Steve Schell
          ( text == 45  ) ||       // Steve May
          ( text == 46  ) ||       // Susan May
          ( text == 72  ) ||       // Terence Sheppard
          ( text == 117 ))         // Monique Sheppard
      {
        document.getElementById('toolTipBox').style.width="450px"; // Everybody else just gets 350px
      }
      */

      window.onscroll=updatePos;
  }
}
 
function updatePos() 
{
  var ev=arguments[0]?arguments[0]:event;
  var x=ev.clientX;
  var y=ev.clientY;
  diffX=24;   
  diffY=-100; // original value = 0;
  document.getElementById('toolTipBox').style.top  = y-2+diffY+document.body.scrollTop+ "px";
  document.getElementById('toolTipBox').style.left = x-2+diffX+document.body.scrollLeft+"px";
  theObj.onmouseout=hideMe;
}

function hideMe() 
{
  document.getElementById('toolTipBox').style.display="none";
}
  
function drawMenu( x )
{
   var doc = top.menu.document
   var start = '<span style="font-family: comic sans ms;font-weight: bold;background-color: ffff00;color: 000000;/*text-decoration: blink*/">'
   var stop  = '</span>'

   doc.open("text/html", "replace")                                             
   doc.writeln('<html><body>')
   doc.writeln('<body alink=0000ff vlink=0000ff link=0000ff bgColor=6699ff topMargin=1 bottomMargin=2>')                                                          
   doc.writeln('<center>')                                                                                                             
   doc.writeln('<FONT color=0000ff FACE=verdana SIZE=-1>')                                                                        

   /*
   if (x == 1) 
     doc.writeln(start + 'HOME' + stop)
   else
     doc.writeln('<A HREF="main.htm"     TARGET="main"><b>home          </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')
   */

   if (x == 2) 
     doc.writeln(start + 'DIRECTORY' + stop)
   else
     doc.writeln('<A HREF="direct.htm"   TARGET="main"><b>directory     </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   /*
   if (x == 3) 
     doc.writeln(start + 'WHO&#146;S WHO' + stop)
   else
     doc.writeln('<A HREF="whoswho.htm"  TARGET="main"><b>who&#146;s who    </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   if (x == 4) 
     doc.writeln(start + 'TEAMS/CLUBS' + stop)
   else
     doc.writeln('<A HREF="teamclub.htm" TARGET="main"><b>teams/clubs   </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')
   */

   if (x == 5) 
     doc.writeln(start + '85-86 CALENDAR' + stop)
   else
     doc.writeln('<A HREF="calendar.htm" TARGET="main"><b>85-86 calendar      </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   if (x == 6) 
     doc.writeln(start + 'OTHER CLASSES' + stop)
   else
     doc.writeln('<A HREF="others.htm"   TARGET="main"><b>other classes </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   /*
   if (x == 7) 
     doc.writeln(start + 'GALLERY' + stop)
   else
     doc.writeln('<A HREF="gallery.htm"  TARGET="main"><b>gallery       </b></A>')                                                  
   */

   if (x == 8) 
     doc.writeln(start + '20 YEAR REUNION (PICS)' + stop)
   else
     doc.writeln('<A HREF="reunion.htm"   TARGET="main"><b>20 year reunion (pics) </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   if (x == 9) 
     doc.writeln(start + 'MESSAGE BOARD' + stop)
   else
     doc.writeln('<A HREF="msgboard.htm"   TARGET="main"><b>message board </b></A>')
   doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   if (x == 10) 
     doc.writeln(start + 'ADD/UPDATE ME' + stop)
   else
     doc.writeln('<A HREF="enter.htm"   TARGET="main"><b>add/update me </b></A>')
   //doc.writeln('<FONT COLOR=ffffff>&nbsp;&#171;&#187;&nbsp;</FONT>')

   doc.writeln('</FONT>')                                                                                                        
   doc.writeln('</center>')                                                                                                            
   doc.writeln('</body></html>')
   doc.close()
}

function showElapsedTime()
{
   // Graduation 9:00am May 29, 1986
   var gYear    = 1986
   var gMonth   = 4    // May
   var gDay     = 29
   var gHour    = 9    // 9:00am
   
   var d = new Date();
   var years   = 0;
   var months  = 0;
   var days    = 0;
   var hours   = 0;
   var minutes = 0;
   var seconds = 0;
   var showString = "";
   var subtract = new Array(31,28,31,30,31,30,31,31,30,31,30,31)

   hours   = d.getHours();
   minutes = d.getMinutes();
   seconds = d.getSeconds();

   years = d.getFullYear() - gYear
   months= d.getMonth() - gMonth
   days  = d.getDate() - gDay
   hours = hours - gHour

   if (hours < 0)
   {
     hours = 24 + hours
     days  = days - 1
   }

   if (days < 0)
   {
     days = subtract[d.getMonth()] + days    // Does not take into account leap years, always assume Feb=28days
     months = months - 1
   }
                                      
   if (months < 0)
   {
     months = 12 + months
     years = years - 1
   }

// if (minutes < 10) 
//   minutes = '0' + minutes;
// if (seconds < 10) 
//   seconds = '0' + seconds;
  
   showString = 'We graduated '
   showString += years + 'yrs ' + months + 'mos ' + days + 'days ' + hours + 'hrs ' + minutes + 'mins ' + seconds + 'secs';
   showString += ' ago.'

   document.pageClock.linec.size = showString.length+15;  // Size for IE
   document.pageClock.linec.value= showString;
   setTimeout("showElapsedTime()",1*1000)
}

  function entryWindow()
  {
     var x = (screen.availWidth - 400)/2
     var y = 50
     var z = 0
     var theWindow = window.open('enter.htm',
                                 'entryWindow',
                                 'height=500,width=500,titlebar=no,scrollbars=yes,resizable=yes')

 //  for (z = 1; z < 36; z++) 
 //  {
 //     x += Math.cos( z * (Math.PI/18)) * 10
 //     y += Math.sin( z * (Math.PI/18)) * 10
 //     theWindow.moveTo(x,y)
 //  }
     return false
  }


function doMail( num )
{
    var addr = email[num-1];

    window.location.href = 'mailto:'+addr;
    return( false );
}
  
function countThem()
{
    //document.getElementById('cc').value = email.length - 1;  // Subtract the one blank one at the end
    document.cc.dd.size = 20;  // Size for IE
    document.cc.dd.value= email.length - 1 + " classmates listed";
}

var mywin;

function initPic()
{
    height = 840;
    width  = 680;
    xyz    = "reunionInvitation.jpg";

    mywin = window.open( "", "inviteWindow", "height=845,width=685,location=no,scrollbars=yes,resizable=yes,toolbar=no,status=no,statusbar=no,menubar=no,dependent=yes");
  
    var content = "";
    content += "<html><head><title>ERHS Class of 1986 Twentieth Reunion</title></head><<body>";
    content += "<img height='"+height+"' width='"+width+"' src='"+xyz+"' >";
    content += "</body></html>";

    mywin.document.write( content );
    mywin.document.close();
    //window.resizeTo(576,432);
    mywin.focus();
    //return false;
}

function preloadTheImages() 
{ //v3.0
  if (d.images)
  {
    if (!d.MM_p)
      d.MM_p=new Array();
    if (!d.MM_q)
      d.MM_q=new Array();

    var i;
    for (i=0; i<email.length; i++)
    {
      d.MM_p[i]=new Image();
      d.MM_p[i].src= "yearbook/before"+ new String(i+1)+".jpg";

      d.MM_q[i]=new Image();
      d.MM_q[i].src= "yearbook/now"+ new String(i+1)+".jpg";
    }
  }
}



/***********************************************************************
* All code below this point is for the sliding image
* Code was obtained from http://www.dyn-web.com
***********************************************************************/
function initGlide() {
  var winWd = getWinWidth();
  // arguments: id, x, y
  var glideLyr = new dynObj("glideDiv", winWd, 20);
  glideLyr.show();
  // slideTo arguments: destination x, destination y, duration of slide,
  // acceleration/deceleration factor (can be -1 to 1) 0 is linear, i.e., steady slide
  glideLyr.slideTo(10, null, 800, -.8); 
}

function getWinWidth() {
	var winWd = 0;
	if (document.documentElement && document.documentElement.clientWidth) 
		winWd = document.documentElement.clientWidth;
	else if (document.body && document.body.clientWidth) 
		winWd = document.body.clientWidth;
	else if (document.body && document.body.offsetWidth) 
		winWd = document.body.offsetWidth; // ns6
	else if (window.innerWidth) winWd = window.innerWidth-18;
	return winWd;
}

dynObj.holder = {}; 
// constructor
function dynObj(id,x,y,w,h) {
  var el = dynObj.getElemRef(id);
  if (!el) return;  this.id = id; 
  dynObj.holder[this.id] = this; this.animString = "dynObj.holder." + this.id;
  var px = window.opera? 0: "px";
	this.x = x || 0;	if (x) el.style.left = this.x + px;
	this.y = y || 0;	if (y) el.style.top = this.y + px;
	this.w = w || el.offsetWidth || 0;	this.h = h || el.offsetHeight || 0;
	// if w/h passed, set style width/height
	if (w) el.style.width = w + px; if (h) el.style.height = h + px;
}

dynObj.getElemRef = function(id) { 
  var el = document.getElementById? document.getElementById(id): null;
  return el;
} 

dynObj.getInstance = function(id) {
  var obj = dynObj.holder[id];
  if (!obj) obj = new dynObj(id);
  else if (!obj.el) obj.el = dynObj.getElemRef(id);
  return obj;
}

dynObj.prototype.shiftTo = function(x,y) {
  var el = this.el? this.el: dynObj.getElemRef(this.id)? dynObj.getElemRef(this.id): null;
  if (el) {
    if (x != null) el.style.left = (this.x = x) + "px";
    if (y != null) el.style.top = (this.y = y) + "px";
  }
}

dynObj.prototype.shiftBy = function(x,y) { this.shiftTo(this.x+x, this.y+y); }

dynObj.prototype.show = function() { 
  var el = this.el? this.el: dynObj.getElemRef(this.id)? dynObj.getElemRef(this.id): null;
  if (el) el.style.visibility = "visible"; 
}
dynObj.prototype.hide = function() { 
  var el = this.el? this.el: dynObj.getElemRef(this.id)? dynObj.getElemRef(this.id): null;
  if (el) el.style.visibility = "hidden"; 
}


// for time-based animations
// resources: www.13thparallel.org and www.youngpup.net (accelimation)
var dw_Bezier = {
  B1: function (t) { return t*t*t },
  B2: function (t) { return 3*t*t*(1-t) },
  B3: function (t) { return 3*t*(1-t)*(1-t) },
  B4: function (t) { return (1-t)*(1-t)*(1-t) },
  // returns current value based on percentage of time passed
  getValue: function (percent,startVal,endVal,c1,c2) {
    return endVal * this.B1(percent) + c2 * this.B2(percent) + c1 * this.B3(percent) + startVal * this.B4(percent);
  }
}

// adapted from accelimation.js by Aaron Boodman of www.youngpup.net
dw_Animation = {
  instances: [],
  add: function(fp) {
    this.instances[this.instances.length] = fp;
  	if (this.instances.length == 1) this.timerID = window.setInterval("dw_Animation.control()", 10);
  },
  
  remove: function(fp) {
    for (var i = 0; this.instances[i]; i++) {
  		if (fp == this.instances[i]) {
  			this.instances = this.instances.slice(0,i).concat( this.instances.slice(i+1) );
  			break;
  		}
  	}
  	if (this.instances.length == 0) {
  		window.clearInterval(this.timerID);	this.timerID = null;
  	}
  },
  
  control: function() {
    for (var i = 0; this.instances[i]; i++) {
  		if (typeof this.instances[i] == "function" ) this.instances[i]();
      else eval(this.instances[i]);
    }
  }
}

// acc is number between -1 and 1 ( -1 full decelerated, 1 full accelerated, 0 linear, i.e. no acceleration)
dynObj.prototype.slideTo = function (destX,destY,slideDur,acc,endFn) {
  if (!document.getElementById) return;
  this.slideDur = slideDur || .0001; var acc = -acc || 0;
  if (endFn) this.onSlideEnd = endFn;
  // hold destination values (check for movement on 1 axis only)
 	if (destX == null) this.destX = this.x;	else this.destX = destX;
  if (destY == null) this.destY = this.y; else this.destY = destY;
  this.startX = this.x; this.startY = this.y;
	this.st = new Date().getTime();
	// control points for bezier-controlled slide (see www.youngpup.net accelimation)
  this.xc1 = this.x + ( (1+acc) * (this.destX-this.x)/3 );
	this.xc2 = this.x + ( (2+acc) * (this.destX-this.x)/3 );
  this.yc1 = this.y + ( (1+acc) * (this.destY-this.y)/3 );
	this.yc2 = this.y + ( (2+acc) * (this.destY-this.y)/3 );
	this.sliding = true;
  this.onSlideStart();
  dw_Animation.add(this.animString + ".doSlide()");
}

dynObj.prototype.doSlide = function() {
	if (!this.sliding) return;	
	var elapsed = new Date().getTime() - this.st;
	if (elapsed < this.slideDur) {
    var x = dw_Bezier.getValue(elapsed/this.slideDur, this.startX, this.destX, this.xc1, this.xc2);
    var y = dw_Bezier.getValue(elapsed/this.slideDur, this.startY, this.destY, this.yc1, this.yc2);
		this.shiftTo( Math.round(x) ,Math.round(y) );
		this.onSlide();
	} else {	// if time's up
    dw_Animation.remove(this.animString + ".doSlide()");
		this.shiftTo(this.destX,this.destY);
		this.onSlide();
		this.sliding = false;
		this.onSlideEnd();
	}
}

dynObj.prototype.slideBy = function(dx,dy,slideDur,acc,endFn) {
	var destX=this.x+dx; var destY=this.y+dy;
	this.slideTo(destX,destY,slideDur,acc,endFn);
}

dynObj.prototype.onSlideStart = function () {}
dynObj.prototype.onSlide = function () {}
dynObj.prototype.onSlideEnd = function () { if (this.el) this.el = null; }
