

// ::::::::::::::::::::::::::: 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://www.cornellpediatrics.org/images/header/nav1_on.gif";
	one_off= new Image; one_off.src="http://www.cornellpediatrics.org/images/header/nav1.gif";

	two_on= new Image; two_on.src="http://www.cornellpediatrics.org/images/header/nav2_on.gif";
	two_off= new Image; two_off.src="http://www.cornellpediatrics.org/images/header/nav2.gif";

	three_on= new Image; three_on.src="http://www.cornellpediatrics.org/images/header/nav3_on.gif";
	three_off= new Image; three_off.src="http://www.cornellpediatrics.org/images/header/nav3.gif";

	four_on= new Image; four_on.src="http://www.cornellpediatrics.org/images/header/nav4_on.gif";
	four_off= new Image; four_off.src="http://www.cornellpediatrics.org/images/header/nav4.gif";

	five_on= new Image; five_on.src="http://www.cornellpediatrics.org/images/header/nav5_on.gif";
	five_off= new Image; five_off.src="http://www.cornellpediatrics.org/images/header/nav5.gif";
	
	six_on= new Image; six_on.src="http://www.cornellpediatrics.org/images/header/nav6_on.gif";
	six_off= new Image; six_off.src="http://www.cornellpediatrics.org/images/header/nav6.gif";
	
	
	// include all additional section types to avoid errors. Set them to null.
	_on= new Image; _on.src=null;
	toolbar_1_on= new Image; toolbar_1_on.src=null;
	toolbar_2_on= new Image; toolbar_2_on.src=null;
	toolbar_3_on= new Image; toolbar_3_on.src=null;
	toolbar_4_on= new Image; toolbar_4_on.src=null;
	toolbar_5_on= new Image; toolbar_5_on.src=null;
	toolbar_6_on= new Image; toolbar_6_on.src=null;
	toolbar_7_on= new Image; toolbar_7_on.src=null;
	toolbar_8_on= new Image; toolbar_8_on.src=null;
	toolbar_9_on= new Image; toolbar_9_on.src=null;
}

// ::::::::::::::::::::::::::: 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 == "home") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_home.swf";
	//http://www.cornellpediatrics.org/media/panoramas/pano_home.swf";
}  else if (active == "one") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_home.swf";
	//http://www.cornellpediatrics.org/media/panoramas/pano_home.swf";
}  else if (active == "two") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_" + active + ".swf";
} else if (active == "three") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_" + active + ".swf";
} else if (active == "four") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_" + active + ".swf";
} else if (active == "five") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_" + active + ".swf";
} else if (active == "six") {
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano_" + active + ".swf";	
} else { //default to this just in case
	panoLoc = "http://www.cornellpediatrics.org/media/panoramas/pano.swf";
}
		
// set animation to true or false		
inAnimation			= "false";

// static pano: use this if using one pano for the whole site
//altPanoLoc = "http://images.med.cornell.edu/panoramas/pano_" + active + ".jpg";
// static pano: use this if using different pano for each section

if (active == "home") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_home.jpg";
} else if (active == "one") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else if (active == "two") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else if (active == "three") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "four") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "five") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "six") {
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano_" + active + ".jpg";
} else { //default to this just in case
	altPanoLoc = "http://www.cornellpediatrics.org/images/panoramas/pano.jpg";
}		
		
// set xml data for pano flash here
dataLoc				= "http://global.med.cornell.edu/panoramas/cornellpediatric/pano.xml";

// set this line to the location of the temp toolbar when working on the test server. comment it out to move to production
toolBarLoc			= "http://media.med.cornell.edu/panoramas/framework_toolbar" + homeWrapper + ".swf";
//http:/.med.cornell.edu/development/media/panoramas/framework_toolbar" + homeWrapper + ".swf";

// set loading value here: wmc or nyp
brand				= "wmc";

// 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, "#");
buttonArray[1]		= new createButtonObject ( 3, "#");
buttonArray[2]		= new createButtonObject ( 3, "http://www.cornellpediatrics.org/contact.html");
buttonArray[3]		= new createButtonObject ( 10, "#");

