//////////////////////////////////////////////////////////////////
//																//
//	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/wmc/mdphd/nav_abo_us_on.gif";
	one_off= new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_abo_us_off.gif";

	two_on= new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_admissions_on.gif";
	two_off= new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_admissions_off.gif";

	three_on= new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_programs_on.gif";
	three_off= new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_programs_off.gif";
	
	four_on= new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_sum_pro_on.gif";
	four_off= new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_sum_pro_off.gif";		

	five_on= new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_fac_res_on.gif";
	five_off= new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_fac_res_off.gif";

	six_on= new Image; six_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_students_on.gif";
	six_off= new Image; six_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_students_off.gif";
	
	seven_on= new Image; seven_on.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_alumni_on.gif";
	seven_off= new Image; seven_off.src="http://images.med.cornell.edu/headers/navbar/wmc/mdphd/nav_alumni_off.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 only one pano for the whole site
//panoLoc				= "http://media.med.cornell.edu/panoramas/nyp/pano_home.swf";

// flash pano: use this if using different pano for each section
if (active == "home") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_home.swf";
} else if (active == "one") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "two") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "three") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "four") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "five") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "six") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else if (active == "seven") {
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_" + active + ".swf";
} else { //default to this just in case
	panoLoc = "http://global.med.cornell.edu/panoramas/wmc/mdphd/pano_one.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://images.med.cornell.edu/cumc/mdphd/panos/pano_home.jpg";
} else if (active == "one") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else if (active == "two") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else if (active == "three") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else  if (active == "four") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else  if (active == "five") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else  if (active == "six") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else  if (active == "seven") {
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_" + active + ".jpg";
} else { //default to this just in case
	altPanoLoc = "http://images.med.cornell.edu/cumc/mdphd/panos/pano_one.jpg";
}		
	

// set xml data for pano flash here
dataLoc				= "http://global.med.cornell.edu/panoramas/wmc/mdphd/data/pano.xml";

// set this line to the location of the temp toolbar when working on the  server. comment it out to move to production
toolBarLoc			= "http://media.med.cornell.edu/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 ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_1.html");
buttonArray[1]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_2.html");
buttonArray[2]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_3.html");
buttonArray[3]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_4.html");
buttonArray[4]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_5.html");
buttonArray[5]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_6.html");
buttonArray[6]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_7.html");
buttonArray[7]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_8.html");
buttonArray[8]		= new createButtonObject ( 4, "http://global.med.cornell.edu/templates/wmc/toolbar/toolbar_9.html");

// setting the array, don't touch
additionalMapArray	= new Array ();

// lefthand nav homepage link
siteURL = "http://weill.cornell.edu/mdphd";

