GENETICS = "Genetics";
MMG = "Microbiology and Molecular Genetics";
MCB = "Molecular and Cellular Biology";
EAS = "Engineering and Applied Sciences";
OEB = "Organismic and Evolutionary Biology";
MEDI = "Medicine"; 
MEDMICRO = "Medicine and Microbiology";
BCMP = "Biological Chemistry and Molecular Pharmacology";
CCB = "Chemistry and Chemical Biology";
EAS = "Engineering and Applied Sciences";
SYSBIO = "Systems Biology";
EPS = "Earth and Planetary Sciences";
PED = "Pediatrics";

//			  name                 URL								image            Dept.       Blurb
facultyData =  [	
		["Fred Ausubel", "http://ausubellab.mgh.harvard.edu/", "fausubel.jpg", GENETICS, "Plant Pathogens"],
		["Jonathan Beckwith", "http://beck2.med.harvard.edu/", "beckwith.jpg", MMG, "<em>E. coli</em> Genetics"],
		["Howard Berg", "http://www.rowland.harvard.edu/labs/bacteria/index.html", "Berg.jpg", MCB, "Motility and Chemotaxis"],
		["Thomas Bernhardt", "http://micro.med.harvard.edu/faculty/bernhardt.html", "bernhardt.jpg", MMG, "Bacterial genetics"],
// ["Antonio Bianco", "http://biancolab.bwh.harvard.edu/", "biancoan2.jpg", MEDI, ""],		
		["Barry Bloom", "http://www.hsph.harvard.edu/faculty/BarryBloom.html", "bloom.jpg", "Immunology and Infectious Diseases", "Tuberculosis"],
		["Michael Brenner", "http://www.deas.harvard.edu/brenner/", "brenner.jpg", EAS, "Quantitative Modeling"],
		["Briana Burton", "http://www.mcb.harvard.edu/Faculty/faculty_profile.php?f=briana-burton", "burton.jpg", MCB, "Microbial DNA Transporters"],
		["Steve Calderwood", "http://hms.harvard.edu/ec_vqp.asp?Name_GUID=%7BD0253C2D-CB9E-4041-8792-220A499BF74A%7D", "calderwood.jpg", MEDI, "Bacterial Pathogens"],
		["Colleen Cavanaugh", "http://www.oeb.harvard.edu/faculty/cavanaugh/", "Cavanaugh.jpg", OEB, "Symbiosis"],
		["George Church", "http://arep.med.harvard.edu/gmc/", "church.jpg", GENETICS, "Synthetic Biology"],
		["Jon Clardy", "http://clardy.med.harvard.edu/", "clardy_jon.jpg", BCMP, "Microbial Chemical Biology"],
		["John Collier", "http://micro.med.harvard.edu/faculty/collier.html", "collier.jpg", MMG, "Bacterial Toxins"],
		["Bruce Demple", "http://www.hsph.harvard.edu/faculty/BruceDemple.html", "demple.jpg", "Genetics and Complex Diseases", "Free Radical Toxicity"],
		["Floyd Dewhirst", "http://www.forsyth.org/forsyth.asp?pg=100154", "dewhirst.jpg", "Molecular Genetics", "Oral Microbial Diversity"],
		["Dan Fraenkel", "http://micro.med.harvard.edu/faculty/fraenkel.html", "fraenkel.jpg", MMG, "Yeast Glycolysis"],
		["Michael Gilmore", "http://www.schepens.harvard.edu/gilmore", "gilmore.jpg", "Ophthalmology", "Antibiotic Resistant Infection"],
		["Peter Girguis", "http://www.oeb.harvard.edu/faculty/girguis/", "girguis.jpg", OEB, "Deep Sea Microbiology"], 
		["David Golan", "http://bcmp.med.harvard.edu/index.php?option=com_akostaff&Itemid=51&func=fullview&staffid=56", "golan.jpg", BCMP, "Bacterial pathogenesis"],
		["Marcia Goldberg", "http://www.massgeneral.org/goldberglab/", "goldberg.jpg", MEDI, "Host-Pathogen Interactions"],
		["Colleen Hansel", "http://www.deas.harvard.edu/envmicro/", "hansel.jpg", EAS, "Environmental Microbiology"],
		["Dan Hartl", "http://www.oeb.harvard.edu/faculty/hartl/hartl-oeb.html", "hartl.jpg", OEB, "Population Genetics and Evolution"],
		["J. Woodland Hastings", "http://www.mcb.harvard.edu/hastings/dino.html", "hastings.jpg", MCB, "Dinoflagellate and Bacterial Bioluminescence"],
		["Ann Hochschild", "http://hochschildlab.med.harvard.edu/research.html", "hochschild2.jpg", MMG, ""],
		["David C. Hooper", "http://www.massgeneral.org/id/faculty/bio/index.asp?ID=2", "hooper.jpg", MEDI, "Mechanisms of Antibiotic Resistance"],
		
		["Deborah Hung", "http://ccib.mgh.harvard.edu/hunglab.htm", "hung.jpg", MMG, "Chemical Biology/ Bacterial Pathogenesis"],
		["Robert Husson", "http://www.hms.harvard.edu/dms/bbs/fac/Husson.html", "HussonB.jpg", PED, "Tuberculosis pathogenesis"],
		["David Johnston", "http://www.eps.harvard.edu/people/faculty/johnston", "johnston.jpg", EPS, "Earth History and Isotope Geobiology"],
		["Dan Kahne", "http://www.chem.harvard.edu/groups/kahne/", "kahne.jpg", CCB, "Natural Product Functions"],
		["Dennis Kasper", "http://www.channing.harvard.edu/kasper.htm", "kasper.jpg", MMG, "Host-Pathogen Interactions"],
		
		["Roy Kishony", "http://kishony.med.harvard.edu/", "kishony.jpg", "Systems Biology", "Microbial Epistasis Networks"],
		["Nancy Kleckner", "http://www.mcb.harvard.edu/Faculty/Kleckner.html", "Kleckner.jpg", MCB, "Chromosomes"],
		["Andrew Knoll", "http://www.eps.harvard.edu/people/faculty/knoll/", "Knoll.jpg", OEB, "Paleobiology"],
		["Roberto Kolter", "http://gasp.med.harvard.edu/", "rkolter.jpg", MMG, "Microbial Biofilms"],
		["Cammie Lesser", "http://www.hms.harvard.edu/dms/bbs/fac/lesser.html", "lesser2.jpg", MEDMICRO, "Bacterial Pathogenesis and Functional Genomics"],
		["Stephen Lory", "http://lorylab.med.harvard.edu/", "lory.jpg", MMG, "Bacterial Pathogens"], 
		["Richard Losick", "http://www.mcb.harvard.edu/Losick/", "losick1.jpg", MCB, "Microbial Development"],
		["Scot Martin", "http://people.deas.harvard.edu/%7Esmartin/", "martin.jpg", EAS, "Environmental Chemistry"],
		["Christopher Marx", "http://www.oeb.harvard.edu/faculty/marx/", "marx.jpg", OEB, "Experimental Evolution"],
		["John Mekalanos", "http://mekalanoslab.med.harvard.edu/", "mekalanos.jpg", MMG, "Virulence Factors"], 
		["Ralph Mitchell", "http://www.seas.harvard.edu/ourfaculty/profile/Ralph_Mitchell", "mitchell.jpg", EAS, "Environmental Microbiology"],
		["Andrew Murray", "http://www.mcb.harvard.edu/Faculty/Murray.html", "Murray.jpg", MCB, "Cell Cycle and Evolution"],
		["Eleftherios Mylonakis", "http://www2.massgeneral.org/id/labs/mylonakis/", "mylonakis.jpg", "Infectious Diseases", "Fungal pathogenesis/ Prokaryote-eukaryote interactions"],
		["Cathryn Nagler", "http://www.hms.harvard.edu/dms/immunology/fac/Nagler.html", "nagler2.jpg", MEDI, " Mucosal Immunology /Host pathogen interactions"],
		["Max Nibert", "http://nibertlab.med.harvard.edu/", "nibert.jpg", "Microbiology and Molecular Genetics", "Virus structure/function and evolution"], 
		["Bruce Paster", "http://www.forsyth.org/forsyth.asp?pg=100169", "paster.jpg", "Molecular Genetics", "Oral Microbial Diversity"], 
		["Johan Paulsson", "http://sysbio.med.harvard.edu/faculty/paulsson/", "paulsson.jpg", SYSBIO, "Modeling Gene Networks"], 
		["Ann Pearson", "http://www.eps.harvard.edu/people/faculty/pearsonlab/index.html", "Pearson.jpg", EPS, "Biogeochemistry"],
		["Anne Pringle", "http://www.oeb.harvard.edu/faculty/pringle", "pringle.jpg", OEB, "Ecological Genetics"],
		["Laurence Rahme", "http://genetics.mgh.harvard.edu/RahmeWeb", "rahme.jpg", "Surgery (Microbiology and Molecular Genetics)", "Multi-Host Pathogenesis"],
		["Eric Rubin", "http://www.hsph.harvard.edu/faculty/EricRubin.html", "rubin.jpg", "Immunology and Infectious Diseases", "Tuberculosis"],
		["David Rudner", "http://rudnerlab.med.harvard.edu/default.html", "rudner.jpg", MMG, "Cell-Cell Signaling and Chromosomes"],
		["Gary Ruvkun", "http://genetics.mgh.harvard.edu/RuvkunWeb/", "ruvkun.jpg", GENETICS, "Astrobiology"],
		["Alan Saghatelian", "http://www.chem.harvard.edu/groups/saghatelian/index.php", "saghatelian.jpg", CCB, "Metabolomic Discovery of Natural Products"],
		["Dan Schrag", "http://www.eps.harvard.edu/people/faculty/schrag/", "schrag.jpg", EPS, "Paleoclimatology"],
		["Pamela Silver", "http://silver.med.harvard.edu/", "Silver.jpg", SYSBIO, "Synthetic biology"],
		["Scott Snapper", "http://www.hms.harvard.edu/dms/bbs/fac/snapper.html", "snapper2.jpg", MEDI, "Microbial Pathogenesis"],
		["Howard Stone", "http://www.deas.harvard.edu/ourfaculty/profile/Howard_Stone", "stone.jpg", EAS, "Modelling of Swimming Microorganisms"],
		["Noreen Tuross", "http://www.fas.harvard.edu/~anthro/arch_faculty.html", "tuross.jpg", "Anthropology", "Biogeochemistry"],
		["Gregory Verdine", "http://glviris.harvard.edu", "verdine.jpg", CCB, "Chemical Genetics"],
		["John Wakeley", "http://www.oeb.harvard.edu/faculty/wakeley/wakeleylab.htm", "wakeley.jpg", OEB, "Theoretical Population Genetics"],
		["Matthew Waldor", "http://www.hhmi.org/research/investigators/waldor_bio.html", "waldor3.jpg", MEDMICRO, "Cellular and Molecular Biology of Human Pathogens"],
		["Suzanne Walker", "http://www.chem.harvard.edu/groups/walker/index.html", "walker.jpg", MMG, "Cell Wall Biosynthesis"],
		["Christopher T. Walsh", "http://walsh.med.harvard.edu/", "walsh.jpg", BCMP, "Enzymology"],
		["David Weitz", "http://www.deas.harvard.edu/projects/weitzlab/", "weitz.jpg", "Physics", "Experimental Soft Condensed Matter Physics"],
		["Michael Wessels", "http://www.childrenshospital.org/cfapps/research/data_admin/Site221/mainpageS221P0.html", "wessels3.jpg", PED, "Molecular Pathogenesis of Streptococcal Infection"],
		["Dyann Wirth", "http://www.hsph.harvard.edu/faculty/DyannWirth.html", "wirth.jpg", "Immunology and Infectious Diseases", "Malaria Genetics"],
		["Yun Zhang", "http://www.oeb.harvard.edu/faculty/zhang/zhang-oeb.html", "YunZhang.jpg", "Molecular Genetics", "Host-pathogen interactions"],
		["Xiaowei Zhuang", "http://zhuang.harvard.edu/", "Xiaowei.jpg", CCB, "Single Particle Imaging"]
		
		];
