/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Begin navigation menu script */
function SwitchMenu(obj) {
  if(document.getElementById) {
	var el = document.getElementById(obj);
	var ar = document.getElementById("maincontainer").getElementsByTagName("div"); //DynamicDrive.com change
	if(el.style.display != "block") { //DynamicDrive.com change
	  for (var i=0; i<ar.length; i++) {
		if (ar[i].className=="submenu") //DynamicDrive.com change
		  ar[i].style.display = "none";
	  }
	  el.style.display = "block";
	} else {
	  el.style.display = "none";
	}
  }
}

/* End navigation menu script */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Begin random top photo script */
/* Edit the randomtopphotos in lines 6-9 to change images, additional images can be added by following the format */
var randomtopphoto = new Array(4) 

randomtopphoto[0] = 'images/home/topphoto1.jpg'
randomtopphoto[1] = 'images/home/topphoto2.jpg'
randomtopphoto[2] = 'images/home/topphoto3.jpg'
randomtopphoto[3] = 'images/home/topphoto4.jpg'

var cc = 0
var dd = randomtopphoto.length;

var preBuffer = new Array()
for (i = 0; i < dd; i++){
  preBuffer[i] = new Image()
  preBuffer[i].src = randomtopphoto[i]
}

var whichrandomtopphoto = Math.round(Math.random()*(dd-1));
function showrandomtopphoto() {
  document.write('<img src="'+randomtopphoto[whichrandomtopphoto]+'" />');
}
/* End random top photo script */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Begin random quote script */
/* Edit the randomquotes in lines 32-35 to change quotes, additional quotes can be added by following the format */
var randomquote = new Array
randomquote[0] = "&#8220;I have my choice of times, days, and locations.  UMUC is focused on me.&#8221;"
randomquote[1] = "&#8220;Taking classes online wasn't an issue once I saw all the support services at UMUC.&#8221;"
randomquote[2] = "&#8220;UMUC's flexible programs keep me ahead of change.&#8221;"
randomquote[3] = "&#8220;A graduate degree at UMUC fits right into my schedule.&#8221;"

var phraseCnt = randomquote.length;

function pickquote() {
  randomNum = Math.floor ((Math.random() * phraseCnt))
  selectquote = randomquote[randomNum] 
  document.write ("<h1>" + selectquote + "</h1>")
}
/* End random quote script */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Begin spotlight links mouseover image functions */
/* New functions can be added and most of these can be deleted */
/* DO NOT DELETE function change_back() or the mouseovers will break */




//function img1() {
//alert(<cfoutput>#getFrontPage.fpImage#</cfoutput>)
//  document.images.rotating.src = "areas/asiaview_uploads/asiaview.jpg";
//}

//function img3() {
//   document.images.rotating.src = "areas/asiaview_uploads/goarmyed.jpg";
//}

//function img4() {
//   document.images.rotating.src = "areas/asiaview_uploads/goarmyed.jpg";
//}



//function img3() {
//  document.images.rotating.src = "areas/asiaview_uploads/goarmyed.jpg";
//}

//function img4() {
//  document.images.rotating.src = "images/home/study.jpg";
//}

//function img5() {
//  document.images.rotating.src = "areas/asiaview_uploads/store2.jpg";
//}


//function change_back() {
//  document.images.rotating.src = "images/home/asia50years.jpg";
//} 

/* End spotlight links mouseover image functions */
/* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
