// JavaScript Document


// Banner # needed for acebottom.js
if(page%2 == 0)
{
	banner = 2;
}
else
{
	banner = 1;
}
	
	
function showTop1()
{
	document.write('<table width="1000" cellpadding="0" cellspacing="0" border="0" align="center" summary=""><tr><td colspan="3"><a href="http://www.tufts.edu/vet/ace/" title="Go to ACE home page"><img src="images/ace_banner'+ banner +'_p1.jpg" width="1000" border="0" alt="ACE" /></a></td></tr><tr> <td colspan="3"><a href="http://www.tufts.edu/vet/" title="Go to TCSVM home page"><img src="images/ace_banner'+ banner +'_p2.jpg" border="0" alt="ACE" /></a></td></tr><tr><td width="215" valign="top"><img src="images/ace_banner'+ banner +'_p3.jpg" border="0" alt="ACE" />');
}

function printLinks()
{
	links = new Array(12);
	links[1] = '01-whatisace.htm';
	links[2] = '02-acegoals.htm';
	links[3] = '03-courseschedule.htm';
	links[4] = '04-seminars.htm';
	links[5] = '05-clinicalprojects.htm';
	links[6] = '06-acefaculty.htm';
	links[7] = '07-specialtyrounds.htm';
	links[8] = '08-ebm.htm';
	links[9] = '09-internship.htm';
	links[10] = '10-jobs.htm';
	links[11] = '11-contactace.htm';
	
	title = new Array(12);
	title[1] = "What is the ACE Program";
	title[2] = "Goals of the ACE Program";
	title[3] = "ACE Course";
	title[4] = "Seminars and Other Activities";
	title[5] = "Clinical Projects";
	title[6] = "ACE Faculty";
	title[7] = "Specialty Rounds";
	title[8] = "Evidence Based Medicine";
	title[9] = "Internship and Residency Information";
	title[10] = "Job Information";
	title[11] = "Contact Information";
	
	for(x = 1; x < 12; x++)
	{
		if(page == x)
		{
			p = 'off';
		}
		else
		{
			p = 'on';
		}
		document.write('<a href="'+ links[x] +'" onMouseOver="aceImg'+ x +'.src=\'images/ace_button_'+ x +'_off.jpg\';" onMouseOut="aceImg'+ x +'.src=\'images/ace_button_'+ x +'_'+ p +'.jpg\';" title="'+ title[x] +'"><img name="aceImg'+ x +'" src="images/ace_button_'+ x +'_'+ p +'.jpg" border="0" alt="'+ title[x] +'" /></a>');
	}

	document.write('');

}



function showTop2()
{
	document.write('<p class="small">To report an error on the <br/>ACE web site, please contact<br/> the web admin staff.<br/>&copy; 2006, <a href="http://www.tufts.edu/">Tufts University</a></p></td><td width="571" valign="top" class="text"><p>&nbsp;</p><table width="100%" cellpadding="5" cellspacing="0" border="0"><tr><td class="text" valign="top">');
}


if(page != 0)
{				
	showTop1();
	printLinks();
	showTop2();
}