// JavaScript Document

var width = 750;

document.write(' <script type="text/javascript" src="js/control.js"></script>');
document.write(' <script type="text/javascript" src="js/menu.js"></script>');

document.write(' <table width="'+width+'" cellpadding="0" cellspacing="0" border="0" align="center">');
document.write(' 	<tr>');
document.write(' 		<td>');

document.write(' 		</td>');
document.write(' 	</tr>');
document.write(' </table>');



document.write(' <table width="'+width+'" cellpadding="0" cellspacing="0" border="2" bordercolorlight="#CCCCCC" align="center">');
document.write(' 	<tr>');
document.write(' 		<td>');	
document.write(' 			<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#336699">');
document.write(' 				<tr>');
document.write(' 					<td>');



document.write(' <div><a href="http://www.tufts.edu/vet/ccm/index.html"><img border="0" src="images/banner.jpg" width="740" alt="Center for Conservation Medicine" /></a></div>');

document.write(' <div id="navHolder"></div>');



//specify corresponding images below
var myimages=new Array();
  
//For Loop for all the images
for(x = 0; x < 16; x++)
{
  	myimages[x]='images/rotate/' + x + '.jpg';
}

// Choose rendom number
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="0" alt="CFA" width="'+width+'" height="150" align="top" />');

document.write(' 					</td>');
document.write(' 				</tr>');
document.write(' 			</table>');		

document.write(' 			<table width="100%" cellpadding="10" cellspacing="0" border="0" bgcolor="#FFFFFF">');
document.write(' 				<tr>');
document.write(' 					<td align="left">');
					
if(loc)
{
	// 1
	if(loc == "1")
	{
		document.write('<p class="text"><b>About the Center');
	}
	
	
	// 2
	if(loc == "2")
	{
		document.write('<p class="text"><b>Research');
	}
	
	
	// 3
	if(loc == "3")
	{
		document.write('<p class="text"><b>Education and Training');
	}

		
	// 4
	if(loc == "4")
	{
		document.write('<p class="text"><b>People');
	}
	
	
	if(pageTitle)
	{
		document.write(' : ' + pageTitle );
	}
	
	document.write('</b></p>');
	
}
else
{
	document.write(' <p class="text"><b>Center for Conservation Medicine</b></p>');
}


document.write(' <div style="position:relative; top:-12px; left:0px; width:100%; height:2px; background-color:#003366; font-size:1pt;"></div>');				
document.write(' <div style="position:relative; top:-10px; left:0px; width:100%;" class="small" align="right"><a href="index.html">Home</a>');


// Cookies
if(loc)
{
	document.write(' -> ');
	
	// 1
	if(loc == "1")
	{
		document.write('<a href="about.html">About the Center</a>');
	}

		
	// 2
	if(loc == "2")
	{
		document.write('<a href="research.html">Research</a>');
	}
	
	
	// 3
	if(loc == "3")
	{
		document.write('<a href="education.html">Education and Training</a>');
	}
	
	
	// 4
	if(loc == "4")
	{
		document.write('<a href="people.html">People</a>');
	}
	
	
	if(pageTitle)
	{
		document.write(' -> <a href="' + pageURL + '">' + pageTitle +'</a>');
	}
}


document.write(' </div>');


document.write(' <div style="position:relative; top:-5px; left:0px; width:99%;" class="text" align="left"> ');

