// JavaScript Document
function text2(){
function text() {
};

text = new text();
number = 0;

// textArray
text[number++] = "A <strong>fault</strong> is a fracture in the Earth's crust along which two blocks of the crust have slipped with respect to each other."
text[number++] = "The <strong>focus</strong> of an earthquake is the point underneath the earth's surface where an earthquake originates."
text[number++] = "The <strong>epicenter</strong> of an earthquake is the point on the Earth's surface directly above the focus."
text[number++] = "Earthquakes occur in the <strong>crust</strong> or upper mantle, which ranges from the earth's surface to about 800 kilometers deep (about 500 miles)"
text[number++] = "<strong>Foreshocks</strong> are earthquakes which precede larger earthquakes in the same location."
text[number++] = "<strong>Aftershocks</strong> are smaller earthquakes which occur in the same general area during the days to years following a larger event or mainshock, defined as within 1-2 fault lengths away and during the period of time before the background seismicity level has resumed."
text[number++] = "The <strong>magnitude</strong> of an earthquake is a measured value of the earthquake size. The magnitude is the same no matter where you are, or how strong or weak the shaking was in various locations. "
text[number++] = "The <strong>intensity</strong> of an earthquake is a measure of the shaking created by the earthquake, and this value does vary with location."
text[number++] = "The <strong>world's deadliest recorded earthquake</strong> occurred in 1556 in central China. It struck a region where most people lived in caves carved from soft rock. These dwellings collapsed during the earthquake, killing an estimated 830,000 people."
text[number++] = "The <strong>earliest recorded evidence of an earthquake</strong> has been traced back to 1831 BC in the Shandong province of China, but there is a fairly complete record starting in 780 BC during the Zhou Dynasty in China. "
text[number++] = "The <strong>largest recorded earthquake in the world</strong> was a magnitude 9.5 (Mw) in Chile on May 22, 1960. "
text[number++] = "The <strong>hypocenter</strong> of an earthquake is the location beneath the earth's surface where the rupture of the fault begins. The epicenter of an earthquake is the location directly above the hypocenter on the surface of the earth. "
text[number++] = "It is estimated that there are <strong>500,000 detectable earthquakes</strong> in the world each year. 100,000 of those can be felt, and 100 of them cause damage."
text[number++] = "The <strong>largest Earthquake</strong> measured was a 9.5 in Chile in 1960."
text[number++] = "The <strong>7.6 magnitude</strong> earthquake that occurred on Oct. 8, 2005, in Pakistan had more than 25 magnitude 5 or larger aftershocks."
text[number++] = "<strong>Moonquakes:</strong><br> earthquakes on the moon) do occur, but they happen less frequently and have smaller magnitudes than earthquakes on the Earth. It appears they are related to the tidal stresses associated with the varying distance between the Earth and Moon. They also occur at great depth, about halfway between the surface and the center of the moon." 

// keep adding items here...

increment = Math.floor(Math.random() * number);

document.write(text[increment]);
}