current = 0;
PicVal = new Array(24);
DatVal = new Array(24);
TxtVal = new Array(24);

PicVal[0] = "icon/pics/roadsign.png";
DatVal[0] = "2001";
TxtVal[0] = "Founded in 1883, the Central Children's Home in Oxford, North Carolina is the second oldest children's home in NC and the oldest black home in the US.";

PicVal[1] = "icon/pics/ironing.png";
DatVal[1] = "1950";
TxtVal[1] = "In the early 1950's the girls were taught domestic skills.";

PicVal[2] = "icon/pics/dairy.png";
DatVal[2] = "1950";
TxtVal[2] = "In the early 1950's the boys were taught farming skills.";

PicVal[3] = "icon/pics/dukeschool.png";
DatVal[3] = "1950";
TxtVal[3] = "Before desegregation, area black students came to campus to attend the Angier B. Duke Memorial School.  After desegregation, the children at the home attended area schools.";

PicVal[4] = "icon/pics/coloredband.png";
DatVal[4] = "1950";
TxtVal[4] = "In the early 1950's the home had their own band.";

PicVal[5] = "icon/pics/dininghall.png";
DatVal[5] = "2001";
TxtVal[5] = "Henry Plummer Cheatham Dining Hall and Auditorium";

PicVal[6] = "icon/pics/shepard.png";
DatVal[6] = "2001";
TxtVal[6] = "Robert L. Shepard Cottage (Older Boys) Erected in 1949";

PicVal[7] = "icon/pics/mcdougle.png";
DatVal[7] = "2001";
TxtVal[7] = "Jauncey McDougle Cottage (Older Girls) Erected in 1973";

PicVal[8] = "icon/pics/henrahand.png";
DatVal[8] = "2001";
TxtVal[8] = "Georgia Henrahand Cottage (For Girls) Erected in 1974";

PicVal[9] = "icon/pics/mcghee.png";
DatVal[9] = "2001";
TxtVal[9] = "Catherine McGhee Cottage Erected in 1976";

PicVal[10] = "icon/pics/bryant.png";
DatVal[10] = "2001";
TxtVal[10] = "Bryant Cottage";

PicVal[11] = "icon/pics/adminbldg.png";
DatVal[11] = "2001";
TxtVal[11] = "Goodloe Administration Building";

PicVal[12] = "icon/pics/plaqard.png";
DatVal[12] = "2001";
TxtVal[12] = "The original name of the orphanage was the Grant Colored Asylum.  In 1887 the name changed to The Colored Orphanage Asylum of North Carolina.  In 1927, the orphanage was reincorporated as The Colored Orphanage of North Carolina. Next in 1965 the name changed to The Central  Orphanage of North Carolina. Finally in 1986 the name changed to The Central Children's Home of North Carolina, Inc.";

PicVal[13] = "icon/pics/shadetree.png";
DatVal[13] = "2001";
TxtVal[13] = "A beautiful shade tree that overlooks the landscape.";

PicVal[14] = "icon/pics/friendsgym.png";
DatVal[14] = "2001";
TxtVal[14] = "Friends Memorial Gymtorium";

PicVal[15] = "icon/pics/pavilion.png";
DatVal[15] = "2001";
TxtVal[15] = "The Campus Pavilion";

PicVal[16] = "icon/pics/landscape.png";
DatVal[16] = "2001";
TxtVal[16] = "The campus has a very spacious landscape.";

PicVal[17] = "icon/pics/playground.png";
DatVal[17] = "2001";
TxtVal[17] = "Outdoor playground equipment for the youngsters.";

PicVal[18] = "icon/pics/largearial.png";
DatVal[18] = "2001";
TxtVal[18] = "The campus land covers 300 plus acres.";

PicVal[19] = "icon/pics/directorshouse.png";
DatVal[19] = "2001";
TxtVal[19] = "The Directors House is located across the street from the dining hall.";

PicVal[20] = "icon/pics/dhband.png";
DatVal[20] = "2002";
TxtVal[20] = "CCH Day 2002 Celebration.  The Durham Hillside Band let everyone know they were in town with sounds of a celebration.";

PicVal[21] = "icon/pics/facepainting.png";
DatVal[21] = "2002";
TxtVal[21] = "CCH Day 2002 Celebration.  The facepainting vendor paints some hearts on this young lady's face.  She looks as though she is literally wearing her heart on her face.";

PicVal[22] = "icon/pics/snoconevendor.png";
DatVal[22] = "2002";
TxtVal[22] = "CCH Day 2002 Celebration.  The heat during the celebration kept the snocone vendors very busy.";

PicVal[23] = "icon/pics/childrensinging.png";
DatVal[23] = "2002";
TxtVal[23] = "CCH Day 2002 Celebration.  The children share their angelic voices with family and friends in the pavilion on campus.";


function ShowCCHPic(newpic) {
  document.CCHPic.src = PicVal[newpic];
  document.CCHForm.CCHText.value=TxtVal[newpic];
document.CCHForm.CCHDate.value=DatVal[newpic];
  SelectionBox = document.CCHForm.CCHDropdown;
  SelectionBox.options[newpic].selected = true;
  current = newpic;
}
function RandomCCHPic() {
  TotalImages = document.CCHForm.CCHDropdown.options.length;
  current = Math.floor(Math.random()*TotalImages);
  ShowCCHPic(current);
}
function PreviousCCHPic() {
  TotalImages = document.CCHForm.CCHDropdown.options.length;
  current--;
  if(current<0) current = TotalImages - 1;
  ShowCCHPic(current);
}
function NextCCHPic() {  
  var TotalImages = document.CCHForm.CCHDropdown.options.length;
  current++;
  if (current>=TotalImages) current = 0;
  ShowCCHPic(current);
}
