// JavaScript Document



<!-- ----------------------- Table1 - Top images and header ------------------------- -->
document.write('<table border="0" width="100%" cellpadding="0" cellspacing="0" summary="This table contains the header of the page which includes the Tufts seal and various images of the school">  ');





<!-- Row1 -->
document.write('	<tr>  ');	
document.write('				<td align="left" class="blueback" height="100">  ');
<!-- -------------- Script to call the Vet banner to the top left corner of the page -------- -->
document.write("<a name='top'></a><img src='../vet_common/images/temp1/cummingsbanner.gif' width='390' height='85' alt='Tufts Banner' />");
document.write('		</td>  ');


		
		
document.write('		<td align="right" class="blueback"> ');
<!-- -------------- Script to call new images in the top rightcorner of the page -------- -->        
function random_imglink(){

  //counter
  var x = 0;
  
  //specify corresponding images below
  var myimages=new Array();
  
  //For Loop for all the images
  for(x = 0; x <= 28; x++)
  {
  	myimages[x]='../vet_common/images/temp1/rotate/img' + x + '.jpg';
  }

  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="../faculty_research/faculindex.html";
  imagelinks[2]="../sports/index.html";
  imagelinks[3]="../libraries/index.html";
  imagelinks[4]="../academic/index.html";
  imagelinks[5]="../studentlife/index.html";
  imagelinks[6]="../about/dean.html";
  imagelinks[7]="../signature/intlvetmed.html";
  imagelinks[8]="../sah/index.html";
  imagelinks[9]="../ccm/index.html";
  imagelinks[10]="../index.html";
  imagelinks[11]="../index.html";
  imagelinks[12]="../clinical/walpole.html";
  imagelinks[13]="../academic/educommforeign.html";
  imagelinks[14]="../sciencepark/index.html";
  imagelinks[15]="../clinical/index.html";
  imagelinks[16]="../lah/index.html";
  imagelinks[17]="../index.html";
  imagelinks[18]="../cfa/index.html";
  imagelinks[19]="../facpages/tseng_f.html";
  imagelinks[20]="../libraries/help/help/index.html";
  imagelinks[21]="../signature/wildlife.html";
  imagelinks[22]="../avm/index.html";
  imagelinks[23]="../admissions/index.html";
  imagelinks[24]="../index.html";
  imagelinks[25]="../index.html";
  imagelinks[26]="../admissions/index.html";
  imagelinks[27]="../admissions/index.html";
  imagelinks[28]="../admissions/index.html";

  
  //specify corresponding alt tags for the images and title tags for links below
  var imagealt=new Array();
  imagealt[1]="Dr. Kumar";
  imagealt[2]="Walking the horses";
  imagealt[3]="Upstairs in the Library";
  imagealt[4]="Lecture in the Lab";
  imagealt[5]="Eating Lunch Outside";
  imagealt[6]="Dean Kosch with Governor Cellucci";
  imagealt[7]="Bernice Wildlife Building";
  imagealt[8]="Working on a Patient";
  imagealt[9]="Looking at x-rays";
  imagealt[10]="Helping a baby Llama";
  imagealt[11]="Mother and baby Llama";
  imagealt[12]="Kitty in the Small Animal Hospital";
  imagealt[13]="Administration Building";
  imagealt[14]="Helping a Kitty";
  imagealt[15]="Animal Hosptial Sign";
  imagealt[16]="Large Animal Hospital";
  imagealt[17]="Horse infront of Large Animal Hospital";
  imagealt[18]="Horses Galloping";
  imagealt[19]="Dr. Tseng";
  imagealt[20]="Webster Library Computer Lab";
  imagealt[21]="Student Studying";
  imagealt[22]="AVM";
  imagealt[23]="Two Students";
  imagealt[24]="Walking through Campus";
  imagealt[25]="Tufts Animal Expo 2002";
  imagealt[26]="Campus Classrooms";
  imagealt[27]="Campus Classrooms";
  imagealt[28]="Campus Classrooms";
  
  //variable to choose a random number from 0 to the maximum amount of images
  var ry=Math.floor(Math.random()*myimages.length);

  //to change ry to 1 if it equals 0
  if (ry==0)
  {
     ry=1;
  }
  
  //To write the random image and link into the table of the template 
  document.write('<a href='+'"'+imagelinks[ry]+'"'+' title='+'"'+imagealt[ry]+'"'+'><img src="'+myimages[ry]+'" border=0 alt='+'"'+imagealt[ry]+'"'+' width="310" height="95" /></a>')
}

  //Function call
  random_imglink();
       
document.write('		</td>  ');
		
		
document.write('	</tr>  ');
document.write('</table>	  ');
	










