physiciansArr=[[1, "Dr. Maude Elizabeth Seymour Abbott"],[2, "Dr. Jill Nina Newman Afrin"],[3, "Dr. Tenley E. Albright"],[4, "Dr. Hattie Elizabeth Alexander"],[5, "Dr. Virginia M. Alexander"],[6, "Dr. Ethel D. Allen"],[7, "Dr. Lori Arviso Alvord"],[8, "Dr. Dorothy Hansine Andersen"],[9, "Dr. Jean R. Anderson"],[10, "Dr. Marcia Angell"],[11, "Dr. Kathleen R. Annette"],[12, "Dr. Virginia Apgar"],[13, "Dr. Linda Susan Aranaydo"],[14, "Dr. Carol A. Aschenbrener"],[15, "Dr. Linda S. Austin"],[17, "Dr. Mary Ellen Avery"],[18, "Dr. Emily Partridge Bacon"],[19, "Dr. S. Josephine Baker"],[22, "Dr. Barbara Barlow"],[23, "Dr. Emily Dunning Barringer"],[24, "Dr. Doris Gorka Bartuska"],[25, "Dr. Barbara Bates"],[26, "Dr. Patricia E. Bath"],[27, "Dr. Constance Elizabeth Urciolo Battle"],[28, "Dr. Leona Baumgartner"],[29, "Dr. Lillian McLean Beard"],[30, "Dr. G. Valerie Beckles-Neblett"],[31, "Dr. Regina Marcia Benjamin"],[32, "Dr. (Mary) Alice Bennett"],[33, "Dr. Grete Lehner Bibring"],[34, "Dr. JudyAnn Bigby"],[35, "Dr. Elizabeth Blackwell"],[36, "Dr. Emily Blackwell"],[37, "Dr. Karin J. Blakemore"],[38, "Dr. Ruth Harriet Bleier"],[39, "Dr. Susan Jane Blumenthal"],[40, "Dr. Jo Ivey Boufford"],[41, "Dr. Nina Starr Braunwald"],[42, "Dr. Clara Arena Brawner"],[43, "Dr. Susan M. Briggs"],[44, "Dr. Benjy Frances Brooks"],[45, "Dr. Anna Elizabeth Broomall"],[46, "Dr. Dorothy Lavinia Brown"],[47, "Dr. U. Diane Buckingham"],[48, "Dr. Judith Martin Cadore"],[49, "Dr. Mary Steichen Calderone"],[50, "Dr. Helen Mary Caldicott"],[51, "Dr. Clair Mills Callan"],[52, "Dr. Selma Harrison Calmes"],[53, "Dr. Alexa Irene Canady"],[54, "Dr. Myrtelle May Canavan"],[55, "Dr. Consuelo E. M. Carmona"],[56, "Dr. Mary E. Schmidt Case"],[57, "Dr. Christine Karen Cassel"],[58, "Dr. Rita Charon"],[59, "Dr.  Alice Drew Chenoweth"],[60, "Dr. Eliza Lo Chin"],[61, "Dr. May Edward Chinn"],[62, "Dr. Donna M. Christian-Christensen"],[63, "Dr. Patricia StandTal Clarke"],[64, "Dr. Emeline Horton Cleveland"],[65, "Dr. Raquel Eidelnan Cohen"],[66, "Dr. Rebecca J. Cole"],[67, "Dr. Lorraine Hanlon Comanor"],[68, "Dr. Frances K. Conley"],[69, "Dr. Gerty Theresa Radnitz Cori"],[70, "Dr. Nereida Correa"],[71, "Dr. Molly Joel Coye"],[72, "Dr. Margaret D. Craighill"],[75, "Dr. Sadye Beatryce Curry"],[76, "Dr. Ruth E. Dayhoff"],[77, "Dr. Catherine D. DeAngelis"],[78, "Dr. Leila Alice Daughtry Denmark"],[79, "Dr. Carolyn R. Denning"],[80, "Dr. Jane F. Desforges"],[81, "Dr. Katherine Maria Drechsler Detre"],[82, "Dr. Helen Octavia Dickens"],[83, "Dr. Nancy Wilson Dickey"],[84, "Dr. Helen Aird Dickie"],[85, "Dr. Leah J. Dickstein"],[86, "Dr. Marie Amos Dobyns"],[87, "Dr. Sarah Read Dolley"],[88, "Dr. Joanne Froio Domson"],[89, "Dr. Janice Green Douglas"],[90, "Dr. Ethel Collins Dunham"],[91, "Dr. Georgia Rooks Dwelle"],[92, "Dr. Sara K. Dye"],[94, "Dr. Ruth Marguerite Easterling"],[96, "Dr. Lena Frances Edwards "],[97, "Dr. Louise Eisenhardt"],[98, "Dr. M. Joycelyn Elders"],[99, "Dr. Martha May Eliot"],[100, "Dr. Lois Taylor Ellison"],[101, "Dr. Mary Jane England"],[102, "Dr. Roselyn Payne Epps"],[103, "Dr. Marie Diana Equi"],[104, "Dr. Angela M. Erdrich"],[105, "Dr. Alice Ettinger"],[106, "Dr. Audrey Elizabeth Evans"],[107, "Dr. Matilda Arabella Evans"],[108, "Dr. Denise L. Faustman"],[109, "Dr. Dorothy Celeste Boulding Ferebee"],[110, "Dr. M. Irené Ferrer"],[111, "Dr. Marcella Farinelli Fierro"],[112, "Dr. Frances McLemore Fisk"],[113, "Dr. Faith Thayer Fitzgerald"],[114, "Dr. Katherine A. Flores"],[116, "Dr. Virginia Davis Floyd"],[117, "Dr. Kathleen M. Foley"],[118, "Dr. Justina Laurena Carter Ford"],[119, "Dr. Jean L. Fourcroy"],[120, "Dr. Virginia Kneeland Frantz"],[121, "Dr. Bernadette T. Freeland-Hyde"],[122, "Dr. Vanessa Northington Gamble"],[123, "Dr. Nancy E. Gary"],[124, "Dr. Marilyn Hughes Gaston"],[125, "Dr. Helene D. Gayle"],[126, "Dr. Beatrice Elizabeth Gee"],[127, "Dr. Julie Louise Gerberding"],[128, "Dr. Jennifer A. Giroux"],[129, "Dr. Nunzia Bettinsoli Giuse"],[130, "Dr. Helen Hofsommer Glaser"],[131, "Dr. Lynn R. Goldman"],[132, "Dr. Eliza Ann Grier"],[133, "Dr. Mary Elizabeth Guinan"],[134, "Dr. Connie Myers Guion"],[136, "Dr. Margaret A. Hamburg"],[137, "Dr. Alice Hamilton"],[138, "Dr. Harriet Louise Hardy"],[139, "Dr. Réjane M. Harvey"],[140, "Dr. Florence Pat Haseltine"],[141, "Dr. Elizabeth Dexter Hay"],[142, "Dr. Maxine Hayes"],[143, "Dr. Rowine Hayes Brown"],[144, "Dr. Margaret Caroline Heagarty"],[145, "Dr. Bernadine Healy"],[146, "Dr. Karen Hein"],[147, "Dr. Patricia Nez Henderson"],[148, "Dr. Jane Ellen Henney"],[149, "Dr. Maria Isabel Herran"],[150, "Dr. Jane E. Hodgson"],[152, "Dr. Jimmie C. Holland"],[153, "Dr. Mary Ann Hopkins"],[155, "Dr. Mary Catherine Raugust Howell"],[156, "Dr. Christie Ann Huddleston"],[158, "Dr. Gertrude Teixeira Hunter"],[159, "Dr. Kate Campbell Hurd-Mead"],[161, "Dr. Lisa I. Iezzoni"],[163, "Dr. Mary Corinna Putnam Jacobi"],[164, "Dr. Georgiana Mary Jagiello"],[165, "Dr. Grace Marilynn James"],[166, "Dr. Lissy Feingold Jarvik"],[167, "Dr. Nancy E. Jasso"],[169, "Dr. Renee Rosalind Jenkins"],[170, "Dr. Ann Connor Jobe"],[171, "Dr. Carol Johnson Johns"],[172, "Dr. Halle Tanner Dillon Johnson"],[173, "Dr. Paula A. Johnson"],[174, "Dr. Olga Jonasson"],[175, "Dr. Edith Irby Jones"],[176, "Dr. Mary Amanda Dixon Jones"],[177, "Dr. Julia M. Jones"],[179, "Dr. Elizabeth Karlin"],[180, "Dr. Susan Veronica Karol"],[181, "Dr. Judith Salmon Kaur"],[182, "Dr. Frances Kathleen Oldham Kelsey"],[183, "Dr. Mary Margaret Kemeny"],[184, "Dr. Mary Elizabeth Dickason King"],[185, "Dr. Ruth L. Kirschstein"],[186, "Dr. Perri Klass"],[187, "Dr. Irena Grasberg Koprowska"],[188, "Dr. Lila Stein Kroser"],[189, "Dr. Elisabeth Kübler-Ross"],[190, "Dr. Yvette Laclaustra"],[191, "Dr. Joyce Cohen Lashof"],[192, "Dr. Roz Diane Lasker"],[193, "Dr. Agnes D. Lattimer"],[194, "Dr. Risa J. Lavizzo-Mourey"],[195, "Dr. Margaret Morgan Lawrence"],[196, "Dr. Elizabeth Theresa Lee-Rey"],[197, "Dr. Marianne J. Legato"],[198, "Dr. Delores Maria Leon"],[199, "Dr. Elise Depew Strang L'Esperance"],[200, "Dr. Edithe J. Levit"],[201, "Dr. Edith M. Lincoln"],[202, "Dr. Iris F. Litt"],[203, "Dr. Hannah E. Myers Longshore"],[204, "Dr. Susan M. Love"],[205, "Dr. Esther Clayson Pohl Lovejoy"],[206, "Dr. Theresa Loya"],[207, "Dr. Amneris E. Luque"],[208, "Dr. D. Joanne Harley Lynn"],[209, "Dr. Catharine Macfarlane"],[210, "Dr. Sharon M. Malotte"],[211, "Dr. Audrey Forbes Manley"],[212, "Dr. Joann Elisabeth Manson"],[213, "Dr. Shirley Faye Marks"],[214, "Dr. Clara Marshall"],[215, "Dr. Melvina L. McCabe"],[216, "Dr. Anita Newcomb McGee"],[217, "Dr. Anne Bishop McKusick"],[218, "Dr. Laurie A. McLemore"],[219, "Dr. Barbara J. McNeil"],[220, "Dr. Martha Alicia Medrano"],[221, "Dr. Dorothy Reed Mendenhall"],[222, "Dr. Flavia Elaine Mercado"],[223, "Dr. Maria J. Merino"],[224, "Dr. Doris Honig Merritt"],[225, "Dr. Jean Baker Miller"],[226, "Dr. Lillie Rosa Minoka-Hill"],[227, "Dr. Janet L. Mitchell"],[228, "Dr. Kelly Roberta Moore"],[229, "Dr. Alma Dea Morani"],[230, "Dr. Kathryn Ann Morsea"],[231, "Dr. Rosalie Slaughter Morton"],[233, "Dr. Carol Cooperman Nadelson"],[234, "Dr. Maria Iandolo New"],[235, "Dr. Kate Pelham Newcomb"],[236, "Dr. Mary Modelle Newman"],[237, "Dr. Carol M. Newton"],[238, "Dr. Jennifer R. Niebyl"],[239, "Dr. Antonia Novello"],[240, "Dr. Elizabeth Odilile Ofili"],[241, "Dr. June E. Osborn"],[242, "Dr. Janet Rose Osuch"],[243, "Dr. Frances Owl-Smith"],[244, "Dr. Judith Ann Pachciarz"],[245, "Dr. Adriana R. Padilla"],[247, "Dr. Conchita Marie Paz"],[248, "Dr. Louise Pearce"],[249, "Dr. Pamela M. Peeke"],[250, "Dr. Fernande Marie Pelletier"],[251, "Dr. Lucille C. Norville Perez"],[252, "Dr. Muriel Petioni"],[253, "Dr. Susan La Flesche Picotte"],[254, "Dr. Vivian W. Pinn"],[255, "Dr. Deborah Elizabeth Powell"],[256, "Dr. Ann Preston"],[257, "Dr. Deborah Prothrow-Stith"],[258, "Dr. Sylvia M. Ramos"],[259, "Dr. Theresa Ramos"],[260, "Dr. Helen M. Ranney"],[261, "Dr. Joan Y. Reede"],[262, "Dr. Clarice D. Reid"],[263, "Dr. Lynne McArthur Reid"],[264, "Dr. Rachel Naomi Remen"],[265, "Dr. Ina Park Rhee"],[266, "Dr. Karen Schulder Rheuban"],[268, "Dr. Laurel Wysong Rice"],[269, "Dr. Barbara L. Riley"],[270, "Dr. Elena V. Rios"],[271, "Dr. Carolyn B. Robinowitz"],[272, "Dr. Merlyn Meneze Rodrigues"],[273, "Dr. Helen Rodriguez-Trias"],[274, "Dr. Irene Elizabeth Roeckel"],[275, "Dr. Mary Hasbah Roessel"],[276, "Dr. Cecilia M. Romero"],[277, "Dr. Marian Wilkins Ropes"],[278, "Dr. Linda Rosenstock"],[279, "Dr. Barbara Ross-Lee"],[280, "Dr. Yvette Roubideaux"],[281, "Dr. Marilyn A. Roubidoux"],[282, "Dr. Janet Davison Rowley"],[283, "Dr. Florence Rena Sabin"],[284, "Dr. Gloria Elizabeth Sarto"],[285, "Dr. Louise Schnaufer"],[286, "Dr. Edyth Hull Schoenrich"],[287, "Dr. Marianne Schuelein"],[288, "Dr. Rosalyn P. Scott"],[289, "Dr. Jessie Boyd Scriver"],[290, "Dr. Ida Sophia Scudder"],[291, "Dr. Georgeanna Seegar Jones"],[292, "Dr. Eleanor Gossard Shore"],[293, "Dr. Linda M. Dairki Shortliffe"],[294, "Dr. Omega C. Logan Silva"],[295, "Dr. Charlotte Silverman"],[296, "Dr. Marjorie Spurrier Sirridge"],[297, "Dr. Anneliese Lotte Sitarz"],[299, "Dr. Susan Potts Sloan"],[301, "Dr. Diane Gail Snustad"],[302, "Dr. Nancy L. Snyderman"],[303, "Dr. Anna Lenore Southam"],[304, "Dr. Jeannette E. South-Paul"],[305, "Dr. Edith E. Sproul"],[306, "Dr. M. Jeanne Spurlock"],[307, "Dr. Lucy Frank Squire"],[308, "Dr. Sarah M. Stelzner"],[309, "Dr. Esther M. Sternberg"],[310, "Dr. Victoria M. Stevens"],[312, "Dr. Paula L. Stillman"],[313, "Dr. Katharine Boucot Sturgis"],[314, "Dr. Judith Lea Swain"],[315, "Dr. Natalia M. Tanner"],[316, "Dr. Helen Brooke Taussig"],[317, "Dr. Caroline Bedell Thomas"],[318, "Dr. Debi Thomas"],[319, "Dr. Lois Pendleton Todd"],[321, "Dr. Adela S. Valdez"],[322, "Dr. Bertha Van Hoosen"],[323, "Dr. Ileana Vargas-Rodriquez"],[324, "Dr. Yvonnecris Veal"],[325, "Dr. Mary Edwards Walker"],[326, "Dr. Lila A. Wallis"],[327, "Dr. Rebekah May Wang-Cheng"],[328, "Dr. Ethel Weinberg"],[329, "Dr. Virginia Verral Weldon"],[330, "Dr. Nanette Kass Wenger"],[331, "Dr. Anna Wessels Williams"],[332, "Dr. Laura Ann Williams"],[333, "Dr. Marjorie Price Wilson"],[334, "Dr. Norma Spielman Wohl"],[335, "Dr. Stephanie Joan Woolhandler"],[336, "Dr. Jane Cooke Wright"],[337, "Dr. Terri L. Young"],[338, "Dr. Marie E. Zakrzewska"],[339, "Dr. Lucy M. Candib"],[341, "Dr. Kathryn Dorothy Anderson"],[343, "Dr. Leigh Ann Curl"],[344, "Dr. Michelle Anne Bholat"],[345, "Dr. Vivia Belle Appleton"],[346, "Dr. Harriet B. Jones"],[348, "Dr. Elizabeth D. A. Magnus Cohen"],[349, "Dr. Margaret Irving Handy"],[350, "Dr. Helen Cordelia Putnam"],[351, "Dr. Fannie Almara Quain"],[353, "Dr. Minnie Frances Hayden Howard"],[354, "Dr. Lillian Heath Nelson"],[355, "Dr. Catharine Gail Kincaid"],[358, "Dr. Mary Ellen Beck Wohl"],[359, "Dr. Susan Emma Hertz Howard"],[360, "Dr. Mary Lake Polan"],[361, "Dr. Eve Elizabeth Slater"],[362, "Dr. Harriet Pearson Dustan"],[363, "Dr. Sara Ellen Walker"],[364, "Dr. Rhonda Cornum"]];

