



/*-----------------------------------------------------------------------------------*/

/* Begin Random Rotating top center spotlight image, url, caption script */

/*-----------------------------------------------------------------------------------*/



var thePrograms = new Array(2) 



/* These are the image locations for the rotating register now images */

/* Register 1 Image Location  */

thePrograms[0] = '/umuchome/images/middleRotation/spring10_home_banner1.jpg'

/* Register 2 Image Location */

thePrograms[1] = '/umuchome/images/middleRotation/spring10_home_banner2.jpg'

/* Array for Programs Images */

/* var thePrograms = new Array(7) */



/* These are the image locations for the Programs images with the arrows */

/* Criminal Justice Image Location 

thePrograms[0] = '/umuchome/images/middleRotation/cj.jpg'

/* Dual Degrees Image Location 

thePrograms[1] = '/umuchome/images/middleRotation/dual.jpg'

/* Emergency Management Image Location 

thePrograms[2] = '/umuchome/images/middleRotation/emm.jpg'

/* Homeland Security Management Image Location 

thePrograms[3] = '/umuchome/images/middleRotation/hs.jpg'

/* Master of Business Administration Image Location 

thePrograms[4] = '/umuchome/images/middleRotation/mba.jpg'

/* Prior Learning Images Location 

thePrograms[5] = '/umuchome/images/middleRotation/pl.jpg'

/* UMUC 411 Image Location 

thePrograms[6] = '/umuchome/images/middleRotation/411.jpg'

*/



var cc = 0

var dd = thePrograms.length;



var preBuffer = new Array()

for (i = 0; i < dd; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = thePrograms[i]

}



var whichPrograms = Math.round(Math.random()*(dd-1));



/************************************************************/

/* These are the captions and url's for the Registration images */

/************************************************************/





if (whichPrograms == 0){ 

/* Criminal Justice URL */

var purl = "/spotlight/sessions.shtml";

/* Criminal Justice Caption */ 

var pcaption = "Find Your Next Start Date! Class Registration is Open";

}



if (whichPrograms == 1){ 

/* Dual Degrees URL */

var purl = "/spotlight/sessions.shtml";

/* Dual Degrees Caption */

var pcaption = "Find Your Next Start Date! Class Registration is Open";

}







/************************************************************/

/* These are the captions and url's for the Programs images */

/************************************************************/



/*

if (whichPrograms == 0){ 

/* Criminal Justice URL 

var purl = "/spotlight/cj.html";

/* Criminal Justice Caption 

var pcaption = "Criminal Justice";

}



if (whichPrograms == 1){ 

/* Dual Degrees URL 

var purl = "/spotlight/dual.html";

/* Dual Degrees Caption 

var pcaption = "Dual Degree Programs";

}



if (whichPrograms == 2){ 

/* Emergency Management URL 

var purl = "/spotlight/emm.html";

/* Emergency Management Caption 

var pcaption = "Emergency Management";

}



if (whichPrograms == 3){ 

/* Homeland Security Management URL 

var purl = "/spotlight/hsm.html";

/* Homeland Security Management Caption 

var pcaption = "Homeland Security Management";

}



if (whichPrograms == 4){ 

/* Master of Business Administration URL 

var purl = "/spotlight/mba.html";

/* Master of Business Administration Caption 

var pcaption = "Master of Business Administration (MBA)";

}



if (whichPrograms == 5){ 

/* Prior Learning URL 

var purl = "/spotlight/pl.html";

/* Prior Learning Caption 

var pcaption = "Prior Learning";

}



if (whichPrograms == 6){ 

/* UMUC 411 URL 

var purl = "/umuc411/";

/* UMUC 411 Caption 

var pcaption = "UMUC 411";

}

*/



function showPrograms(){

document.write('<a href="'+purl+'"><img src="'+thePrograms[whichPrograms]+'"alt="'+pcaption+'" /></a>');

}

/*-----------------------------------------------------------------------------------*/

/* End Random Rotating top center spotlight image, url, caption script */

/*-----------------------------------------------------------------------------------*/



/*-----------------------------------------------------------------------------------*/

/* Begin Random Rotating bottom left images */

/*-----------------------------------------------------------------------------------*/





var thePeople = new Array(4) 



/* These are the image locations for Finance your education images */

thePeople[0] = '/umuchome/images/financialaid1.jpg'

thePeople[1] = '/umuchome/images/financialaid2.jpg'

thePeople[2] = '/umuchome/images/financialaid4.jpg'

thePeople[3] = '/umuchome/images/financialaid4.jpg'



/* The old registration rotating images */

/*

thePeople[0] = '/umuchome/images/people/andy.jpg'

thePeople[1] = '/umuchome/images/people/jordan.jpg'

thePeople[2] = '/umuchome/images/people/nichelle.jpg'

thePeople[3] = '/umuchome/images/people/shawn.jpg'

thePeople[4] = '/umuchome/images/people/yu.jpg'

thePeople[5] = '/umuchome/images/financialaid.jpg'

thePeople[6] = '/umuchome/images/financialaid.jpg'

thePeople[7] = '/umuchome/images/financialaid.jpg'

*/



var cc = 0

var dd = thePeople.length;



var preBuffer = new Array()

for (i = 0; i < dd; i++){

   preBuffer[i] = new Image()

   preBuffer[i].src = thePeople[i]

}



var whichPeople = Math.round(Math.random()*(dd-1));



if (whichPeople == 0){ 

/* Register URL */

var ppurl = "/paymentoptions/";

/* Register Caption */

var ppcaption = "Make Your Education Affordable - Ten simple ways that work";

}



if (whichPeople == 1){ 

/* Register URL */

var ppurl = "/paymentoptions/";

/* Register Caption */

var ppcaption = "Fit Education Into Your Budget - Ten easy ways to make your education affordable";

}



if (whichPeople == 2){ 

/* Register URL */

var ppurl = "/paymentoptions/";

/* Register Caption */

var ppcaption = "Finance Your Education at 0% Interest";

}



if (whichPeople == 3){ 

/* Register URL */

var ppurl = "/paymentoptions/";

/* Register Caption */

var ppcaption = "Finance Your Education at 0% Interest";

}



if (whichPeople == 4){ 

/* Register URL */

var ppurl = "/events/press/news269.shtml";

/* Register Caption */

var ppcaption = "Educating Our Troops in Iraq";

}



if (whichPeople == 5){ 

/* Register URL */

var ppurl = "/events/press/news269.shtml";

/* Register Caption */

var ppcaption = "Educating Our Troops in Iraq";

}



function showPeople(){

document.write('<a href="'+ppurl+'"><img src="'+thePeople[whichPeople]+'"alt="'+ppcaption+'" /></a>');

}