// ::::::::::::::::::::::::::: 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") {
	    
		navLinks[0] = new LeftLink('From the Director', 'http://weill.cornell.edu/mdphd/about_us/fro_dir.html', '2', '', '');				
		navLinks[1] = new LeftLink('News', 'http://weill.cornell.edu/mdphd/news/', '2', '', '');
		navLinks[2] = new LeftLink('Contact Us', 'http://weill.cornell.edu/mdphd/about_us/con_us.html', '2', '', '');
		
	}  else if (active == "two") {
		
		//navLinks[0] = new LeftLink('Admissions', 'http://www.med.cornell.edu/mdphd/about_us/admissions.html', '2', '', '');
		navLinks[0] = new LeftLink('Transfer Policy', 'http://weill.cornell.edu/mdphd/admissions/transfer.html', '2', '', '');
		navLinks[1] = new LeftLink('FAQ', 'http://weill.cornell.edu/mdphd/admissions/faq.html', '2', '', '');
		navLinks[2] = new LeftLink('Admissions Tips ', 'http://weill.cornell.edu/mdphd/admissions/tips.html', '2', '', '');
		


	}  else if (active == "three") {
	
		var navc = 0;
		
		navLinks[navc++] = new LeftLink('Overview', 'http://weill.cornell.edu/mdphd/programs/overview.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('The Scientific Community', 'http://weill.cornell.edu/mdphd/programs/sci_com.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('A Course of Study', 'http://weill.cornell.edu/mdphd/programs/cou_stu.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('Careers in Biomedicine Summer Series', 'http://weill.cornell.edu/mdphd/programs/car_bio.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('2009 Summer Series Schedule', 'http://weill.cornell.edu/mdphd/programs/summer_sched.html', '3', 'Careers in Biomedicine Summer Series', '');
		
		navLinks[navc++] = new LeftLink('Introduction to Medicine for Clinical Investigators', 'http://weill.cornell.edu/mdphd/programs/intro_clinical.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('FAQ', 'http://weill.cornell.edu/mdphd/programs/faq.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('FACES', 'http://weill.cornell.edu/mdphd/programs/faces.html', '2', '', '');
        
        navLinks[navc++] = new LeftLink('First and Second Year Lunches', 'http://weill.cornell.edu/mdphd/programs/lunches.html', '2', '', '');
        
        navLinks[navc++] = new LeftLink('Frontiers 1st Year', 'http://weill.cornell.edu/mdphd/programs/frontiers.html', '2', '', '');
        
         navLinks[navc++] = new LeftLink('Frontiers 2nd Year', 'http://weill.cornell.edu/mdphd/programs/frontiers2.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('Frontiers Biomedical Research Course', 'http://weill.cornell.edu/mdphd/programs/frontiers_bio_research.html', '2', '', '');
         
         navLinks[navc++] = new LeftLink('Translational Course', 'http://weill.cornell.edu/mdphd/programs/translational.html', '2', '', '');
		
	}  else if (active == "four") {
		
		var navc = 0;
		
		navLinks[navc++] = new LeftLink('News', 'http://weill.cornell.edu/mdphd/summerprogram/news.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Archive', 'http://weill.cornell.edu/mdphd/summerprogram/news_archive.html', '3', 'News', '');
		navLinks[navc++] = new LeftLink('Application', 'http://weill.cornell.edu/mdphd/summerprogram/application.html', '2', '', '');
		navLinks[navc++] = new LeftLink('FAQ', 'http://weill.cornell.edu/mdphd/summerprogram/faq.html', '3', 'Application', '');
		navLinks[navc++] = new LeftLink('Students', 'http://weill.cornell.edu/mdphd/summerprogram/students.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Alumni', 'http://weill.cornell.edu/mdphd/summerprogram/alumni.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Updates Summer 2009', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_summer_09.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Winter 2008', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_winter_08.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Summer 2007', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_summer_07.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Spring 2007', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_spring_07.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Summer 2006', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_summer_06.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Spring 2006', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_spring_06.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Updates Winter 2006', 'http://weill.cornell.edu/mdphd/summerprogram/alumni_winter_06.html', '3', 'Alumni', '');
		navLinks[navc++] = new LeftLink('Testimonials', 'http://weill.cornell.edu/mdphd/summerprogram/testimonials.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Photo Gallery 2009', 'http://weill.cornell.edu/mdphd/summerprogram/gallery/2009.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Photo Gallery 2001-2008', 'http://weill.cornell.edu/mdphd/summerprogram/gallery.html', '2', '', '');

		


	} else if (active == "five") {

		//navLinks[0] = new LeftLink('Faculty Research', 'http://www.med.cornell.edu/mdphd/fac_res/index.html?name1=Faculty+Research&type1=2Active', '2', '', '');		
		//navLinks[1] = new LeftLink('Research', 'http://www.med.cornell.edu/mdphd/fac_res/research.html', '3', 'Faculty Research', '');
		
	} else if (active == "six") {
	
		var navc = 0;
		
		navLinks[navc++] = new LeftLink('Web Pages', 'http://weill.cornell.edu/mdphd/students/stu_web.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Directory', 'http://weill.cornell.edu/mdphd/students/directory.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2009', 'http://weill.cornell.edu/mdphd/students/2009/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2008', 'http://weill.cornell.edu/mdphd/students/2008/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2007', 'http://weill.cornell.edu/mdphd/students/2007/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2006', 'http://weill.cornell.edu/mdphd/students/2006/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2005', 'http://weill.cornell.edu/mdphd/students/2005/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2004', 'http://weill.cornell.edu/mdphd/students/2004/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2003', 'http://weill.cornell.edu/mdphd/students/2003/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2002', 'http://weill.cornell.edu/mdphd/students/2002/', '3', 'Directory', '');
		navLinks[navc++] = new LeftLink('Entering Class of 2001', 'http://weill.cornell.edu/mdphd/students/2001/', '3', 'Directory', '');
		//navLinks[navc++] = new LeftLink('Entering Class of 2000', 'http://weill.cornell.edu/mdphd/students/2000/', '3', 'Directory', '');
		/*navLinks[navc++] = new LeftLink('Entering Classes 1999', 'http://www.med.cornell.edu/mdphd/students/1999/', '3', 'Directory', '');*/
		
		navLinks[navc++] = new LeftLink('2009-2010 Academic Calendar', 'http://weill.cornell.edu/mdphd/students/Academic_Calendar/Academic_Calendar.html', '2', '', '');
		//navLinks[navc++] = new LeftLink('Entering Class of 2007', 'http://www.med.cornell.edu/mdphd/students/2007/', '3', 'Directory', '');
		//navLinks[navc++] = new LeftLink('Entering Classes 1998', 'http://www.med.cornell.edu/mdphd/students/98_96/', '3', 'Directory', '');

		//navLinks[navc++] = new LeftLink('Student Guide', 'http://www.med.cornell.edu/mdphd/students/stu_gui.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Retreat', 'http://weill.cornell.edu/mdphd/students/retreat/2009_agenda.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Funding Sources', 'http://weill.cornell.edu/mdphd/students/fun_sou.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Life in New York City', 'http://weill.cornell.edu/mdphd/students/lif_nyc.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Photo Gallery 2007', 'http://weill.cornell.edu/mdphd/students/gallery/index.html', '2', '', '');
		
	navLinks[navc++] = new LeftLink('Photo Gallery 2008', 'http://weill.cornell.edu/mdphd/students/gallery/index_2008.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Photo Gallery 2009', 'http://weill.cornell.edu/mdphd/students/gallery/2009.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('Student Publications', 'http://weill.cornell.edu/mdphd/students/stu_pub.html', '2', '', '');
		navLinks[navc++] = new LeftLink('2008', 'http://weill.cornell.edu/mdphd/students/stu_pub_2008.html', '3', 'Student Publications', '');
		navLinks[navc++] = new LeftLink('2007', 'http://weill.cornell.edu/mdphd/students/stu_pub_2007.html', '3', 'Student Publications', '');
		
		navLinks[navc++] = new LeftLink('Return Dates Class 2011', 'http://weill.cornell.edu/mdphd/students/return2011.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Return Dates Class 2012', 'http://weill.cornell.edu/mdphd/students/return2012.html', '2', '', '');
	
		
		
	} else if (active == "seven") {
	
		navLinks[0] = new LeftLink('Alumni Web Pages', 'http://weill.cornell.edu/mdphd/alumni/alu_web_pag.html', '2', '', '');
		//navLinks[1] = new LeftLink('Survey', 'http://www.med.cornell.edu/mdphd/alumni/survey.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', '', '');
		
	} 
	// 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();

 if (active == "one") {
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_1/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_1/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_1/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_1/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_1/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_1/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_1/2col_l4.html', oneNav4Links);
 
 } else if (active == "two") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_2/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_2/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_2/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_2/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_2/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_2/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_2/2col_l4.html', oneNav4Links);
	
 } else if (active == "three") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_3/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_3/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_3/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_3/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_3/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_3/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_3/2col_l4.html', oneNav4Links);
	
 } else if (active == "four") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_4/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_4/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_4/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_4/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_4/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_4/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_4/2col_l4.html', oneNav4Links);
	
 } else if (active == "five") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_5/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_5/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_5/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_5/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_5/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_5/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_5/2col_l4.html', oneNav4Links);
	
 } else if (active == "six") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_6/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_6/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_6/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_6/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_6/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_6/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_6/2col_l4.html', oneNav4Links);
	
 } else if (active == "seven") { 
 
 // customize 4th level navigation links here
	
 	oneNav4Links[0] = new LeftLink('3colA Level 4', 'http://global.med.cornell.edu/templates/wmc/section_7/3colA_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[1] = new LeftLink('3colB Level 4', 'http://global.med.cornell.edu/templates/wmc/section_7/3colB_l4.html', '4', '3colB Level 2', '3colA Level 3');
	oneNav4Links[2] = new LeftLink('2col Level 4', 'http://global.med.cornell.edu/templates/wmc/section_7/2col_l4.html', '4', '3colB Level 2', '3colA Level 3');
	
	allNav4Pages[0] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_7/3colA_l3.html', oneNav4Links);
	allNav4Pages[1] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_7/3colA_l4.html', oneNav4Links);
	allNav4Pages[2] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_7/3colB_l4.html', oneNav4Links);
	allNav4Pages[3] = new Nav4Page('http://global.med.cornell.edu/templates/wmc/section_7/2col_l4.html', oneNav4Links);
	
}
	
 
// 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();
}
// Expanding Questions/Answers Javascript