function launchVideo(url) {
	w = window.open(url,'video','width=303,height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes');
	w.focus();
	return false;
}

function launchTranscript(url) {
	w = window.open(url,'transcript','width=550,height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes');
	w.focus();
	return false;
}

function launchPhoto(url) {
	w = window.open(url,'photo','width=585,height=525,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=yes');
	w.focus();
	return false;
}

function launchExternal( link ) {
	browserWindow = window.open( link.href,'browser','width=800,height=600,left=10,top=10,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes');
	browserWindow.focus();
	return false;
}

function launchInteractive(path) {
	interactiveWindow = window.open(path,'interactive','width=765,height=502,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	interactiveWindow.focus();
	return false;
}
function launchInteractiveKiosk(path) {
	interactiveWindow = window.open(path,'interactive','width=1024,height=768,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,fullscreen=yes');
	interactiveWindow.focus();
	return false;
}

function launchArtifact(path) {
	artifactWindow = window.open(path,'artifact','width=800,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	artifactWindow.focus();
	return false;
}

function launchInteractiveTranscript(path, stay){
	interactive_txt = window.open(path,'interactive_txt','width=600,height=502,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	interactive_txt.focus();
	if(!stay){
		window.close();
	}
	return false;
}

function launchInteractiveTranscriptKiosk(path, stay){
	interactive_txt = window.open(path,'interactive_txt','width=600,height=502,left=10,top=10,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	interactive_txt.focus();
	return false;
}

function launchDisclaimer(path) {
	disclaimerWindow = window.open(path,'disclaimer','width=610,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes');
	disclaimerWindow.focus();
	return false;
}

function launchFooter(path) {
	footerWindow = window.open(path,'disclaimer','width=685, height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes');
	footerWindow.focus();
	return false;
}

function launchCredits(path) {
	creditsWindow = window.open(path,'credits','width=510, height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes');
	creditsWindow.focus();
	return false;
}

function openbio( id ) {
	window.opener.location = '../physicians/biography_'+id+'.html';
	window.close();
}

function doStorySubmit(f) {
	if (f.Body.value == "") {
		alert("Please type a message before posting.");
		return false;
	} else if ((f.TopicID.options[f.TopicID.selectedIndex]).value == -1) {
		alert("Please select a theme before posting.");
		return false;
	} else {
		return confirm("The placement of advertisements or solicitations will not be accepted, and the material you submit must be original, and must not have been copied or derived from any material not owned by you. The National Library of Medicine will review the information prior to it going live but will not approve, endorse, or verify the accuracy of the information. You agree to hold the Library, and others acting on its behalf, harmless for any claims arising out of the Library's use of the material. You agree further that the material you submit may be used by the Library for any purpose in perpetuity. Because of the volume of submissions, not all stories will be immediately available or available indefinitely. By providing your name to this component, you give your permission to associate your name with your comments. By submitting a story to this project, you agree to legally assume full and sole responsibility for any liability that may arise as a result of your posting.");
	}
}


function writePhysicianStrip(root) {
	randomIndexes = [];
	while (randomIndexes.length < 14) {
		var r = (Math.round(Math.random() * (physiciansArr.length - 1)));
		if (!arrayContains(randomIndexes, r)) {
			randomIndexes[randomIndexes.length] = r;
		}
	}
	
	var i;
	for (var j = 0; j < randomIndexes.length; j++) {
		i = randomIndexes[j];
		var pID = physiciansArr[i][0];
		var pName = physiciansArr[i][1];
		document.write("<a href=\"" + root + "physicians/biography_" + pID + ".html\"><img src=\"" + root + "img/icons/" + pID + ".jpg\" width=\"44\" height=\"44\" alt=\"" + pName + "\" border=\"0\" /></a>");
		if (randomIndexes.length >= 1) {
			document.write("<img src=\"" + root + "img/spacer.gif\" width=\"3\" height=\"1\" alt=\"\" border=\"0\" />");
		}
	}
}

function writePhysicianBlock(root) {
	randomIndexes = [];
	while (randomIndexes.length < 6) {
		var r = (Math.round(Math.random() * (physiciansArr.length - 1)));
		if (!arrayContains(randomIndexes, r)) {
			randomIndexes[randomIndexes.length] = r;
		}
	}
	
	var i;
	for (var j = 0; j < randomIndexes.length; j++) {
		i = randomIndexes[j];
		var pID = physiciansArr[i][0];
		var pName = physiciansArr[i][1];
		document.write("<a href=\"" + root + "physicians/biography_" + pID + ".html\"><img src=\"" + root + "img/thumbs/" + pID + ".jpg\" width=\"107\" height=\"107\" alt=\"" + pName + "\" border=\"0\" /></a>");
		
		if (j == 2) {
			document.write("<br /><img src=\"" + root + "img/spacer.gif\" width=\"1\" height=\"3\" alt=\"\" border=\"0\" /><br />");
		} else if (j <= 5) {
			document.write("<img src=\"" + root + "img/spacer.gif\" width=\"3\" height=\"1\" alt=\"\" border=\"0\" />");
		}
	}
}

function writeAllPhysicians(root) {
	physiciansArr.reverse();
	while (o = physiciansArr.pop()) {
		var pID = o[0];
		var pName = o[1];
		document.write("<img src=\"" + root + "img/icons/" + pID + ".jpg\" width=\"44\" height=\"44\" alt=\"" + pName + "\" border=\"0\" />");
		document.write("<span class=\"default\"> <strong>" + pID + ":</strong> " + pName + "</span><br />");
	}
}

function arrayContains (a, o) {
	for (var i = 0; i < a.length; i++) {
		if (a[i] == o) {
			return true;
		}
	}
	return false;
}

function swapImage(strElement, objImage) {	
// this function swaps the image identified by strElement for a new one preloaded as objImage
	if (document.images && objImage && objImage.src && objImage.src != "") {
		if (document.images[strElement] && document.images[strElement].src != objImage.src) {
			document.images[strElement].src = objImage.src;
		}
	}
}

function subRollOver(i) {
	swapImage('sub' + i, subNavOn[i]);
	if (i > 0) swapImage('sub' + (i-1), subNavAdj[(i-1)]);
}

function subRollOut(i) {
	swapImage('sub' + i, subNavOff[i]);
	if (i > 0) swapImage('sub' + (i-1), subNavOff[(i-1)]);
}