FD_NAME = 0;
FD_URL = 1;
FD_IMG = 2;
FD_DEPT = 3;
FD_BLB = 4;

thumbPath = "images/faculty/";


function buildFacultyTable ()
{
	nCols = 2;
	nImg = facultyData.length;
	nRows = Math.ceil (nImg / nCols);
	document.write ('<table class="factable" width="99%" border="0" cellpadding="5" cellspacing="5">');

	for (r = 0; r < nRows; r++){
		document.write ('<tr valign="top">');  // new row
		for (c = 0; c < nCols; c++){
			document.write ('<td width="50%"><p>'); // new cell
			var imgNo = (r * nCols) + c;
			if (imgNo < nImg){				
				document.write ('<a href="' + facultyData[imgNo][FD_URL] + '" class="facname" target="_blank">');
				document.write ('<img src="' + thumbPath + facultyData[imgNo][FD_IMG] + '" border="0" width="100" height="100" alt="' + facultyData[imgNo][FD_NAME] + '">');
				document.write (facultyData[imgNo][FD_NAME] + '</a><br />' + facultyData[imgNo][FD_DEPT] + '</p>');
				document.write ('<p class="facblurb">' + facultyData[imgNo][FD_BLB] + '</p>');
								
			} else {
				document.write ("&nbsp;");   	// empty cell 
				}			
			document.write ('</td>');		
		}
		document.write ("</tr>");
	}
	document.write ("</table>");
}
