// JavaScript Document

//Michael Tutino 2007
// edited by Alison Findon

//get random item number
var randomnumber=Math.floor(Math.random()*10);

var lr2altText = new Array();

lr2altText[0] = 'follow the possibilities';
lr2altText[1] = 'advance the world';
lr2altText[2] = 'see both';
lr2altText[3] = 'invent the future now';
lr2altText[4] = 'it\'s your vision';
lr2altText[5] = 'imagine what\'s next';
lr2altText[6] = 'the shortest distance between two minds';
lr2altText[7] = 'think real';
lr2altText[8] = 'think. do.';
lr2altText[9] = 'where you belong';


// Photo Rotation
function mymainphoto(){
	return document.write("<img src=\"http://engineering.dartmouth.edu/rotatingphotos/photo"+randomnumber+".jpg\"  alt=\""+lr2altText[randomnumber]+"\" width=\"459\" height=\"294\" border=\"0\" id=\"mainphoto\" />");
}

// Caption Rotation
var lr2textStr = new Array();
var lr2i = randomnumber;


//Start Items
lr2textStr[0] = 'Informal workspaces line the Rodday Overlook.';
lr2textStr[1] = 'Students from Dartmouth HELP Worldwide and Dartmouth Engineers Without Borders traveled to Nyamilu, Kenya to install a gravity-fed water-distribution system.';
lr2textStr[2] = 'Learning to see the big picture and the details&#8212;the forest and the trees&#8212;prepares Dartmouth engineers for leadership in countless fields.';
lr2textStr[3] = 'A student works in the biomass processing lab to turn inedible cellulosic biomass into ethanol.';
lr2textStr[4] = 'Turn your ideas into working prototypes in Thayer\'s student project labs.  (Design and build right from the start.)';
lr2textStr[5] = 'Thayer School Ph.D. students line up to receive their diplomas at Commencement ceremonies on the Dartmouth green.';
lr2textStr[6] = 'Collaboration permeates learning and research.';
lr2textStr[7] = 'Engineers are improving surgical accuracy with a 3-D tracker-equipped stylus that merges spatial data with preoperative MRIs.';
lr2textStr[8] = 'A student put a Thayer-designed robot destined for use in Antartica through a trial workout in Greenland.';
lr2textStr[9] = 'Collaborations in and out of class produce a tight-knit community and lifelong friendships.';
//End Items

function lr2Rotate() {
	dom=findDOM("caption",0);
    dom.innerHTML = lr2textStr[lr2i];
}
//End caption Rotation