var ids=new Array();

function QAinit(){
	if(document.getElementById) {
		var tids=document.getElementsByTagName('div');
		for(i=0;i<tids.length;i++)if(tids[i].className=="expand")ids[ids.length]=tids[i];
		for(i=0;i<ids.length;i++)ids[i].onmouseup=setstate;
	}
}

function setstate(){
	

	for(i=0;i<ids.length;i++) {
		//ids[i].style.display="block";
		ids[i].style.visibility="";
		ids[i].style.height="";

	}
	
	if(this.className=="expand")this.style.visibility="hidden";
	if(this.className=="expand")this.style.height="0";

	
	for(i=0;i<ids.length;i++) {
	ids[i].parentNode.getElementsByTagName('div')[1].style.display="none";
	}
	
	for(i=0;i<ids.length;i++) {
		if(ids[i]==this){
			var d=this.parentNode.getElementsByTagName('div')[1];
		if(d.style.display=="block")d.style.display="none";
		else d.style.display="block";
		}
	}

}

function expandall(){
if(document.getElementById){
for(i=0;i<ids.length;i++)ids[i].parentNode.getElementsByTagName('div')[1].style.display="block";
}}

function collapseall(){
if(document.getElementById){
for(i=0;i<ids.length;i++)ids[i].parentNode.getElementsByTagName('div')[1].style.display="none";
}}