////////////////////////////////////////////////////////////////////																////	Weill Cornell Medical College								////	cornellsurgery.org site javascript							////	cornellsurgery.js											////	Version 1.5 												//											//																////////////////////////////////////////////////////////////////////// ::::::::::::::::::::::::::: SECTION I: preload top nav images: three state rollovers// fill in the absolute paths for all the imagesif (browser) {	one_on = new Image; one_on.src="http://images.med.cornell.edu/headers/navbar/nyp/nav1_on.gif";	one_off = new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/nyp/nav1.gif";	one_active = new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/nyp/nav1_on.gif";	two_on = new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/nyp/nav2_on.gif";	two_off = new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/nyp/nav2.gif";	two_active = new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/nyp/nav2_on.gif";	three_on = new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/nyp/nav3_on.gif";	three_off = new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/nyp/nav3.gif";	three_active = new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/nyp/nav3_on.gif";	four_on = new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/nyp/nav4_on.gif";	four_off = new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/nyp/nav4.gif";	four_active = new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/nyp/nav4_on.gif";	five_on = new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/nyp/nav5_on.gif";	five_off = new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/nyp/nav5.gif";	five_active = new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/nyp/nav5_on.gif";}// ::::::::::::::::::::::::::: SECTION II: set values for panos, use absolute paths for all file locations// flash pano: use this if using different pano for each sectionif (active == "" && activeHome == "home") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_home.swf";} else if (active == "one") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_" + active + ".swf";} else if (active == "two") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_" + active + ".swf";} else if (active == "three") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_" + active + ".swf";} else if (active == "four") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_" + active + ".swf";} else if (active == "five") {	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano_" + active + ".swf";} else { //default to this just in case	panoLoc = "http://media.med.cornell.edu/panoramas/nyp/pano.swf";}// set animation to true or false		inAnimation			= "false";// static pano: use this if using different pano for each sectionif (active == "" && activeHome == "home") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/home.jpg";} else if (active == "one") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano_" + active + ".jpg";} else if (active == "two") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano_" + active + ".jpg";} else if (active == "three") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano_" + active + ".jpg";} else  if (active == "four") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano_" + active + ".jpg";} else  if (active == "five") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano_" + active + ".jpg";} else { //default to this just in case	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/pano.jpg";}		// lefthand nav homepage linksiteURL = "http://www.nyp.org/";// set xml data for pano flash heredataLoc				= "http://global.med.cornell.edu/panoramas/nyp/content.xml";// set loading value here: wmc or nypbrand				= "nyp";// setting the array, don't touchbuttonArray			= new Array ();// set absolute paths for all the pano toolbar links [image map for static pano]buttonArray[0]		= new createButtonObject ( 16, "http://physfind.beryl.net/physfindNYP/nyp/nyp.asp");buttonArray[1]		= new createButtonObject ( 6, "http://www.nyp.org/contactus/index.html");buttonArray[2]		= new createButtonObject ( 6, "http://www.nyp.org/careers/");buttonArray[3]		= new createButtonObject ( 5, "http://www.nyp.org/espanol");buttonArray[4]		= new createButtonObject ( 7, "http://www.nyp.org/maps/index.html");buttonArray[5]		= new createButtonObject ( 4, "http://www.nyp.org/search/search_advanced.html");// setting the array, don't touchadditionalMapArray	= new Array ();// START OF WEB TRENDS VARIABLES//var gFpcDom=".nyp.org";var gDomain="cds.nyp.org";var gDcsId="dcs9e0rmek711roghvzx6gsg8_9s4x";function sectionName() {	var activeSectionName = "";		if (active == "one") {		activeSectionName = "About Us";	} else if (active == "two") {		activeSectionName = "Healthcare Services";	} else if (active == "three") {		activeSectionName = "Health Info";	} else if (active == "four") {		activeSectionName = "For Patients and Visitors";	} else if (active == "five") {		activeSectionName = "For Health Professionals";	} else if (active == "") {		if (activeHome == "home") {			activeSectionName = "Home";		} else if (activeTool == "survey") {			activeSectionName = "COI:Survey Instructions";		} else if (activeTool == "policy") {			activeSectionName = "COI:Policy Statement";		} else if (activeTool == "appendix") {			activeSectionName = "COI:Appendix";		} else if (activeTool == "maps") {			activeSectionName = "Toolbar:Maps and Directions";		} else if (activeTool == "contact") {			activeSectionName = "Toolbar:Contact Us";		} else {			activeSectionName = "Toolbar:Quick Info";		}	} 	return activeSectionName;}// END OF WEB TRENDS VARIABLES // ::::::::::::::::::::::::::: SECTION III: set 2nd and 3rd level navigation links here, customize according to section// needed for 4th level links grey line, don't touchvar num4thLevelLinks = 0;// load 2nd and 3rd level navigation herefunction loadLinks() {	// setting the array, don't touch this line	var navLinks = new Array();	if (active == "one") {		// customize section one, 2nd and 3rd level navigation links here		navLinks[0] = new LeftLink('The Five Centers of NewYork-Presbyterian Hospital', 'http://www.nyp.org/about/our_loc.html', '2', '', '');		navLinks[1] = new LeftLink('Leading the Way', 'http://www.nyp.org/about/lea_way.html', '2', '', '');	    navLinks[2] = new LeftLink('Patient Care', 'http://www.nyp.org/about/lea_way_pat.html', '3', 'Leading the Way', '');		navLinks[3] = new LeftLink('Nursing', 'http://www.nyp.org/nursing/', '3', 'Leading the Way', '');			    navLinks[4] = new LeftLink('Facilities and Populations Served', 'http://www.nyp.org/about/lea_way_pop.html', '3', 'Leading the Way', '');		navLinks[5] = new LeftLink('Mission', 'http://www.nyp.org/about/mission.html', '3', 'Leading the Way', '');	    navLinks[6] = new LeftLink('Education', 'http://www.nyp.org/about/lea_way_edu.html', '3', 'Leading the Way', '');	    navLinks[7] = new LeftLink('Research and Clinical Trials', 'http://www.nyp.org/about/lea_way_res.html', '3', 'Leading the Way', '');	    navLinks[8] = new LeftLink('Vision', 'http://www.nyp.org/about/lea_way_vis.html', '3', 'Leading the Way', '');	    navLinks[9] = new LeftLink('Awards and Recognition', 'http://www.nyp.org/about/awards.html', '3', 'Leading the Way', '');	    navLinks[10] = new LeftLink('History of Achievement', 'http://www.nyp.org/about/lea_way_ach.html', '3', 'Leading the Way', '');		navLinks[11] = new LeftLink('Office of External Relations', 'http://www.nyp.org/oer', '2', '', '');    		navLinks[12] = new LeftLink('Healthcare System', 'http://www.nyp.org/about/hea_sys.html', '2', '', '');		navLinks[13] = new LeftLink('News', 'http://www.nyp.org/about/news.html', '2', '', '');	    navLinks[14] = new LeftLink('Hospital News', 'http://news.med.cornell.edu/nyp/', '3', 'News', '');	    navLinks[15] = new LeftLink('Health in the News', 'http://news.med.cornell.edu/nyp_health/', '3', 'News', '');		navLinks[16] = new LeftLink('Hospital Leadership', 'http://www.nyp.org/about/hos_lea.html', '2', '', '');		navLinks[17] = new LeftLink('Board of Trustees', 'http://www.nyp.org/about/boa_tru.html', '3', 'Hospital Leadership', '');	    navLinks[18] = new LeftLink('Life Trustees', 'http://www.nyp.org/about/hos_lea_lif_tru.html', '3', 'Hospital Leadership', '');	    navLinks[19] = new LeftLink('Corporate Officers', 'http://www.nyp.org/about/hos_lea_sen_adm.html', '3', 'Hospital Leadership', '');		navLinks[20] = new LeftLink('History', 'http://www.nyp.org/about/his.html', '2', '', '');		navLinks[21] = new LeftLink('Facts and Statistics', 'http://www.nyp.org/about/hos_stat.html', '2', '', '');		navLinks[22] = new LeftLink('Centers of Excellence', 'http://www.nyp.org/about/center.html', '2', '', '');	}  else if (active == "two") {		// customize section three, 2nd and 3rd level navigation links here	    navLinks[0] = new LeftLink('About the Program', 'http://www.nyp.org/ent/residency/about.html', '2', '', '');		    navLinks[1] = new LeftLink('Application Process', 'http://www.nyp.org/ent/residency/application.html', '2', '', '');	    navLinks[2] = new LeftLink('Overview', 'http://www.nyp.org/ent/residency/index.html', '2', '', '');	  	}   	    	    	    else if (active == "four") {		// customize section three, 2nd and 3rd level navigation links here	    navLinks[0] = new LeftLink('Important Telephone Numbers', 'http://www.nyp.org/guide/imp_tel.html', '2', '', '');		    navLinks[1] = new LeftLink('For Visitors', 'http://www.nyp.org/guide/visitors.html', '2', '', '');		navLinks[2] = new LeftLink('Visiting Hours and Policies', 'http://www.nyp.org/guide/visiting.html', '3', 'For Visitors', '');			navLinks[3] = new LeftLink('Visitor Parking', 'http://www.nyp.org/guide/vis_par.html', '3', 'For Visitors', '');			navLinks[4] = new LeftLink('Amenities', 'http://www.nyp.org/guide/amenities.html', '3', 'For Visitors', '');		navLinks[5] = new LeftLink('Meals and Snacks', 'http://www.nyp.org/guide/meals.html', '3', 'For Visitors', '');		navLinks[6] = new LeftLink('Guest Accommodation', 'http://www.nyp.org/guide/gue_acc.html', '2', '', '');			navLinks[7] = new LeftLink('Helmsley Guest Facility', 'http://www.nyp.org/guide/hospital/helmsley.html', '3', 'Guest Accommodation', '');				navLinks[8] = new LeftLink('Your Hospital Stay', 'http://www.nyp.org/guide/hospital/', '2', '', '');		navLinks[9] = new LeftLink('Planning Ahead', 'http://www.nyp.org/guide/hospital/planning/index.html', '3', 'Your Hospital Stay', '');		navLinks[10] = new LeftLink('Settling In', 'http://www.nyp.org/guide/hospital/settlin/index.html', '3', 'Your Hospital Stay', '');		navLinks[11] = new LeftLink('Leaving the Hospital videos', 'http://www.nyp.org/guide/hospital/leaving/index.html', '3', 'Your Hospital Stay', '');					navLinks[12] = new LeftLink('Preparing for Surgery', 'http://www.nyp.org/guide/pre_for_sur.html', '2', '', '');				navLinks[13] = new LeftLink('Billing', 'http://www.nyp.org/guide/billing/index.html', '2', '', '');			navLinks[14] = new LeftLink('Medicare Part A and B', 'http://www.nyp.org/guide/billing/medicare_ab.html', '3', 'Billing', '');			navLinks[15] = new LeftLink('Managed Care, HMO Insurance', 'http://www.nyp.org/guide/billing/hmo.html', '3', 'Billing', '');			navLinks[16] = new LeftLink('Commercial or Indemnity Insurance Plans', 'http://www.nyp.org/guide/billing/commercial.html', '3', 'Billing', '');			navLinks[17] = new LeftLink('Medicaid', 'http://www.nyp.org/guide/billing/medicaid.html', '3', 'Billing', '');					navLinks[18] = new LeftLink('Practical Information', 'http://www.nyp.org/guide/info/index.html', '2', '', '');		navLinks[19] = new LeftLink('Medical Records', 'http://www.nyp.org/guide/info/medical.html', '3', 'Practical Information', '');	    navLinks[20] = new LeftLink('Blood Donor Centers', 'http://www.nyp.org/guide/info/donor.html', '3', 'Practical Information', '');	    navLinks[21] = new LeftLink('Patient Relations', 'http://www.nyp.org/guide/info/relations.html', '3', 'Practical Information', '');	    navLinks[22] = new LeftLink('Ethics Committee', 'http://www.nyp.org/guide/info/ethics.html', '3', 'Practical Information', '');		navLinks[23] = new LeftLink('Interpreter Services', 'http://www.nyp.org/guide/info/interpreter.html', '3', 'Practical Information', '');		navLinks[24] = new LeftLink('Organ Donation', 'http://www.nyp.org/guide/info/organ.html', '3', 'Practical Information', '');			} else if (active == "five") {		navLinks[0] = new LeftLink('Transferring Patients', 'http://www.nyp.org/pro/transferring.html', '2', '', '');		navLinks[1] = new LeftLink('Healthcare Education', 'http://www.nyp.org/pro/education/index.html', '2', '', '');		navLinks[2] = new LeftLink('Medical Schools', 'http://www.nyp.org/pro/education/medical.html', '3', 'Healthcare Education', '');		navLinks[3] = new LeftLink('Graduate Medical Education', 'http://www.nyp.org/pro/gra_med_edu.html', '3', 'Healthcare Education', '');	    navLinks[4] = new LeftLink('Residency and Fellowship Training', 'http://www.nyp.org/pro/education/residency.html', '3', 'Healthcare Education', '');	    navLinks[5] = new LeftLink('Continuing Education', 'http://www.nyp.org/pro/education/continuing.html', '3', 'Healthcare Education', '');	    navLinks[6] = new LeftLink('Alumni News', 'http://www.nyp.org/pro/education/alumni.html', '3', 'Healthcare Education', '');		navLinks[7] = new LeftLink('Libraries and Links', 'http://www.nyp.org/pro/links/index.html', '2', '', '');		navLinks[8] = new LeftLink('Medical Libraries', 'http://www.nyp.org/pro/links/libraries.html', '3', 'Libraries and Links', '');				navLinks[9] = new LeftLink('Newsletters', 'http://www.nyp.org/pro/newsletter.html', '2', '', '');		navLinks[10] = new LeftLink('Housing', 'http://www.nyp.org/pro/housing.html', '2', '', '');	} else if (active == "") {		if (activeTool == "maps") {			navLinks[0] = new LeftLink('The Allen Pavilion', 'http://www.nyp.org/maps/allen.html', '2', '', '');			navLinks[1] = new LeftLink('Area Map', 'http://www.nyp.org/maps/allen_area.html', '3', 'The Allen Pavilion', '');			navLinks[2] = new LeftLink("Morgan Stanley Children's Hospital of NewYork-Presbyterian", 'http://www.nyp.org/maps/morgan.html', '2', '', '');						navLinks[3] = new LeftLink('NewYork-Presbyterian/ Columbia', 'http://www.nyp.org/maps/cpmc_directions.html', '2', '', '');			navLinks[4] = new LeftLink('Campus Map', 'http://www.nyp.org/maps/cpmc_campus.html', '3', 'NewYork-Presbyterian/ Columbia', '');			navLinks[5] = new LeftLink('Regional Map', 'http://www.nyp.org/maps/cpmc_maps.html', '3', 'NewYork-Presbyterian/ Columbia', '');			navLinks[6] = new LeftLink('NewYork-Presbyterian/ Weill Cornell', 'http://www.nyp.org/maps/wcmc_directions.html', '2', '', '');			navLinks[7] = new LeftLink('Campus Map', 'http://www.nyp.org/maps/wcmc_area_map.html', '3', 'NewYork-Presbyterian/ Weill Cornell', '');			navLinks[8] = new LeftLink('Interactive Map', 'http://www.nyp.org/maps/wcmc_int_map.html', '3', 'NewYork-Presbyterian/ Weill Cornell', '');			navLinks[9] = new LeftLink('Payne Whitney Westchester', 'http://www.nyp.org/maps/westchester.html', '2', '', '');			navLinks[10] = new LeftLink('Regional Map', 'http://www.nyp.org/maps/west_maps.html', '3', 'Payne Whitney Westchester', '');		} else if (activeTool == "contact") {			navLinks[0] = new LeftLink('Contact Us', 'http://www.nyp.org/contactus/index.html', '2', '', '');			navLinks[1] = new LeftLink('Feedback', 'http://www.nyp.org/contactus/feedback.html', '2', '', '');					} else if (activeTool == "privacy") {			navLinks[0] = new LeftLink('Notice of Privacy Practices', 'http://www.nyp.org/privacy/index.html', '2', '', '');			navLinks[1] = new LeftLink('Using and Disclosing Medical Information', 'http://www.nyp.org/privacy/usi_dis_inf.html', '2', '', '');			navLinks[2] = new LeftLink('Special Situations', 'http://www.nyp.org/privacy/spe_sit.html', '2', '', '');			navLinks[3] = new LeftLink('Patient Rights', 'http://www.nyp.org/privacy/pat_rig.html', '2', '', '');				} else if (activeTool == "give") {			// customize default section, homepage or toolbar, 2nd and 3rd level navigation links here			navLinks[0] = new LeftLink('Make a Gift Online', 'http://www.nyp.org/give/gift.html', '2', '', '');			navLinks[1] = new LeftLink('Ways of Giving', 'http://www.nyp.org/give/giving.html', '2', '', '');			navLinks[2] = new LeftLink('Gift Planning Opportunities', 'http://www.nyp.org/give/planning/index.html', '2', '', '');			navLinks[3] = new LeftLink('Benefits', 'http://www.nyp.org/give/planning/benefits/index.html', '3', 'Gift Planning Opportunities', '');		    navLinks[4] = new LeftLink('Gift Plans', 'http://www.nyp.org/give/planning/gift/index.html', '3', 'Gift Planning Opportunities', '');		    navLinks[5] = new LeftLink('Calculate Your Benefits', 'https://secure.pgcalc.com/giftcalcs/pgcinput.asp', '3', 'Gift Planning Opportunities', '');			navLinks[6] = new LeftLink('Our Pledge to You', 'http://www.nyp.org/give/pledge.html', '2', '', '');			navLinks[7] = new LeftLink('Volunteer Opportunities', 'http://www.nyp.org/give/volunteer/index.html', '2', '', '');			navLinks[8] = new LeftLink('NewYork-Presbyterian/ Weill Cornell', 'http://www.nyp.org/give/volunteer/nywcc.html', '3', 'Volunteer Opportunities', '');			navLinks[9] = new LeftLink('NewYork-Presbyterian/ Columbia', 'http://www.nyp.org/give/volunteer/columbia.html', '3', 'Volunteer Opportunities', '');			navLinks[10] = new LeftLink('The Allen Pavilion', 'http://www.nyp.org/give/volunteer/allen.html', '3', 'Volunteer Opportunities', '');						navLinks[11] = new LeftLink("Morgan Stanley Children's Hospital of NewYork-Presbyterian", "http://www.nyp.org/give/volunteer/chony.html", "3", "Volunteer Opportunities", "");														}	}		// returning the value here, don't touch	return (navLinks);		}// ::::::::::::::::::::::::::: SECTION IV: set all 4th level navigation here, customize according to sectionfunction loadNav4Pages() {	// setting the array, don't touch	var oneNav4Links = new Array();	var twoNav4Links = new Array();	var threeNav4Links = new Array();	var allNav4Pages = new Array();	if (active == "one") {		//oneNav4Links[0] = new LeftLink(' By Name', 'http://www.nyp.org/about/cornell_name.html', '4', 'Our National Rankings', "America's Top Doctors");	    //oneNav4Links[1] = new LeftLink('Cornell Physicians By Specialty', 'http://www.nyp.org/about/cornell_specialty.html', '4', 'Our National Rankings', "America's Top Doctors");	   //oneNav4Links[2] = new LeftLink('Columbia Physicians By Name', 'http://www.nyp.org/about/columbia_name.html', '4', 'Our National Rankings', "America's Top Doctors");		//oneNav4Links[3] = new LeftLink('Columbia Physicians By Specialty', 'http://www.nyp.org/about/columbia_specialty.html', '4', 'Our National Rankings', "America's Top Doctors");				twoNav4Links[0] = new LeftLink('Hospital News 2004', 'http://www.nyp.org/about/hospitalnews/2004.html', '4', 'News', 'Hospital News');		twoNav4Links[1] = new LeftLink('Hospital News 2003', 'http://www.nyp.org/about/hospitalnews/2003.html', '4', 'News', 'Hospital News');		twoNav4Links[2] = new LeftLink('Hospital News 2002', 'http://www.nyp.org/about/hospitalnews/2002.html', '4', 'News', 'Hospital News');					threeNav4Links[0] = new LeftLink('Health in the News 2003', 'http://www.nyp.org/about/healthnews/2003.html', '4', 'News', 'Health in the News');		threeNav4Links[1] = new LeftLink('Health in the News 2002', 'http://www.nyp.org/about/healthnews/2002.html', '4', 'News', 'Health in the News');				allNav4Pages[0] = new Nav4Page('http://www.nyp.org/about/top_doc_2003.html', oneNav4Links);	    allNav4Pages[1] = new Nav4Page('http://www.nyp.org/about/cornell_name.html', oneNav4Links);	    allNav4Pages[2] = new Nav4Page('http://www.nyp.org/about/cornell_specialty.html', oneNav4Links);		allNav4Pages[3] = new Nav4Page('http://www.nyp.org/about/columbia_name.html', oneNav4Links);		allNav4Pages[4] = new Nav4Page('http://www.nyp.org/about/columbia_specialty.html', oneNav4Links);		allNav4Pages[5] = new Nav4Page('http://www.nyp.org/about/hospitalnews/index.html', twoNav4Links);		allNav4Pages[6] = new Nav4Page('http://www.nyp.org/about/hospitalnews/2003.html', twoNav4Links);		allNav4Pages[7] = new Nav4Page('http://www.nyp.org/about/hospitalnews/2002.html', twoNav4Links);		allNav4Pages[8] = new Nav4Page('http://www.nyp.org/about/healthnews/index.html', threeNav4Links);		allNav4Pages[9] = new Nav4Page('http://www.nyp.org/about/healthnews/2003.html', threeNav4Links);		allNav4Pages[10] = new Nav4Page('http://www.nyp.org/about/healthnews/2002.html', threeNav4Links);				allNav4Pages[11] = new Nav4Page('http://www.nyp.org/about/hospitalnews/index.html', twoNav4Links);		allNav4Pages[12] = new Nav4Page('http://www.nyp.org/about/hospitalnews/2004.html', twoNav4Links);			} else if (active == "four") {		// customize 4th level navigation links here		oneNav4Links[0] = new LeftLink('What to Bring', 'http://www.nyp.org/guide/hospital/planning/what_bring.html', '4', 'Your Hospital Stay', 'Planning Ahead');		oneNav4Links[1] = new LeftLink('Admission and Discharge', 'http://www.nyp.org/guide/hospital/planning/admission.html', '4', 'Your Hospital Stay', 'Planning Ahead');		oneNav4Links[2] = new LeftLink("Patients' Rights", 'http://www.nyp.org/guide/hospital/planning/rights.html', '4', 'Your Hospital Stay', 'Planning Ahead');		twoNav4Links[0] = new LeftLink('Healthcare Team', 'http://www.nyp.org/guide/hospital/settlin/team.html', '4', 'Your Hospital Stay', 'Settling In');		//twoNav4Links[1] = new LeftLink('Visiting', 'http://www.nyp.org/guide/hospital/settlin/visiting.html', '4', 'Your Hospital Stay', 'Settling In');		twoNav4Links[1] = new LeftLink('Meals', 'http://www.nyp.org/guide/hospital/settlin/meals.html', '4', 'Your Hospital Stay', 'Settling In');		twoNav4Links[2] = new LeftLink('TV/Telephone', 'http://www.nyp.org/guide/hospital/settlin/tv.html', '4', 'Your Hospital Stay', 'Settling In');		twoNav4Links[3] = new LeftLink('Safety Policies', 'http://www.nyp.org/guide/hospital/settlin/safety.html', '4', 'Your Hospital Stay', 'Settling In');		//twoNav4Links[4] = new LeftLink('Amenities', 'http://www.nyp.org/guide/hospital/settlin/amenities.html', '4', 'Your Hospital Stay', 'Settling In');	   	    allNav4Pages[0] = new Nav4Page('http://www.nyp.org/guide/hospital/planning/index.html', oneNav4Links);	    allNav4Pages[1] = new Nav4Page('http://www.nyp.org/guide/hospital/planning/what_bring.html', oneNav4Links);	    allNav4Pages[2] = new Nav4Page('http://www.nyp.org/guide/hospital/planning/admission.html', oneNav4Links);		allNav4Pages[3] = new Nav4Page('http://www.nyp.org/guide/hospital/planning/rights.html', oneNav4Links);				allNav4Pages[4] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/index.html', twoNav4Links);	    allNav4Pages[5] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/team.html', twoNav4Links);	    allNav4Pages[6] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/visiting.html', twoNav4Links);		allNav4Pages[7] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/meals.html', twoNav4Links);		allNav4Pages[8] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/tv.html', twoNav4Links);		allNav4Pages[9] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/safety.html', twoNav4Links);		allNav4Pages[10] = new Nav4Page('http://www.nyp.org/guide/hospital/settlin/amenities.html', twoNav4Links);			} else if (active == "five") {				oneNav4Links[0] = new LeftLink('School of Nursing', 'http://www.nyp.org/pro/education/continuing_nursing.html', '4', 'Healthcare Education', 'Continuing Education');			allNav4Pages[0] = new Nav4Page('http://www.nyp.org/pro/education/continuing.html', oneNav4Links);		 	} else {		// customize 4th level navigation links here		oneNav4Links[0] = new LeftLink('Whitney-Harkness Society', 'http://www.nyp.org/give/planning/benefits/whitney.html', '4', 'Gift Planning Opportunities', "Benefits");		oneNav4Links[1] = new LeftLink('Receive and/or Provide Income', 'http://www.nyp.org/give/planning/benefits/receive_income.html', '4', 'Gift Planning Opportunities', "Benefits");		oneNav4Links[2] = new LeftLink("Charitable Estate Planning", 'http://www.nyp.org/give/planning/benefits/charitable_planning.html', '4', 'Gift Planning Opportunities', "Benefits");		oneNav4Links[3] = new LeftLink("Pass Wealth to Family", 'http://www.nyp.org/give/planning/benefits/pass_wealth.html', '4', 'Gift Planning Opportunities', "Benefits");				    twoNav4Links[0] = new LeftLink('Types of Bequests', 'http://www.nyp.org/give/planning/gift/bequests.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    twoNav4Links[1] = new LeftLink('Retirement Plans', 'http://www.nyp.org/give/planning/gift/retirement.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    twoNav4Links[2] = new LeftLink('Charitable Gift Annuity', 'http://www.nyp.org/give/planning/gift/charitable_annuity.html', '4', 'Gift Planning Opportunities', 'Gift Plans');		twoNav4Links[3] = new LeftLink('Charitable Remainder Annuity Trust', 'http://www.nyp.org/give/planning/gift/charitable_trust.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    twoNav4Links[4] = new LeftLink('Charitable Remainder Unitrust', 'http://www.nyp.org/give/planning/gift/charitable_unitrust.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    twoNav4Links[5] = new LeftLink('Charitable Lead Trust', 'http://www.nyp.org/give/planning/gift/charitable_lead.html', '4', 'Gift Planning Opportunities', 'Gift Plans');		twoNav4Links[6] = new LeftLink('Pooled Income Funds', 'http://www.nyp.org/give/planning/gift/pooled_income.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    twoNav4Links[7] = new LeftLink('Testamentary Trusts', 'http://www.nyp.org/give/planning/gift/testamentary_trusts.html', '4', 'Gift Planning Opportunities', 'Gift Plans');	    		threeNav4Links[0] = new LeftLink('Volunteer Newsletters', 'http://www.nyp.org/give/volunteer/newsletter.html', '4', 'Volunteer Opportunities', '');		threeNav4Links[1] = new LeftLink('Events and Training', 'http://www.nyp.org/give/volunteer/events.html', '4', 'Volunteer Opportunities', '');		threeNav4Links[2] = new LeftLink('Our Locations', 'http://www.nyp.org/give/volunteer/locations.html', '4', 'Volunteer Opportunities', '');		threeNav4Links[3] = new LeftLink('Volunteer Benefits', 'http://www.nyp.org/give/volunteer/benefits.html', '4', 'Volunteer Opportunities', '');			threeNav4Links[4] = new LeftLink('Frequently Asked Questions', 'http://www.nyp.org/give/volunteer/faq.html', '4', 'Volunteer Opportunities', '');			threeNav4Links[5] = new LeftLink('Volunteer Reception Pictures', 'http://www.nyp.org/give/volunteer/vol_gal.html', '4', 'Volunteer Opportunities', '');	        		        	    	    allNav4Pages[0] = new Nav4Page('http://www.nyp.org/give/planning/benefits/index.html', oneNav4Links);	    allNav4Pages[1] = new Nav4Page('http://www.nyp.org/give/planning/benefits/whitney.html', oneNav4Links);	    allNav4Pages[2] = new Nav4Page('http://www.nyp.org/give/planning/benefits/receive_income.html', oneNav4Links);	    allNav4Pages[3] = new Nav4Page('http://www.nyp.org/give/planning/benefits/charitable_planning.html', oneNav4Links);		allNav4Pages[4] = new Nav4Page('http://www.nyp.org/give/planning/benefits/pass_wealth.html', oneNav4Links);				allNav4Pages[5] = new Nav4Page('http://www.nyp.org/give/planning/gift/index.html', twoNav4Links);		allNav4Pages[6] = new Nav4Page('http://www.nyp.org/give/planning/gift/bequests.html', twoNav4Links);		allNav4Pages[7] = new Nav4Page('http://www.nyp.org/give/planning/gift/retirement.html', twoNav4Links);		allNav4Pages[8] = new Nav4Page('http://www.nyp.org/give/planning/gift/charitable_annuity.html', twoNav4Links);		allNav4Pages[9] = new Nav4Page('http://www.nyp.org/give/planning/gift/charitable_trust.html', twoNav4Links);		allNav4Pages[10] = new Nav4Page('http://www.nyp.org/give/planning/gift/charitable_unitrust.html', twoNav4Links);		allNav4Pages[11] = new Nav4Page('http://www.nyp.org/give/planning/gift/charitable_lead.html', twoNav4Links);		allNav4Pages[12] = new Nav4Page('http://www.nyp.org/give/planning/gift/pooled_income.html', twoNav4Links);		allNav4Pages[13] = new Nav4Page('http://www.nyp.org/give/planning/gift/testamentary_trusts.html', twoNav4Links);				allNav4Pages[14] = new Nav4Page('http://www.nyp.org/give/volunteer/index.html', threeNav4Links);		allNav4Pages[15] = new Nav4Page('http://www.nyp.org/give/volunteer/nywcc.html', threeNav4Links);		allNav4Pages[16] = new Nav4Page('http://www.nyp.org/give/volunteer/columbia.html', threeNav4Links);		allNav4Pages[17] = new Nav4Page('http://www.nyp.org/give/volunteer/allen.html', threeNav4Links);								allNav4Pages[18] = new Nav4Page('http://www.nyp.org/give/volunteer/chony.html', threeNav4Links);			allNav4Pages[19] = new Nav4Page('http://www.nyp.org/give/volunteer/newsletter.html', threeNav4Links);		allNav4Pages[20] = new Nav4Page('http://www.nyp.org/give/volunteer/events.html', threeNav4Links);		allNav4Pages[21] = new Nav4Page('http://www.nyp.org/give/volunteer/locations.html', threeNav4Links);		allNav4Pages[22] = new Nav4Page('http://www.nyp.org/give/volunteer/benefits.html', threeNav4Links);		allNav4Pages[23] = new Nav4Page('http://www.nyp.org/give/volunteer/faq.html', threeNav4Links);		allNav4Pages[24] = new Nav4Page('http://www.nyp.org/give/volunteer/vol_gal.html', threeNav4Links);		allNav4Pages[25] = new Nav4Page('http://www.nyp.org/give/volunteer/vol_gal2.html', threeNav4Links);			allNav4Pages[26] = new Nav4Page('http://www.nyp.org/give/volunteer/vol_gal3.html', threeNav4Links);				}	// returning the value here, don't touch	return (allNav4Pages);}function popup_tour(pg) {       tourpopup=window.open(pg,"popupwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,width=600,height=350");       tourpopup.focus();}// Pop a window. url mandatory, other args optional.function popWin(url,winName,widthHeight,leftTop,others){	/* set defaults */	if (winName == null) { var winName = "newWin"; }	if (widthHeight == null) { var widthHeight = "width=320, height=300"; }	if (leftTop == null) { var leftTop = "left=320,top=60,screenX=300,screenY=60"; }	if (others == null) { var others = "toolbar=no,location=no,scrollbars=no,menubar=no,resizable,status=no"; }		var features = widthHeight+','+leftTop+','+others;		var winInfo = window.open(url,winName,features); 	winInfo.focus();}