// setting the array, don't touch
additionalMapArray	= new Array ();

siteURL 			= "http://www.cornellpediatrics.org/";	






// ::::::::::::::::::::::::::: 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") {
	    
	    var navc = 0;
	    
		navLinks[navc++] = new LeftLink('The Komansky Center for Childrens Health', 'http://www.cornellpediatrics.org/abo_us/komansky.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Innovations', 'http://www.cornellpediatrics.org/abo_us/innovations.html', '2', '', '');
		navLinks[navc++] = new LeftLink('News and Events', 'http://www.cornellpediatrics.org/news/', '2', '', '');

		

	}  else if (active == "two") {
		
		var navc = 0;
		
		navLinks[navc++] = new LeftLink('Allergy, Immunology, and Pulmonary Disease', 'http://www.cornellpediatrics.org/ser_div/allergy/index.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Ambulatory Pediatrics', 'http://www.cornellpediatrics.org/ser_div/ambulatory.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Behavior and Child Development', 'http://www.cornellpediatrics.org/ser_div/development.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Cardiology', 'http://www.cornellpediatrics.org/ser_div/cardiology.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Child Protection', 'http://www.cornellpediatrics.org/ser_div/protection.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Critical Care Medicine', 'http://www.cornellpediatrics.org/ser_div/critical.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Emergency Medicine', 'http://www.cornellpediatrics.org/ser_div/emergency/index.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Endocrinology', 'http://www.cornellpediatrics.org/ser_div/endocrinology/index.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Gastroenterology', 'http://www.cornellpediatrics.org/ser_div/gastroenterology/index.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Hematology/Oncology', 'http://www.cornellpediatrics.org/ser_div/hem_onc.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Human Genetics', 'http://www.cornellpediatrics.org/ser_div/genetics/index.html', '2', '', '');
		/*navLinks[navc++] = new LeftLink('Infectious Diseases', 'http://www.cornellpediatrics.org/ser_div/infectious/index.html', '2', '', '');*/
		navLinks[navc++] = new LeftLink('Interhospital Transport Service', 'http://www.cornellpediatrics.org/ser_div/transport.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Mental Health', 'http://www.cornellpediatrics.org/ser_div/mental.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Nephrology', 'http://www.cornellpediatrics.org/ser_div/nephrology.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Neurology', 'http://www.cornellpediatrics.org/ser_div/neurology.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Newborn Medicine', 'http://www.cornellpediatrics.org/ser_div/newborn/index.html', '2', '', '');
	


		navLinks[navc++] = new LeftLink('Psychiatry', 'http://www.cornellpediatrics.org/ser_div/psychiatry/index.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Rheumatology', 'http://www.cornellpediatrics.org/ser_div/rheumatology.html', '2', '', '');
		// navLinks[navc++] = new LeftLink("Children's Asthma & Allergy Center", 'asthma.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Clinical Research Center', 'clinical_research.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Comprehensive Epilepsy Center', 'epilepsy.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Cystic Fibrosis Center', 'cystic_fibrosis.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('The Hypertension Center', 'hypertension.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Lipid/Cardiovascular Risk Center', 'lipid.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Anesthesiology', 'anesthesiology.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Burn Center', 'burn.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Cardiothoracic Surgery', 'cardiothoracic.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Dermatology', 'dermatology.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Neurosurgery', 'neurosurgery.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Opthalmology', 'opthalmology.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Oral Maxillofacial Surgery', 'oral.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Orthopedics', 'orthopedics.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Otorhinolaryngology', 'ent.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Pediatric Surgery', 'surgery.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Plastic Surgery', 'plastic_surgery.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Radiology', 'radiology.html', '2', '', '');
		// navLinks[navc++] = new LeftLink('Urology', 'urology.html', '2', '', '');
		
		
		
		
	} else if (active == "three") {
		
		var navc = 0;
		
		
		
	} else if (active == "four") {
		
		var navc = 0;
		
		navLinks[navc++] = new LeftLink('About Your Appointment', 'http://www.cornellpediatrics.org/patients/abo_app.html', '2', '', '');
		navLinks[navc++] = new LeftLink('About Your Hospitalization', 'http://www.cornellpediatrics.org/patients/abo_hos.html', '2', '', '');
		navLinks[navc++] = new LeftLink('What to Expect', 'http://www.cornellpediatrics.org/patients/pre_sur.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Billing', 'http://www.cornellpediatrics.org/patients/billing.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Practical Information', 'http://www.cornellpediatrics.org/patients/pra_inf.html', '2', '', '');
		navLinks[navc++] = new LeftLink('For Outpatients and Visitors', 'http://www.cornellpediatrics.org/patients/out_vis.html', '2', '', '');
		
	} else if (active == "five") {
	
		var navc = 0;
	
		navLinks[navc++] = new LeftLink('Clinical Trials', 'http://www.cornellpediatrics.org/research/cli_tri.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Laboratory Research', 'http://www.cornellpediatrics.org/research/lab_res.html', '2', '', '');
		
	} else if (active == "six") {

		var navc = 0;
	
		navLinks[navc++] = new LeftLink('Residency Program', 'http://www.cornellpediatrics.org/education/residency.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Fellowships', 'http://www.cornellpediatrics.org/education/fellowships.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Continuing Medical Education', 'http://www.cornellpediatrics.org/education/con_edu.html', '2', '', '');
		
	
		
	} else if (active == "toolbar_1") {
		
		navLinks[0] = new LeftLink('toolbar 1.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_1_1.html', '2', '', '');
		
	} else if (active == "toolbar_2") {
		
		navLinks[0] = new LeftLink('toolbar 2.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_2_1.html', '2', '', '');
		
	} else if (active == "toolbar_3") {
		
		navLinks[0] = new LeftLink('toolbar 3.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_3_1.html', '2', '', '');
		
	} else if (active == "toolbar_4") {
		
		navLinks[0] = new LeftLink('toolbar 4.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_4_1.html', '2', '', '');
		
	} else if (active == "toolbar_5") {
		
		navLinks[0] = new LeftLink('toolbar 5.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_5_1.html', '2', '', '');
		
	} else if (active == "toolbar_6") {
		
		navLinks[0] = new LeftLink('toolbar 6.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_6_1.html', '2', '', '');
		
	} else if (active == "toolbar_7") {
		
		navLinks[0] = new LeftLink('toolbar 7.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_7_1.html', '2', '', '');
	
	} else if (active == "toolbar_8") {
		
		navLinks[0] = new LeftLink('toolbar 8.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_8_1.html', '2', '', '');
		
	} else if (active == "toolbar_9") {
		
		navLinks[0] = new LeftLink('toolbar 9.1', 'http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_9_1.html', '2', '', '');
		
	}
		
	// returning the value here, don't touch
	return (navLinks);
}


