/*

USAGE: randomText()

This JavaScript Will be used to:
Display a radom image, with relevant links, alt tags, and an image map, etc.
CREATED: created in house with no references
AUTHORS: Brad Godfrey, Brian Eliason
LAST DATE MODIFIED: 4/23/03 


WHAT IT DOES:
randomImage() does 3 main things: 
It displays a (1) random image (2) a corresponding random ALT tag, and (3) a corresponding random LINK 
each time the browser is loaded. 
Currently, 8 random and corresponding images, alt tags and links are displayed,
but the function is built to display more easily.

HOW IT WORKS:
Three main arrays are utilized throughout the function, along with a randomized variable called ranNumber. 
They are the "images" array, the "alts" array, and the "infoLinks" array.
1. images array holds image(.jpg) elements having to do with different missions.
2. alts array holds alt tag string elements which are used for w3c compliancy (and 508 compliancy).
3. infoLinks array holds link string elements which will eventually link to different pages.

The key to this function is found in the ranNumber variable. This variable holds a value which 
is the numeric value of one of the elements within any of the arrays (they should all hold the same number of elements)
When writing to the browser, each one of the arrays is indexed into by the ranNumber variable, which keeps everything consistent.
<!--#include virtual="includes/didyouknow1.inc"-->
*/ 
function randomText()
{
tempLinksForImages = "http://www.uvsc.edu/abtuvsc/mission.html";

var includes=new Array("Most high school freshmen in Utah plan to go to college, but less than 20% will ever graduate. While most jobs (65.8%) require some post-secondary training, only 20.8% require at least a bachelor's degree. Apprenticeship provides an excellent alternative to secure training and credentials.","Apprenticeship is not only for the building trades. There are over 800 other trades, arts, occupations, professions, etc. that fit under the apprenticeship training model.","In Utah, more than half of the apprentices registered with the Bureau of Apprenticeship and Training are from independent shops? The program is for all Americans, regardless of union or non-union status.","The largest and fastest growing segment of the emerging technical workforce is in occupations that do not require a 4-year college degree.","Before electricity, apprentices had to hold candles for craftsmen to shed light in dark corners or at the end of the day. An apprentice who did inadequate work, therefore, was described as &#8220;not fit to hold a candle to&#8221; the craftsman.","High school juniors and seniors may be able to get a head start on their apprenticeship program. If your school district offers an apprenticeship program, you may be able to start in your junior year, work part-time during the school year and full-time in the summer to accumulate your OJT (on-the-job training) while taking concurrent enrollment classes (classes that give you college credit even though you are still in high school). If you start your junior year in high school, you may be able to get one (1) full year of college credit and a year to one and a half (1&frac12;) years of OJT. Cool, huh? Call your school district applied technology education department to see how you can get started today");

// this will eventually be used, but for now all links will point to 'mission.html'
// var infoLinks=new Array("mission1.html","mission2.html","mission3.html","mission4.html","mission5.html","mission6.html"); 
var ranNumber = Math.floor(Math.random()*includes.length);

document.write(includes[ranNumber]);



// This will need an img map which changes according to the picture which is loaded.


}
