
function random_imglink(){
  //specify corresponding images below
  var myimages=new Array(); 
  //For Loop for all the images
  for(x = 0; x < 12; x++)
  {
  	myimages[x]='../common/images/loew/rotate-220/' + x + '.jpg';
  }
  //specify corresponding links below
  var imagelinks=new Array()
  imagelinks[1]="#";
  imagelinks[2]="#";
  imagelinks[3]="#";
  imagelinks[4]="#";
  imagelinks[5]="#"; 
  //specify corresponding alt tags for the images and title tags for links below
  var imagealt=new Array();
  imagealt[1]="Webster Library";
  imagealt[2]="Cummings School of Veterinary Medicine at Tufts University ";
  imagealt[3]="Cummings School of Veterinary Medicine at Tufts University ";
  imagealt[4]="Cummings School of Veterinary Medicine at Tufts University ";
  imagealt[5]="Cummings School of Veterinary Medicine at Tufts University "; 
  //variable to choose a random number from 0 to the maximum amount of images
  var ry=Math.floor(Math.random()*myimages.length);
  //To write the random image and link into the table of the template 
  document.write('<img src="'+myimages[ry]+'" border=1 bgcolor="white" alt="Webster Library" width=220 height=165>')
}


function nav(sub_number)
{
var which = sub_number;

document.write(' <style type="text/css"> ');
document.write(' .sub' + which +' {background-color:#B8D6F4;} ');
document.write(' </style> ');


<!-- ----------------------- Table 2 - Navigation  ------------------------- -->
document.write(' <table border="0" width="100%" height="20" cellpadding="0" cellspacing="0" summary=""> ');
document.write(' 	<tr> ');	
document.write(' 		<td align="left" class="blueback" width="20"> ');
document.write(' <img src="../common/images/side/blue.gif" alt="" width="20" height="10" border="0"> ');
document.write(' 		</td> ');			
document.write(' 		<td align="left" class="navbar" width="20" valign="top"> ');
document.write(' <img src="../common/images/side/corner2.gif" alt="" width="20" height="20" border="0"> ');
document.write(' 		</td> ');		
document.write(' 		<td align="left" class="navbar2" width="99%" valign="top"> ');
<!-- ----------------------- Main HTML Navigation -------------- -->
document.write(' 			<table border="0" width="100%" height="170" cellpadding="1" cellspacing="0" summary="" align="left" valign="top"> ');
document.write(' 				<tr> ');
document.write(' 					<td align="left" class="navbar" width="20%" valign="top"> ');
document.write(' <p>&nbsp;</p> ');					
document.write(' 					</td> ');
document.write(' 					<td align="center" class="navbar" width="40%" height="15" valign="top"> ');
document.write(' <b>Main Menu</b> ');
document.write(' 					</td> ');
document.write(' 					<td align="center" class="navbar" width="40%" valign="top"> ');
switch(which)
{
	case 1:
	document.write(' <b>Electronic Resources</b> ');
	break;
	
	case 2:
	document.write(' <b>Problem Based Learning</b> ');
	break;
	
	case 3:
	//document.write(' <b>Resources for Signature Programs</b> ');
	break;
	
	case 4:
	document.write(' <b>Library Service</b> ');
	break;
	
	case 5:
	document.write(' <b>Getting Help</b> ');
	break;
	
	case 6:
	document.write(' <b>About the Library</b> ');
	break;
	
	case 7:
	document.write(' <b>Library News</b> ');
	break; 
	
	case 8:
	document.write(' <b>Sub Menu 1</b> ');
	break;
}	
document.write(' 					</td> ');
document.write(' 				</tr> ');		
document.write(' 				<tr> ');
document.write(' 					<td align="center" class="navbar2" valign="top"> ');
<!-- -------------- Script to call new images in the top leftcorner of the page    -------- -->       
random_imglink();
document.write(' 					</td> ');				
document.write(' 					<td align="left" width="40%" bgcolor="#e3effa" height="120" valign="top"> ');  
document.write(' <div class="sub1">&nbsp;<a href="../vrw/index.html">Electronic Resources</a></div> ');
document.write(' <div class="sub4">&nbsp;<a href="../lservices/index.html">Library Services</a></div> ');
document.write(' <div class="sub6">&nbsp;<a href="../geninfo/index.html">About the Library</a></div> ');
document.write(' <div class="sub7">&nbsp;<a href="../news/index.html">Library News</a></div> ');
document.write(' <div class="sub5">&nbsp;<a href="../help/index.html">Getting Help</a></div> ');
document.write('<div class="sub8">&nbsp;<a href="http://tusk.tufts.edu/"><b>T</b>ufts <b>U</b>niversity <b>S</b>ciences <b>K</b>nowledgebase</a></div> ');
document.write(' <div class="sub2">&nbsp;<a href="../csupport/pbl_resources.html">Problem Based Learning</a></div> ');
//document.write(' <div class="sub3">&nbsp;<a href="../signature/index.html">Resources for Signature Programs</a></div> ');
document.write(' <div class="sub8">&nbsp;<a href="../index.html">Library Home</a></div> ');
document.write(' <div class="sub9">&nbsp;<a href="http://www.tufts.edu/vet/">TCSVM Home</a></div> ');
document.write(' 					</td> ');
document.write(' 					<td align="left" bgcolor="#B8D6F4" width="40%" class="small" valign="top">  ');
//bgcolor="#B8D6F4"
switch(which)
{
	case 1:
	document.write(' <a href="http://library.tufts.edu/">Tufts Online Catalog</a><br /> ');
	document.write(' <a href="../vrw/databases.html">Databases</a><br /> ');
		document.write(' <a href="http://www.library.tufts.edu/hsl/resources/ejalpha.html" target="blank">Electronic Journals</a><br /> ');
	//document.write(' <a href="../elforms/" title="Library Forms">Library Forms</a><br /> ');
	//document.write(' <a href="../vrw/blc.html">BLC Virtual Catalog</a><br />');
	document.write('<a href="../vrw/nontufts.html">Library Catalogs</a><br />');
	break;
	
	case 2:
	//document.write(' <a href="../csupport/why.html" title="Why PBL?">Why PBL?</a><br /> ');
	//document.write(' <a href="../csupport/what.html" title="What is PBL?">What Is PBL?</a><br /> ');
	//document.write(' <a href="../csupport/how.html" title="How Does PBL work?">How Does PBL Work?</a><br /> ');
	//document.write(' <a href="../csupport/evaluation.html" title="Evaluation Procedures">PBL Evaluation Procedures</a><br /> ');
	//document.write(' <a href="../csupport/suggest.html" title="Suggestions for PBL Groups">"Suggestions" for PBL Groups</a><br /> ');
	//document.write(' <a href="../csupport/schedule.html" title="PBL Library Orientation Schedule">PBL Library Orientation Schedule</a><br /> ');*/
	document.write(' <a href="../csupport/pbl_resources.html" title="PBL Resources">PBL Resources</a><br /> ');
	//document.write(' <a href="../csupport/support.html" title="Library staff">PBL Support Staff</a><br /> ');
	document.write(' <a href="http://tusk.tufts.edu/"><b>T</b>ufts <b>U</b>niversity <b>S</b>ciences <b>K</b>nowledgebase</a><br /> ');
	//document.write(' <a href="http://blackboard.tufts.edu/?bbatt=Y">Blackboard</a><br /> ');
	//document.write(' <a href="../csupport/pbl_elslinfo.html" title="Electronic Selective - Evaluation of Veterinary Literature">Electronic Selective - Evaluation of Veterinary Literature</a><br /> ');
	break;
	
	case 3:
	//document.write(' <a title="Biotechnology" href="../signature/biotech.html">Biotechnology</a><br />');
	//document.write(' <a href="../signature/eqnsprt.html" title="Equine Sports Medicine">Equine Sports Medicine</a><br /> ');
	//document.write(' <a href="../signature/exotwild.html" title="Wildlife Medicine">Wildlife Medicine</a><br /> ');
	//document.write(' <a href="../signature/intlvet.html" title="International Veterinary Medicine">International Veterinary Medicine</a><br /> ');
	//document.write(' <a href="../signature/vetethnc.html" title="Veterinary Ethics">Veterinary Ethics</a><br /> ');
	break;
	
	case 4:
	//document.write(' <a href="../lservices/index.html" title="Library Services for Faculty and Staff">Library Services for Faculty and Staff</a><br /> ');
	//document.write(' <a href="../lservices/index.html" title="Library Services for Students">Library Services for Students</a><br /> ');
	//document.write(' <a href="../elforms/" title="Library Forms">Library Forms</a><br /> ');
	break;
	
	case 5:
	document.write(' <a href="../help/findbook.html" title="How to Find a Book">How to Find a Book</a><br /> ');
	document.write(' <a href="../help/findjour.html" title="How to Find a Journal Article">How to Find a Journal Article</a><br /> ');
	document.write(' <a href="../help/index.html" title="Email and Computer Help">Email and Computer Help</a><br /> ');
	break;

	case 6:
	document.write(' <a href="../geninfo/contact.html" title="Contact Us">Contact Us</a><br /> ');
	document.write(' <a href="../geninfo/directns.html" title="Get Directions to the Webster Veterinary Library">Directions</a><br /> ');
	document.write(' <a href="../geninfo/staffdir.html" title="Staff Directory">Staff</a><br /> ');
	document.write(' <a href="http://www.library.tufts.edu/friends/" title="To Friends of the Libraries page">Friends of the Libraries</a><br /> ');
	document.write(' <a href="../geninfo/libhrs.html" title="Webster Veterinary Library Hours">Hours</a><br /> ');
	document.write(' <a href="../geninfo/jobs.html" title="Find a Job">Job Opportunities</a><br /> ');
	document.write(' <a href="../geninfo/policies.html" title="Webster Veterinary Library Policies">Policies</a><br /> ');
	document.write(' <a href="rudisill.html" title="Rudisill Currier &amp; Ives Collection">Rudisill Currier &amp; Ives Collection</a><br /> ');
	document.write(' <a href="http://www.library.tufts.edu" title="Learn about the various libraries at Tufts">Tufts University Libraries</a><br /> ');
	break;
	
	case 7:
	document.write(' <a href="../news/newbooks.html" title="New Books">New Books</a><br /> ');
	document.write(' <a href="../news/newsletter.html" title="Webster Veterinary Library Newsletter">Newsletter</a><br /> ');
	document.write(' <a href="http://events.tufts.edu/calendar.php?calendar=113" title="Upcoming Events at the Webster Veterinary Library" target="blank">Upcoming Events</a><br /> ');	
	break;
	
	case 8:
	document.write(' <a href="" title=" ">Sub link 1</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 2</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 3</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 4</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 5</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 6</a><br /> ');
	document.write(' <a href="" title=" ">Sub link 7</a><br /> ');
	break;
}
document.write(' 					</td> ');		
document.write(' 				</tr> ');
document.write(' 			</table> ');
document.write(' 		</td> ');		
document.write(' 		<td align="left" class="navbar" width="20" valign="top"> ');
document.write(' <img src="../common/images/side/righttopcorner2.gif" alt="" width="20" height="20" border="0"> ');
document.write(' 		</td> ');		
document.write(' 		<td align="left" class="blueback" width="20"> ');
document.write(' <img src="../common/images/side/blue.gif" alt="" width="20" height="10" border="0"> ');
document.write(' 		</td> ');			
document.write(' 	</tr> ');	
document.write(' </table> ');
}