//////////////////////////////////////////////////////////////////
//																//
//	Weill Cornell Medical College								//
//	nypspine.com site javascript								//
//	nypspine.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/cornellpathology/nav1_on.gif";
	one_off = new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav1.gif";
	one_active = new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav1_on.gif";
	
	two_on = new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav2_on.gif";
	two_off = new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav2.gif";
	two_active = new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav2_on.gif";

	three_on = new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav3_on.gif";
	three_off = new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav3.gif";
	three_active = new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav3_on.gif";

	four_on = new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav4_on.gif";
	four_off = new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav4.gif";
	four_active = new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav4_on.gif";	
	
	five_on = new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav5_on.gif";
	five_off = new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav5.gif";
	five_active = new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav5_on.gif";	
	
	six_on = new Image; six_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6_on.gif";
	six_off = new Image; six_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6.gif";
	six_active = new Image; six_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6_on.gif";
	
	seven_on = new Image; seven_on.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6_on.gif";
	seven_off = new Image; seven_off.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6.gif";
	seven_active = new Image; seven_active.src="http://images.med.cornell.edu/headers/navbar/cornellpathology/nav6_on.gif";
}

// ::::::::::::::::::::::::::: 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
panoLoc = "http://www.cornellpathology.org/img/toobar_pathology.swf";
		
// set animation to true or false		
inAnimation			= "false";

// static pano: use this if using different pano for each section
altPanoLoc = "http://images.med.cornell.edu/panoramas/pathology/pano.jpg";
	
	// set site url
siteURL 			= "http://www.cornellpathology.org/";

// set xml data for pano flash here
dataLoc				= "http://global.med.cornell.edu/panoramas/cornellpathology/content.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://www.cornellpathology.org/media_temp/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 ( 9, "http://www.cornellpathology.org/cli_fac.html?name1=Clinical+Faculty&type1=2Active");
buttonArray[1]		= new createButtonObject ( 9, "http://www.cornellpathology.org/res_fac.html?name1=Research+Faculty&type1=2Active");
buttonArray[2]		= new createButtonObject ( 5, "http://www.cornellpathology.org/contact.html?name1=Contact+Us&type1=2Active");
buttonArray[3]		= new createButtonObject ( 3, "http://www.med.cornell.edu/search/search_advanced.html");
buttonArray[4]		= new createButtonObject ( 9, "http://www.cornellpathology.org/sem.html?name1=Seminars&type1=2Active");
buttonArray[5]		= new createButtonObject ( 11, "http://www.cornellpathology.org/about_aca_pos.html?name1=Professional+Career+Opportunities&type1=2Active");

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

