names = new Array(
	"Home",
	"Software",
	"Publications",
	"Archives",
	"Contact"
);
links = new Array(
	"index.html",
	"software.html",
	"publications.html",
	"archives.html", 
	"contact.html"
);
var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/')+1);	// for active link
filename = (filename=="") ? "index.html" : filename;

// navigation table:
var table = "<div id=\"nav\"> <div class=\"inner\"><table border=\"0\" cellpadding=\"0%\" cellspacing=\"0%\"> <tr>";
for (var i = 0; i <= names.length - 1; i++)
	table = table + "<td><a href=\"" + links[i] + "\"" + ((links[i] == filename) ? "class=\"active\"" : "") + "><span class=\"inner\">&nbsp;&nbsp;" + names[i] +  "&nbsp;&nbsp;</span></a></td>";
table = table + "</tr> </table> <div class=\"clear\"></div></div></div>";

// left column:
var img = "<img src=\"te.jpg\" width=\"135\" height=\"186\" alt=\"\" /><h1><b>Tobias Elze, PhD</b></h1>";
var schepens = "<em>Main affiliation:</em><br />Schepens Eye Research Institute<br />Harvard Medical School<br />Boston, MA<br /><br />";
var others = "<em>External affiliations:</em><br />Max Planck Institute for Mathematics in the Sciences<br />Leipzig, Germany<br /><br />Institute for Psychology and Behavior<br />Jilin University of Finance and Economics<br />Changchun, China";

var leftColumn = img + schepens + others;

