// JavaScript Document

var pagelist = new Array();


// add a new line for each item:        add ( SectTitle, URL, 0 );
// add a new line for each subitem:     add ( PageTitle, URL, 1 );

// indenting does not matter, but can help to visualize

// preferably, use "&amp;" instead of "&"

add ( "", "annrpt-toc.html", 0 ); // DO NOT REMOVE THIS LINE
add ( "Vision &amp; Mission Statement and Chair/Chief Report", "annrpt-vision.html", 0 );
add ( "Anesthesia Procedures at London Teaching Hospitals", "annrpt-procedures.html", 0 );
add ( "Organizational Chart", "annrpt-orgchart.html", 0 );
add ( "Faculty Members", "annrpt-faculty.html", 0 );
add ( "Clinical / Research Fellows and Residents" , "annrpt-fellows.html", 0 );
add ( "Site Chief Reports" , "annrpt-sitechief.html", 0 );
	add ( "St. Joseph's Health Care London" , "annrpt-sitechief.html#1", 1 );
	add ( "London Health Sciences Centre - University Hospital" , "annrpt-sitechief.html#2", 1 );
	add ( "London Health Sciences Centre - Victoria Hospital" , "annrpt-sitechief.html#3", 1 );
add ( "Clinical Academic Programs", "annrpt-academic.html", 0 );
	  add ( "Acute and Regional Anesthesia/Analgesia", "annrpt-academic.html#1", 1 );
	  add ( "Ambulatory Anesthesia", "annrpt-academic.html#2", 1 );
	  add ( "Anesthesia Assistant", "annrpt-academic.html#3", 1 );
	  add ( "Cardiac Anesthesia", "annrpt-academic.html#4", 1 ); 
	  add ( "Cardiac Surgery Recovery Unit", "annrpt-academic.html#5", 1 );
	  add ( "Cardiac Transesophageal Echocardiography (TEE)", "annrpt-academic.html#6", 1 );
	  add ( "Chronic Pain", "annrpt-academic.html#7", 1 );
	  add ( "Critical Care University Hospital - MSICU", "annrpt-academic.html#8", 1 );
	  add ( "Critical Care - Step Up Unit St. Joseph's Health Care London", "annrpt-academic.html#9", 1 );
	  add ( "Evidence Based Perioperative Clinical Outcomes Research (EPiCOR)", "annrpt-academic.html#10", 1 );
	  add ( "Liver Transplantation", "annrpt-academic.html#11", 1 );
	  add ( "Medical Informatics", "annrpt-academic.html#12", 1 );
	  add ( "Neuroanesthesia", "annrpt-academic.html#13", 1 );
	  add ( "Obstetrical Anesthesia", "annrpt-academic.html#14", 1 );
	  add ( "Palliative Care", "annrpt-academic.html#15", 1 ); 
	  add ( "Pediatric Anesthesia", "annrpt-academic.html#16", 1 );
	  add ( "Perioperative Blood Conservation", "annrpt-academic.html#17", 1 );
	  add ( "Simulation", "annrpt-academic.html#18", 1 );
	  add ( "Thoracic/Vascular Anesthesia Program", "annrpt-academic.html#19", 1 );
add ( "Education" , "annrpt-education.html", 0 );
	  add ( "Fellowship", "annrpt-education.html#1", 1 );
	  add ( "Postgraduate Education", "annrpt-education.html#2", 1 );
	  add ( "Undergraduate Education", "annrpt-education.html#3", 1 );
	  add ( "Continuing Medical Education", "annrpt-education.html#4", 1 );
	  add ( "Resident Research", "annrpt-education.html#5", 1 );
add ( "Faculty Didactic Teaching and Education" , "annrpt-didactic.html", 0 );
add ( "Faculty Awards, Certifications and Recognitions" , "annrpt-awards.html", 0 );
add ( "Faculty Participation Nationally and Internationally:" , "annrpt-participation.html", 0 );
	  add ( "Conference Chair/Moderator/Organizer", "annrpt-participation.html#1", 1 );
	  add ( "Invited Lectures/Visiting Professorships/Workshops", "annrpt-participation.html#2", 1 );
	  add ( "Boards/Committees/Other", "annrpt-participation.html#3", 1 );
add ( "Faculty Publications" , "annrpt-publications.html", 0 );
	  add ( "Peer Reviewed Publications", "annrpt-publications.html#1", 1 );
	  add ( "Abstracts/Case Reports", "annrpt-publications.html#2", 1 );
	  add ( "Books/Book Chapters/Videos", "annrpt-publications.html#3", 1 );	  
	  add ( "Non-Peer Reviewed Publications/Letters/Editorials/Reviews", "annrpt-publications.html#4", 1 );
	  add ( "International Standards Publicaitons", "annrpt-publications.html#5", 1 );
	  add ( "Publications Summary", "annrpt-publications.html#6", 1 );
