// JavaScript Document
// Selects a random image and quote and displays on the home page.  
// The default is there for people who don't load this document or who don't use JavaScript
// TE - VentureNet - 082106

var currentdate = 0
var core = 0


//Quotes go here.  The array should be pretty self-explanitory,
//but basically each item in the array has an image, quote text, quoted person's name and their title
//Just add those 4 for any new quote. You'll have to increment the number after in () after Array
//in the homeQuote definitions b/c of the crappy way JavaScript handles multidimensional arrays
// TE - VentureNet - 082106
homeQuote = new Array(2)
for (i = 0; i < homeQuote.length; ++ i)
	homeQuote [i] = new Array();
homeQuote[0]['image'] = 'images/dieter-zetsche.jpg'
homeQuote[0]['quoteText'] = 'The success of our plant in Tuscaloosa and the vehicles that we are producing there shows it was the right decision to come to Alabama back in 1993. Without the great support from the State of Alabama, this success story would definitely not have been written.'
homeQuote[0]['quoteName'] = 'Dr. Dieter Zetsche'
homeQuote[0]['quoteTitle'] = 'Chairman, Daimler AG and Head of the Mercedes Car Group'
homeQuote[1]['image'] = 'images/jim-albaugh.jpg'
homeQuote[1]['quoteText'] = 'Boeing is proud to have a home in Alabama to support the many programs we have to contribute to our national security and expand our horizons in space.  Alabama is a great resource for talented engineers and technicians, and active support from state and local officials all help make this a great state to do business.'
homeQuote[1]['quoteName'] = 'Jim Albaugh'
homeQuote[1]['quoteTitle'] = 'Executive Vice President The Boeing Company; President and Chief Executive Officer Integrated Defense Systems'


var rand = 60/homeQuote.length

function randimage() {
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(core/rand)
    return(core)
}

var quoteChosen = randimage()

//alert("randomed me a " + homeQuote[quoteChosen]['quoteText']);