// fourth-level navigation code begins here


function loadNav4Pages() {
 
 // setting the array, don't touch
 
var oneNav4Links = new Array();
var allNav4Pages = new Array();

var oneNav4Links1 = new Array();

var oneNav4Links2 = new Array();

var oneNav4Links3 = new Array();

var oneNav4Links4 = new Array();

var oneNav4Links5 = new Array();

var oneNav4Links6 = new Array();

var oneNav4Links7 = new Array();

var oneNav4Links8 = new Array();

var oneNav4Links9 = new Array();

var oneNav4Links10 = new Array();

var oneNav4Links11 = new Array();


 if (active == "one") {
 
 // customize 4th level navigation links here
 
 var navc = 0;
	

 
 } else if (active == "two") { 
 
 // customize 4th level navigation links here
 
 var navc = 0;
	

	oneNav4Links[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/allergy/research.html', '4', 'Allergy, Immunology, and Pulmonary Disease', '');
 /*	oneNav4Links[1] = new LeftLink('Education', 'http://www.cornellpediatrics.org/ser_div/allergy/education.html', '4', 'Allergy, Immunology, and Pulmonary Disease', '');
	*/	
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/allergy/research.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/allergy/education.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/allergy/index.html', oneNav4Links);
	
	oneNav4Links1[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/genetics/research.html', '4', 'Human Genetics', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/genetics/research.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/genetics/index.html', oneNav4Links1);
	

	oneNav4Links2[0] = new LeftLink('Facilities', 'http://www.cornellpediatrics.org/ser_div/emergency/facilities.html', '4', 'Emergency Medicine', '');
 	oneNav4Links2[1] = new LeftLink('Referral', 'http://www.cornellpediatrics.org/ser_div/emergency/referral.html', '4', 'Emergency Medicine', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/emergency/facilities.html', oneNav4Links2);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/emergency/referral.html', oneNav4Links2);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/emergency/index.html', oneNav4Links2);


	oneNav4Links3[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/endocrinology/research.html', '4', 'Endocrinology', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/endocrinology/research.html', oneNav4Links3);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/endocrinology/index.html', oneNav4Links3);
	
	oneNav4Links4[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/gastroenterology/research.html', '4', 'gastroenterology', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/gastroenterology/research.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/gastroenterology/index.html', oneNav4Links4);
	
	oneNav4Links5[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/infectious/research.html', '4', 'Infectious Diseases/Immunology', '');
 	oneNav4Links5[1] = new LeftLink('Education', 'http://www.cornellpediatrics.org/ser_div/infectious/education.html', '4', 'Infectious Diseases/Immunology', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/infectious/research.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/infectious/education.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/infectious/index.html', oneNav4Links5);		
	
 	oneNav4Links6[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/newborn/research.html', '4', 'Newborn Medicine', '');
 	oneNav4Links6[1] = new LeftLink('Fellowship', 'http://www.cornellpediatrics.org/ser_div/newborn/fellowships.html', '4', 'Newborn Medicine', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/newborn/research.html', oneNav4Links6);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/newborn/fellowships.html', oneNav4Links6);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/newborn/patients.html', oneNav4Links6);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/newborn/index.html', oneNav4Links6);

 	oneNav4Links7[0] = new LeftLink('Research', 'http://www.cornellpediatrics.org/ser_div/psychiatry/research.html', '4', 'Psychiatry', '');
		
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/psychiatry/research.html', oneNav4Links7);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/ser_div/psychiatry/index.html', oneNav4Links7);


 } else if (active == "three") { 
 
 // customize 4th level navigation links here
 
 var navc = 0;

	
 } else if (active == "four") { 
 
 // customize 4th level navigation links here
 
 var navc = 0;
	
	oneNav4Links[0] = new LeftLink('How to Schedule an Appointment', 'http://www.cornellpediatrics.org/patients/appointments.html', '4', 'About Your Appointment', '');
	oneNav4Links[1] = new LeftLink('Directions to Our Offices', 'http://www.cornellpediatrics.org/patients/directions.html', '4', 'About Your Appointment', '');
	oneNav4Links[2] = new LeftLink('International Patients', 'http://www.cornellpediatrics.org/patients/int_pat.html', '4', 'About Your Appointment', '');
	
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/int_pat.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/directions.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/abo_app.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/appointments.html', oneNav4Links);4
	
 	oneNav4Links1[0] = new LeftLink('Virtual Tour', 'http://www.cornellpediatrics.org/patients/vir_tou.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[1] = new LeftLink('The General Pediatric Unit', 'http://www.cornellpediatrics.org/patients/gen_ped.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[2] = new LeftLink('The Pediatric Intensive Care Unit', 'http://www.cornellpediatrics.org/patients/ped_int.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[3] = new LeftLink('Plannning Ahead', 'http://www.cornellpediatrics.org/patients/pla_ahe.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[4] = new LeftLink('Healthcare Team', 'http://www.cornellpediatrics.org/patients/hea_tea.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[5] = new LeftLink('Meals and Snacks', 'http://www.cornellpediatrics.org/patients/mea_sna.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[6] = new LeftLink('TV and Telephone', 'http://www.cornellpediatrics.org/patients/tv_tel.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[7] = new LeftLink('Safety Policies', 'http://www.cornellpediatrics.org/patients/saf_pol.html', '4', 'About Your Hospitalization', '');
 	oneNav4Links1[8] = new LeftLink('Amenitites', 'http://www.cornellpediatrics.org/patients/amenities.html', '4', 'About Your Hospitalization', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/vir_tou.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/gen_ped.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/ped_int.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/pla_ahe.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/hea_tea.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/mea_sna.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/tv_tel.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/saf_pol.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/amenities.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/abo_hos.html', oneNav4Links1);
	
 	oneNav4Links2[0] = new LeftLink('Preparing for Surgery', 'http://www.cornellpediatrics.org/patients/pre_sur2.html', '4', 'Preparing for Surgery', ''); 
 	oneNav4Links2[1] = new LeftLink('Pediatric Cardiothoracic Surgery', 'http://www.cornellpediatrics.org/patients/ped_car.html', '4', 'Preparing for Surgery', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/pre_sur2.html', oneNav4Links2);
 	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/ped_car.html', oneNav4Links2);
 	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/pre_sur.html', oneNav4Links2);

 	oneNav4Links3[0] = new LeftLink('Medicare', 'http://www.cornellpediatrics.org/patients/medicare.html', '4', 'Billing', ''); 
 	oneNav4Links3[1] = new LeftLink('Managed Care/HMO Insurance', 'http://www.cornellpediatrics.org/patients/man_car.html', '4', 'Billing', '');
 	oneNav4Links3[2] = new LeftLink('Commercial or Indemnity Insurance', 'http://www.cornellpediatrics.org/patients/com_ind.html', '4', 'Billing', '');
 	oneNav4Links3[3] = new LeftLink('Medicaid', 'http://www.cornellpediatrics.org/patients/medicaid.html', '4', 'Billing', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/medicare.html', oneNav4Links3);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/man_car.html', oneNav4Links3);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/com_ind.html', oneNav4Links3);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/medicaid.html', oneNav4Links3);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/billing.html', oneNav4Links3);

 	oneNav4Links4[0] = new LeftLink('Blood Donor Centers', 'http://www.cornellpediatrics.org/patients/blo_don.html', '4', 'Practical Information', '');
 	oneNav4Links4[1] = new LeftLink('Interpreter Services', 'http://www.cornellpediatrics.org/patients/int_ser.html', '4', 'Practical Information', '');
 	oneNav4Links4[2] = new LeftLink('Medical Records', 'http://www.cornellpediatrics.org/patients/med_rec.html', '4', 'Practical Information', '');
 	oneNav4Links4[3] = new LeftLink('Patient Relations', 'http://www.cornellpediatrics.org/patients/pat_rel.html', '4', 'Practical Information', '');
 	oneNav4Links4[4] = new LeftLink('Organ Donation', 'http://www.cornellpediatrics.org/patients/org_don.html', '4', 'Practical Information', '');
 	oneNav4Links4[5] = new LeftLink('Ethics Committee', 'http://www.cornellpediatrics.org/patients/eth_com.html', '4', 'Practical Information', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/blo_don.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/int_ser.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/med_rec.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/pat_rel.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/org_don.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/eth_com.html', oneNav4Links4);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/pra_inf.html', oneNav4Links4);

 	oneNav4Links5[0] = new LeftLink('Visiting Policies', 'http://www.cornellpediatrics.org/patients/vis_pol.html', '4', 'For Outpatients and Visitors', '');
 	oneNav4Links5[1] = new LeftLink('Parking', 'http://www.cornellpediatrics.org/patients/parking.html', '4', 'For Outpatients and Visitors', '');
 	oneNav4Links5[2] = new LeftLink('Restaurants', 'http://www.cornellpediatrics.org/patients/restaurants.html', '4', 'For Outpatients and Visitors', '');
 	oneNav4Links5[3] = new LeftLink('Banks', 'http://www.cornellpediatrics.org/patients/banks.html', '4', 'For Outpatients and Visitors', '');
 	oneNav4Links5[4] = new LeftLink('Hotels', 'http://www.cornellpediatrics.org/patients/hotels.html', '4', 'For Outpatients and Visitors', '');
 	oneNav4Links5[5] = new LeftLink('Special Accommodations', 'http://www.cornellpediatrics.org/patients/spe_acc.html', '4', 'For Outpatients and Visitors', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/vis_pol.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/parking.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/restaurants.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/banks.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/hotels.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/spe_acc.html', oneNav4Links5);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/patients/out_vis.html', oneNav4Links5);
	
	
 
	
	







 } else if (active == "five") { 
 
 // customize 4th level navigation links here
 
 var navc = 0;
	

	
 } else if (active == "six") { 
 
 // customize 4th level navigation links here
 
 var navc = 0;
	
 	var navc = 0;
	
 	oneNav4Links[0] = new LeftLink('Message from the Chairman', 'http://www.cornellpediatrics.org/education/mes_cha.html', '4', 'Residency Program', '');
 	oneNav4Links[1] = new LeftLink('Message from the Director', 'http://www.cornellpediatrics.org/education/mes_dir.html', '4', 'Residency Program', '');
 	oneNav4Links[2] = new LeftLink('History of the Department of Pediatrics', 'http://www.cornellpediatrics.org/education/history.html', '4', 'Residency Program', '');
 	oneNav4Links[3] = new LeftLink('Pediatric Curriculum', 'http://www.cornellpediatrics.org/education/ped_cur.html', '4', 'Residency Program', '');
 	oneNav4Links[4] = new LeftLink('Conference Schedule', 'http://www.cornellpediatrics.org/education/con_sch.html', '4', 'Residency Program', '');
 	oneNav4Links[5] = new LeftLink('Residents and Interns', 'http://www.cornellpediatrics.org/education/res_int.html', '4', 'Residency Program', '');
 	oneNav4Links[6] = new LeftLink('Application Requirements', 'http://www.cornellpediatrics.org/education/app_req.html', '4', 'Residency Program', '');
 	oneNav4Links[7] = new LeftLink('Class of 2005', 'http://www.cornellpediatrics.org/education/2005_grads.html', '4', 'Residency Program', '');
 	oneNav4Links[8] = new LeftLink('Contact the Residency Program', 'http://www.cornellpediatrics.org/education/contact.html', '4', 'Residency Program', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/mes_cha.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/mes_dir.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/history.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/ped_cur.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/con_sch.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/res_int.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/app_req.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/2005_grads.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/contact.html', oneNav4Links);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/residency.html', oneNav4Links);

	oneNav4Links1[0] = new LeftLink('Neonatology', 'http://www.cornellpediatrics.org/education/neonatology.html', '4', 'Fellowships', '');
	oneNav4Links1[1] = new LeftLink('Pediatric Cardiology', 'http://www.cornellpediatrics.org/education/cardiology.html', '4', 'Fellowships', '');
	oneNav4Links1[2] = new LeftLink('Pediatric Critical Care', 'http://www.cornellpediatrics.org/education/critical.html', '4', 'Fellowships', '');
	oneNav4Links1[3] = new LeftLink('Pediatric Emergency Medicine', 'http://www.cornellpediatrics.org/education/emergency.html', '4', 'Fellowships', '');
	oneNav4Links1[4] = new LeftLink('Pediatric Gastroenterology', 'http://www.cornellpediatrics.org/education/gastro.html', '4', 'Fellowships', '');
	oneNav4Links1[5] = new LeftLink('Pediatric Hematology and Oncology', 'http://www.cornellpediatrics.org/education/hem_onc.html', '4', 'Fellowships', '');
	oneNav4Links1[6] = new LeftLink('Pediatric Neurology', 'http://www.cornellpediatrics.org/education/neurology.html', '4', 'Fellowships', '');
	oneNav4Links1[7] = new LeftLink('Pediatric Rheumatology', 'http://www.cornellpediatrics.org/education/rheumatology.html', '4', 'Fellowships', '');

	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/neonatology.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/cardiology.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/critical.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/emergency.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/gastro.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/hem_onc.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/neurology.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/rheumatology.html', oneNav4Links1);
	allNav4Pages[navc++] = new Nav4Page('http://www.cornellpediatrics.org/education/fellowships.html', oneNav4Links1);
	

	
	
	
	
	
	
	
 	
 
 	

	

	
	

	
	
	
	
	
	
 } 
 
// 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();
}