// ::::::::::::::::::::::::::: 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('Message from the Chair', 'http://www.cornellpathology.org/chair_message.html', '2', '', '');
		navLinks[1] = new LeftLink('About Us', 'http://www.cornellpathology.org/about.html', '2', '', '');
		navLinks[2] = new LeftLink('Newly Awarded Grants', 'http://www.cornellpathology.org/new_grants.html', '2', '', '');
		navLinks[3] = new LeftLink('Recent Publications', 'http://www.cornellpathology.org/publications.html', '2', '', '');
	
	
	} else if (active == "two") {
		
		navLinks[0] = new LeftLink('Introduction', 'http://www.cornellpathology.org/cli_ser_intro.html', '2', '', '');
	    navLinks[1] = new LeftLink('Anatomic Pathology', 'http://www.cornellpathology.org/cli_ser_anat.html', '2', '', '');
	    navLinks[2] = new LeftLink('Laboratory Medicine', 'http://www.cornellpathology.org/cli_ser_lab.html', '2', '', '');
	    navLinks[3] = new LeftLink('Consultation Services', 'http://www.cornellpathology.org/cli_ser.html', '2', '', '');
	
	    navLinks[4] = new LeftLink('Hematopathology', 'http://www.cornellpathology.org/cli_ser_hem.html', '3', 'Consultation Services', '');
	    navLinks[5] = new LeftLink('Breast Pathology', 'http://www.cornellpathology.org/cli_ser_bre.html', '3', 'Consultation Services', '');
	    navLinks[6] = new LeftLink('Dermatopathology', 'http://www.cornellpathology.org/cli_ser_der.html', '3', 'Consultation Services', '');
	    navLinks[7] = new LeftLink('Cytopathology and Aspiration Biopsy', 'http://www.cornellpathology.org/cli_ser_cyt.html', '3', 'Consultation Services', '');
	    navLinks[8] = new LeftLink('Renal Pathology', 'http://www.cornellpathology.org/cli_ser_ren.html', '3', 'Consultation Services', '');
	    navLinks[9] = new LeftLink('Special Hematology and Coagulation', 'http://www.cornellpathology.org/cli_ser_spe.html', '3', 'Consultation Services', '');
	    navLinks[10] = new LeftLink('Perinatal and Pediatric', 'http://www.cornellpathology.org/cli_ser_per.html', '3', 'Consultation Services', '');
		navLinks[11] = new LeftLink('Cytogenetics Laboratory Service', 'http://www.cornellpathology.org/cli_ser_cyt_lab.html', '3', 'Consultation Services', '');
		navLinks[12] = new LeftLink('Molecular Hematopathology Service', 'http://www.cornellpathology.org/cli_ser_mol.html', '3', 'Consultation Services', '');
		
	    navLinks[13] = new LeftLink('Directory of Services', 'http://www.cornellpathology.org/cli_ser_pho.html', '2', '', '');
	   
		
	} else if (active == "three") {
		
		//navLinks[0] = new LeftLink('Special Stains', 'http://www.cornellpathology.org/research/spe_sta.html', '2', '', '');
		
	} else if (active == "four") {
		
		navLinks[0] = new LeftLink('Residency Program Overview', 'http://www.cornellpathology.org/med_edu_res.html', '2', '', '');
	    navLinks[1] = new LeftLink('Residency Details', 'http://www.cornellpathology.org/med_edu_res_spe.html', '2', '', '');
	    
	    navLinks[2] = new LeftLink('Fellowships', 'http://www.cornellpathology.org/fellowships.html', '2', '', '');
	    navLinks[3] = new LeftLink('Cytopathology Fellowship', 'http://www.cornellpathology.org/med_edu_res_cyt.html', '3', 'Fellowships', '');
		navLinks[4] = new LeftLink('GI/Liver Pathology Fellowship', 'http://www.cornellpathology.org/med_edu_res_liv.html', '3', 'Fellowships', '');
	    navLinks[5] = new LeftLink('Hematopathology Fellowships', 'http://www.cornellpathology.org/med_edu_res_hem.html', '3', 'Fellowships', '');
		
		navLinks[6] = new LeftLink('Housestaff and Fellows', 'http://www.cornellpathology.org/med_edu_res_hou.html', '2', '', '');
		
	} else if (active == "five"){
		navLinks[0] = new LeftLink('Current Issue', 'http://www.cornellpathology.org/news/index.html', '2', '', '');
	    navLinks[1] = new LeftLink('Past Issues', 'http://www.cornellpathology.org/news/archive.html', '2', '', '');
		navLinks[2] = new LeftLink('Winter 2008', 'http://www.cornellpathology.org/news/winter2008/index.html', '3', 'Past Issues', '');
		navLinks[3] = new LeftLink('Winter 2007', 'http://www.cornellpathology.org/news/winter2007/index.html', '3', 'Past Issues', '');
		navLinks[4] = new LeftLink('Winter 2006 (pdf)', 'http://www.cornellpathology.org/news/pdf/Volume_12_Winter06.pdf', '3', 'Past Issues', '');
			//navLinks[5] = new LeftLink('Winter 2005', 'http://www.cornellpathology.org/news/winter2005/index.html', '3', 'Past Issues', '');//
		navLinks[5] = new LeftLink('Winter 2004', 'http://www.cornellpathology.org/news/winter2004/index.html', '3', 'Past Issues', '');
		navLinks[6] = new LeftLink('Winter 2002-2003', 'http://www.cornellpathology.org/news/2003/index.html', '3', 'Past Issues', '');
		navLinks[6] = new LeftLink('Winter 2001-2002', 'http://www.cornellpathology.org/news/winter2002/index.html', '3', 'Past Issues', '');
		navLinks[7] = new LeftLink('Spring 2001', 'http://www.cornellpathology.org/news/spring2001/index.html', '3', 'Past Issues', '');
		navLinks[8] = new LeftLink('Winter 1999 (pdf)', 'http://www.cornellpathology.org/pdf/pathologist_winter_1999.pdf', '3', 'Past Issues', '');

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

		navLinks[0] = new LeftLink('Introduction', 'http://www.cornellpathology.org/tut.html', '2', '', '');
	    navLinks[1] = new LeftLink('General Information', 'http://www.cornellpathology.org/tut_gen.html', '2', '', '');
	    navLinks[2] = new LeftLink('Schedule', 'http://www.cornellpathology.org/tut_sch.html', '2', '', '');
		navLinks[3] = new LeftLink('Faculty', 'http://www.cornellpathology.org/tut_fac.html', '2', '', '');
		navLinks[4] = new LeftLink('Tutorial Administration', 'http://www.cornellpathology.org/tut_adm.html', '2', '', '');
	
	} else if (active == "seven"){

		navLinks[0] = new LeftLink('Introduction', 'http://www.cornellpathology.org/tut_gi_panc_liv.html', '2', '', '');
	    navLinks[1] = new LeftLink('General Information', 'http://www.cornellpathology.org/gi_panc_liv_gen.html', '2', '', '');
	    navLinks[2] = new LeftLink('Schedule', 'http://www.cornellpathology.org/gi_panc_liv_sch.html', '2', '', '');
		navLinks[3] = new LeftLink('Faculty', 'http://www.cornellpathology.org/gi_panc_liv_fac.html', '2', '', '');
		navLinks[4] = new LeftLink('Tutorial Administration', 'http://www.cornellpathology.org/gi_panc_liv_adm.html', '2', '', '');
	
	} else if (active == "") {
		
		if (activeTool == "sem") {
			navLinks[0] = new LeftLink('Seminars', 'http://www.cornellpathology.org/sem.html', '2', '', '');
		    navLinks[1] = new LeftLink('Grand Rounds and Chairmans Conference', 'http://www.cornellpathology.org/sem_gra.html', '3', 'Seminars', '');
		    navLinks[2] = new LeftLink('Research Seminar Series', 'http://www.cornellpathology.org/res_sem_ser.html', '3', 'Seminars', '');
		    navLinks[3] = new LeftLink('NYPH-MSKCC Combined Grand Rounds', 'http://www.cornellpathology.org/sem_com.html', '3', 'Seminars', '');
			navLinks[4] = new LeftLink('Calendar of Events', 'http://www.cornellpathology.org/calendar/calendar.pdf', '3', 'Seminars', '');
		
		} else if (activeTool == "contact") {
			navLinks[0] = new LeftLink('Professional Career Opportunities', 'http://www.cornellpathology.org/about_aca_pos.html', '2', '', '');
		    navLinks[1] = new LeftLink('Research Faculty', 'http://www.cornellpathology.org/res_fac.html', '2', '', '');
		    navLinks[2] = new LeftLink('Clinical Faculty', 'http://www.cornellpathology.org/cli_fac.html', '2', '', '');
		    navLinks[3] = new LeftLink('Experimental Pathology Faculty', 'http://www.cornellpathology.org/experimental_pathology.html', '2', '', '');
			navLinks[4] = new LeftLink('Faculty and Housestaff', 'http://www.cornellpathology.org/cli_fac_hou08_09.html?name1=Faculty+and+Housestaff&type1=2Active', '2', '', '');
		navLinks[5] = new LeftLink('2008-2009', 'http://www.cornellpathology.org/cli_fac_hou08_09.html?name1=Faculty+and+Housestaff&type1=2Active', '3', 'Faculty and Housestaff', '');
		navLinks[6] = new LeftLink('2007-2008', 'http://www.cornellpathology.org/cli_fac_hou07_08.html?name1=Faculty+and+Housestaff&type1=2Active', '3', 'Faculty and Housestaff', '');
			navLinks[7] = new LeftLink('2006-2007', 'http://www.cornellpathology.org/cli_fac_hou06_07.html', '3', 'Faculty and Housestaff', '');
			navLinks[8] = new LeftLink('2004-2005', 'http://www.cornellpathology.org/cli_fac_hou04_05.html', '3', 'Faculty and Housestaff', '');
			navLinks[9] = new LeftLink('2003-2004', 'http://www.cornellpathology.org/cli_fac_hou03_04.html', '3', 'Faculty and Housestaff', '');
		    navLinks[10] = new LeftLink('2002-2003', 'http://www.cornellpathology.org/cli_fac_hou02_03.html', '3', 'Faculty and Housestaff', '');
		    navLinks[11] = new LeftLink('2000-2001', 'http://www.cornellpathology.org/cli_fac_hou00_01.html', '3', 'Faculty and Housestaff', '');
		   // navLinks[9] = new LeftLink('1999-2000', 'http://www.cornellpathology.org/cli_fac_hou99_00.html', '3', 'Faculty and Housestaff', '');
	        //navLinks[10] = new LeftLink('1998-1999', 'http://www.cornellpathology.org/cli_fac_hou98_99.html', '3', 'Faculty and Housestaff', '');
	        //navLinks[11] = new LeftLink('1997-1998', 'http://www.cornellpathology.org/cli_fac_hou97_98.html', '3', 'Faculty and Housestaff', '');
	        //navLinks[12] = new LeftLink('1996-1997', 'http://www.cornellpathology.org/cli_fac_hou96_97.html', '3', 'Faculty and Housestaff', '');
		    navLinks[12] = new LeftLink('Contact Us', 'http://www.cornellpathology.org/contact.html', '2', '', '');
	
		}
	}
	// returning the value here, don't touch
	return (navLinks);
}

