function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Load all information for image including:
//--image properties
//--onclick event (when the user clicks the image) opening up a separate window of information
//--onmouseover event (when the user mouses over the image) loading text as well as a rollover image
images = new Array
images[1]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/1.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image1', '','/Sites/4/templates/images-bcla/Rotator/rollover/1.jpg', 1); MM_changeProp('container','','innerHTML','In Our Time','P')\">						<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/1.jpg\" name=\"Image1\" width=\"70\" height=\"70\" border=\"0\" id=\"Image1\" alt=\"\" /></a>"
images[2]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/2.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image2', '','/Sites/4/templates/images-bcla/Rotator/rollover/2.jpg', 1); MM_changeProp('container','','innerHTML','Cultural Confluence','P')\">								<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/2.jpg\"  name=\"Image2\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image2\"  alt=\"\" /></a>"
images[3]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/3.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image3', '','/Sites/4/templates/images-bcla/Rotator/rollover/3.jpg', 1); MM_changeProp('container','','innerHTML','Teaching Human Tragedy','P')\">										<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/3.jpg\"  name=\"Image3\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image3\"  alt=\"\" /></a>"
images[4]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/4.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image4', '','/Sites/4/templates/images-bcla/Rotator/rollover/4.jpg', 1); MM_changeProp('container','','innerHTML','Latin American Mission','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/4.jpg\"  name=\"Image4\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image4\"  alt=\"\" /></a>"
images[5]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/5.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image5', '','/Sites/4/templates/images-bcla/Rotator/rollover/5.jpg', 1); MM_changeProp('container','','innerHTML','History in Hollywood','P')\">										<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/5.jpg\"  name=\"Image5\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image5\"  alt=\"\" /></a>"
images[6]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/6.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image6', '','/Sites/4/templates/images-bcla/Rotator/rollover/6.jpg', 1); MM_changeProp('container','','innerHTML','Intellectual Curiosity','P')\">								<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/6.jpg\"  name=\"Image6\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image6\"  alt=\"\" /></a>"
images[7]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/7.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image7', '','/Sites/4/templates/images-bcla/Rotator/rollover/7.jpg', 1); MM_changeProp('container','','innerHTML','Exploring the Borderland','P')\">						<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/7.jpg\"  name=\"Image7\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image7\"  alt=\"\" /></a>"
images[8]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/8.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image8', '','/Sites/4/templates/images-bcla/Rotator/rollover/8.jpg', 1); MM_changeProp('container','','innerHTML','The Power of Language','P')\">	<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/8.jpg\"  name=\"Image8\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image8\"  alt=\"\" /></a>"
images[9]  = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/9.html', 'winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image9', '','/Sites/4/templates/images-bcla/Rotator/rollover/9.jpg', 1); MM_changeProp('container','','innerHTML','The Art of Activism','P')\">											<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/9.jpg\"  name=\"Image9\"  width=\"70\" height=\"70\" border=\"0\" id=\"Image9\"  alt=\"\" /></a>"
images[10] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/10.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image10','','/Sites/4/templates/images-bcla/Rotator/rollover/10.jpg',1); MM_changeProp('container','','innerHTML','War, Peace & Lesser-known Leaders','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/10.jpg\" name=\"Image10\" width=\"70\" height=\"70\" border=\"0\" id=\"Image10\" alt=\"\" /></a>"
images[11] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/11.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image11','','/Sites/4/templates/images-bcla/Rotator/rollover/11.jpg',1); MM_changeProp('container','','innerHTML','Knowing the `Other`','P')\">							<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/11.jpg\" name=\"Image11\" width=\"70\" height=\"70\" border=\"0\" id=\"Image11\" alt=\"\" /></a>"
images[12] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/12.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image12','','/Sites/4/templates/images-bcla/Rotator/rollover/12.jpg',1); MM_changeProp('container','','innerHTML','Risks of Drinking','P')\">									<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/12.jpg\" name=\"Image12\" width=\"70\" height=\"70\" border=\"0\" id=\"Image12\" alt=\"\" /></a>"
images[13] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/13.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image13','','/Sites/4/templates/images-bcla/Rotator/rollover/13.jpg',1); MM_changeProp('container','','innerHTML','Spring Break in New Orleans','P')\">									<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/13.jpg\" name=\"Image13\" width=\"70\" height=\"70\" border=\"0\" id=\"Image13\" alt=\"\" /></a>"
images[14] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/14.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image14','','/Sites/4/templates/images-bcla/Rotator/rollover/14.jpg',1); MM_changeProp('container','','innerHTML','The Outside Classroom','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/14.jpg\" name=\"Image14\" width=\"70\" height=\"70\" border=\"0\" id=\"Image14\" alt=\"\" /></a>"
images[15] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/15.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image15','','/Sites/4/templates/images-bcla/Rotator/rollover/15.jpg',1); MM_changeProp('container','','innerHTML','Bridging East and West','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/15.jpg\" name=\"Image15\" width=\"70\" height=\"70\" border=\"0\" id=\"Image15\" alt=\"\" /></a>"
images[16] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/16.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image16','','/Sites/4/templates/images-bcla/Rotator/rollover/16.jpg',1); MM_changeProp('container','','innerHTML','Presidential Leadership','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/16.jpg\" name=\"Image16\" width=\"70\" height=\"70\" border=\"0\" id=\"Image16\" alt=\"\" /></a>"
images[17] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/17.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image17','','/Sites/4/templates/images-bcla/Rotator/rollover/17.jpg',1); MM_changeProp('container','','innerHTML','Preventing Mental Illness','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/17.jpg\" name=\"Image17\" width=\"70\" height=\"70\" border=\"0\" id=\"Image17\" alt=\"\" /></a>"
images[18] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/18.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image18','','/Sites/4/templates/images-bcla/Rotator/rollover/18.jpg',1); MM_changeProp('container','','innerHTML','New Course of Study Stirs Imagination','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/18.jpg\" name=\"Image18\" width=\"70\" height=\"70\" border=\"0\" id=\"Image18\" alt=\"\" /></a>"
images[19] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/19.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image19','','/Sites/4/templates/images-bcla/Rotator/rollover/19.jpg',1); MM_changeProp('container','','innerHTML','Asking the Big Questions','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/19.jpg\" name=\"Image19\" width=\"70\" height=\"70\" border=\"0\" id=\"Image19\" alt=\"\" /></a>"
images[20] = "<a href=\"#\" onclick=\"javascript:window.open('Sites/4/templates/images-bcla/Rotator/popup/20.html','winThumbs1','height=700,width=500;scrollbars=yes,resizable=no,location=no,menubar=no,statusbar=no')\" onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image20','','/Sites/4/templates/images-bcla/Rotator/rollover/20.jpg',1); MM_changeProp('container','','innerHTML','LMU Opens New Economic Laboratory','P')\">					<img src=\"/Sites/4/templates/images-bcla/Rotator/thumbs/20.jpg\" name=\"Image20\" width=\"70\" height=\"70\" border=\"0\" id=\"Image20\" alt=\"\" /></a>"

//number of images in array
//the minus one (-1) is due to there not being an images[0] element
var imagenumber = images.length-1;

//array of images that have been loaded
setimages = new Array;

var i=0;
while (i < 10)
{
	exists = false;
	
	//get a random number
	var randomnumber = Math.random() ;
	var rand = Math.round( (imagenumber-1) * randomnumber) + 1 ;
	
	//loop through already loaded images to not duplicate
	var j=0;
	while (j < setimages.length)
	{
		if (rand == setimages[j])
		{
			exists = true;
		}
		j++
	}
	
	//if we have a unique image:
	//--increment counter
	//--add the image number to the array of already loaded images
	//--write the image to the screen
	if (!exists)
	{	
		i++;
		setimages.push(rand);
		document.write(images[rand]);
		
		//if the amount of images loaded equals the number of images we have
		//clear the array of loaded images to start over
		if (setimages.length == imagenumber)
		{			
			var k=0;
			while (k < setimages.length)
			{
				setimages.pop(k);
				k++;
			}
		}
	}
}