add ( "Faculty Research Grants/Funding" , "annrpt-grants.html", 0 );
	  add ( "Peer Reviewed Grants and Funding", "annrpt-grants.html#1", 1 );
	  add ( "Non-Peer Reviewed Grants and Funding", "annrpt-grants.html#2", 1 );
	  add ( "Internal Grants and Funding", "annrpt-grants.html#3", 1 );
	  add ( "Grants Summary", "annrpt-grants.html#4", 1 );
	  


/////////////////////////////////
// DO NOT EDIT THESE FUNCTIONS //
/////////////////////////////////


var curpg = getpg()*1;

function add (text, url, depth) {

	var j = pagelist.length;
	pagelist[j] = new Array(3);
	pagelist[j][0] = text;
	pagelist[j][1] = url;
	pagelist[j][2] = depth;
}


function next() {
	if ( curpg < pagelist.length-1 ) {
		while (pagelist[curpg+1][2] != 0)  {
			curpg++;
		}
		window.location = pagelist[curpg+1][1];
	}
}

function lastpg() {
	var filenum;
	
	for (i=0; i<pagelist.length; i++) {
		if ( pagelist[i][2] == 0 ) {
			filenum = i;
		}
	}
	return filenum;
}


function prev() {
	if ( curpg > 0 ) {
		window.location = pagelist[curpg-1][1];
	}
}

function getpg() {
	var path = unescape(window.location.href);
	var filename;
	var filearr = new Array();
	var pos = path.indexOf("/");
	if ( pos >= 0 ) {
		filearr = path.split("/");
	} else {
		filearr = path.split("\\");
	}
	filename = filearr[filearr.length-1];

	filearr = filename.split("#");
	filename = filearr[0];
	
	for ( i=0; i<pagelist.length; i++ ) {
		if ( pagelist[i][1] == filename ) {
			return i;
		}
	} 
	return 0;
}

function topNav() {
	
	document.write('<div class="nav" id="navtop">');
	
	if ( curpg > 0 ) { 
		document.write('<a class="left" onclick="prev()"><img src="images/prev.gif"></a>');
	} else {
		document.write('<a class="left"></a>');
	}

	if ( curpg == 0 ) {
		document.write('<a class="toc_link" href="../about-annualreport.html"><img border=0 src="images/home.gif"></a>');
	} else {
		document.write('<a class="toc_link" href="annrpt-toc.html"><img border=0 src="images/toc.gif"></a>');
	}

	if ( curpg < lastpg() ) {
		document.write('<a class="right" onclick="next()"><img src="images/next.gif"></a>');
	} else {
		document.write('<a class="right"></a>');
	}
	
	document.write('</div>');
}


function botNav() {

	document.write('<div class="nav" id="navbot">');
	
	if ( curpg > 0 ) { 
		document.write('<a class="left" onclick="prev()"><img src="images/prev.gif"></a>');
	} else {
		document.write('<a class="left"></a>');
	}

	if ( curpg == 0 ) {
		document.write('<a class="toc_link" href="../about-annualreport.html"><img border=0 src="images/home.gif"></a>');
	} else {
		document.write('<a class="toc_link" href="annrpt-toc.html"><img border=0 src="images/toc.gif"></a>');
	}

	if ( curpg < lastpg() ) {
		document.write('<a class="right" onclick="next()"><img src="images/next.gif"></a>');
	} else {
		document.write('<a class="right"></a>');
	}
	
	document.write('</div>');
}

function toc() {
	
	document.write('<ul id="toc">');
	
	document.write('<li><a href="'+pagelist[0][1]+'">'+pagelist[0][0]+'</a>');
	prevdepth = pagelist[0][2];
	
	for ( i=1; i<pagelist.length; i++ ) {
		
		if ( pagelist[i][2] == prevdepth ) {
			document.write('</li>');
			document.write('<li><a href="'+pagelist[i][1]+'">'+pagelist[i][0]+'</a>');
		} else if ( pagelist[i][2] > prevdepth ) {
			li_open = prevdepth;
			document.write('<ul id="toc2"><li><a href="'+pagelist[i][1]+'">'+pagelist[i][0]+'</a>');
		} else {
			document.write('</li></ul>');
			document.write('<li><a href="'+pagelist[i][1]+'">'+pagelist[i][0]+'</a>');
		}
		
		prevdepth = pagelist[i][2];
		
	}
	
	document.write('</li></ul>');
}



