
var core = 0
var currentdate = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

fact = new StringArray(27)
fact[0] = "The first public school made of cottonwood logs and sod opens in Wichita."
fact[1] = "The first Board of Education in Wichita is formed."
fact[2] = "The first permanent school building for primary and secondary students is built at Third and Emporia."
fact[3] = "Three young women and one young man are the first to graduate from the Wichita system."
fact[4] = "The first Wichita school burns down."
fact[5] = "The first student newspaper, known even then as <em>The Messenger</em>, is published."
fact[6] = "The first yearbook, called <em>The Junkshop</em>, is published.  Over the years, the name changes several times, from <em>The Wichitan</em> to <em>The Messenger, Big Story,</em> and <em>Flight 50.</em>"
fact[7] = "A new building, which still stands at 324 N. Emporia, is finished at a cost of $250,000."
fact[8] = "The third Wichita High School structure, at the corner of Douglas and Grove, is completed at a cost of just over $1,000,000."
fact[9] = "The Wichita High School basketball team wins the National Title."
fact[10] = "East gets an impressive new pipe organ, dedicated to Jessie L. Clark, in honor of the 38 years she spent as music supervisor in the Wichita School System."
fact[11] = "A second high school is built, near Waco and 13th, and named Wichita High School North.  The original Wichita High School becomes <strong>Wichita High School East</strong>."
fact[12] = "The Wichita High School East student body votes to change their nickname from 'Bulldogs' to 'Blue Aces'."
fact[13] = "Nationally known sculptor Bruce Moore, a former East student, dedicates a bronze statue called 'The Puma' to East as a gift from the senior classes of 1928 and 1929."
fact[14] = "The American Legion installs and dedicates the flagpole, which still stands outside the school, to Clinton C. Dunn, a legioneer who died in WWI."
fact[15] = "The school yearbook is given the permanent name <em>Echoes</em>."
fact[16] = "East senior Jim Ryun misses school to take part in the Olympics, hosted in Tokyo, Japan.  It was the first of three trips he'd make to the Olympics."
fact[17] = "Jim Ryun runs a 3:58.3 mile at the state track meet and sets a national record for high school aged runners."
fact[18] = "Wichita High School East celebrates its 100th commencement, since our school traces its origin to the original Wichita High School."
fact[19] = "Wichita High School East is remodeled, adding a library and cafeteria to join the East High building to the Roosevelt Intermediate School."
fact[20] = "The pipe organ, which had sat unused for decades, is refurbished and rededicated."
fact[21] = "Senior Corner, still at the northeast corner of the second floor, gets a beautiful addition of two stained glass windows reflecting the four seasons."
fact[22] = "Roosevelt Middle School is closed, and the building becomes part of East High.  It is known as the West Complex."
fact[23] = "The cut stone filigree work in the arches connecting the main East building to the boys' gym is torn out."
fact[24] = "East celebrates the 75th anniversary of the dedication of our current building.  Among those returning to help celebrate is United States Representative Jim Ryun, class of 1965, Olympic athlete and record holder."
fact[25] = "The most recent remodeling of East is complete, adding much needed classroom space, air conditioning, and the restoration of the stone filigree work removed in 1990."
fact[26] = "Thanks to a generous grant from the Class of 1954, the East High tower once again became a true bell tower, playing the <a href='http://east.usd259.org/mm/carillon'>alma mater and the fight song</a> daily."

date = new StringArray(27)
date[0] = "1869"
date[1] = "1871"
date[2] = "1871"
date[3] = "1879"
date[4] = "1884"
date[5] = "1893"
date[6] = "1901"
date[7] = "1911"
date[8] = "1923"
date[9] = "1925"
date[10] = "1925"
date[11] = "1927"
date[12] = "1928"
date[13] = "1929"
date[14] = "1929"
date[15] = "1951"
date[16] = "1964"
date[17] = "1965"
date[18] = "1978"
date[19] = "Early 1970s"
date[20] = "1985"
date[21] = "1988"
date[22] = "1989"
date[23] = "1990"
date[24] = "1999"
date[25] = "2004"
date[26] = "2007"

var ran = 60/fact.length

currentdate = new Date()
core = currentdate.getSeconds()
adcore = Math.floor(core/ran)
core = adcore

var thefact = fact[core]
var thedate = date[core]

//ROW ONE - TITLE
document.write("<table><tr><td width='50' align='left' valign='top'><strong>Year</strong></td>");
document.write("<td width='250'><strong>Fact</strong></td></tr>");
//ROW TWO - FACT
document.write("<tr><td width='50' align='left' valign='top'>");
document.write("<strong>" + thedate + "</strong>" + "</td><td width='250'>" + thefact + "</td></tr></table>");

