
if ( browser )
{
		one_on= new Image; one_on.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav1_on.gif";
		one_off= new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav1.gif";
		one_active= new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav1_on.gif";
		
		two_on= new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/cornellaging/pat_fam_on.gif";
		two_off= new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/cornellaging/pat_fam.gif";
		two_active= new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/cornellaging/pat_fam_on.gif";
		
		three_on= new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/cornellaging/ger_res_on.gif";
		three_off= new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/cornellaging/ger_res.gif";
		three_active= new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/cornellaging/ger_res_on.gif";
		
		four_on= new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav4_on.gif";
		four_off= new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav4.gif";
		four_active= new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/cornellaging/nav4_on.gif";
		
		five_on= new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/cornellaging/psy_hea_aca_on.gif";
		five_off= new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/cornellaging/psy_hea_aca.gif";
		five_active= new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/cornellaging/psy_hea_aca_on.gif";	
}

siteURL = "http://www.cornellaging.org";
// flash pano: use this if using different pano for each section

panoLoc = "http://media.med.cornell.edu/panoramas/cornellaging/pano_index2.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/cornellaging/pano_index.jpg";


// set xml data for pano flash here
dataLoc				= "http://global.med.cornell.edu/panoramas/cornellaging/data.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";

// 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 ( 15, "http://www.beryl.net/custom/physref/nyp/PhysSearchCriteria.asp");
buttonArray[1]		= new createButtonObject ( 8, "http://www.cornellaging.com/contact.html");
buttonArray[2]		= new createButtonObject ( 7, "http://weill.cornell.edu/search/search_advanced.html");


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

// 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 == "two") {
		// customize section one, 2nd and 3rd level navigation links here
		navLinks[0] = new LeftLink('Meet our Physicians', 'http://www.cornellaging.org/patient/meet.html', '2', '', '');
		navLinks[1] = new LeftLink('Greenberg Academy for Successful Aging', 'http://www.cornellaging.org/patient/greenberg.html', '2', '', '');
		navLinks[2] = new LeftLink('Inpatient Care Services at the Weill Cornell Campus', 'http://www.cornellaging.org/medical/gfp_ace_unit.html', '2', '', '');
		navLinks[3] = new LeftLink('The Wright Center on Aging', 'http://www.cornellaging.org/patient/wright.html', '2', '', '');
		navLinks[4] = new LeftLink('The Housecall Program', 'http://www.cornellaging.org/patient/housecall.html', '2', '', '');
		navLinks[5] = new LeftLink('Amsterdam House', 'http://www.cornellaging.org/patient/amsterdam.html', '2', '', '');
		navLinks[6] = new LeftLink('Hebrew Home for the Aged at Riverdale', 'http://www.cornellaging.org/patient/hebrew.html', '2', '', '');
		navLinks[7] = new LeftLink('Cornell Geropsychiatry Institute', 'http://www.cornellaging.org/patient/gero.html', '2', '', '');
		navLinks[8] = new LeftLink('Geriatric Inpatient and Consultation Service', 'http://www.cornellaging.org/patient/geriatric.html', '2', '', '');
		navLinks[9] = new LeftLink('Memory Disorders Program', 'http://www.cornellaging.org/patient/neurogeri.html', '2', '', '');
		navLinks[10] = new LeftLink('Health Outreach', 'http://www.cornellaging.org/patient/outreach.html', '2', '', '');
		navLinks[11] = new LeftLink('Tips for Aging Sucessfully', 'http://www.cornellaging.org/patient/tips.html', '2', '', '');
		navLinks[12] = new LeftLink('Travel Tips for Older Adults', 'http://www.cornellaging.org/tips.html', '2', '', '');
		navLinks[13] = new LeftLink('Aging Links', 'http://www.cornellaging.org/patient/links.html', '2', '', '');
		
	}  else if (active == "three") {
		
		navLinks[0] = new LeftLink('Unit for the Study of Older Patient-Physician Communication', 'http://www.cornellaging.org/medical/unit_older.html', '2', '', '');
		navLinks[1] = new LeftLink('Unit for the Study of Domestic Violence and Crime against the Elderly', 'http://www.cornellaging.org/medical/unit_study.html', '2', '', '');
		navLinks[2] = new LeftLink('GEM Research, Education and Design', 'http://www.cornellaging.org/medical/unit_gero.html', '2', '', '');
		navLinks[3] = new LeftLink('Clinical Research Center for Geriatric Mood Disorders', 'http://www.cornellaging.org/medical/mood.html', '2', '', '');
		navLinks[4] = new LeftLink('Neurogeriatrics Research Program', 'http://www.cornellaging.org/medical/neuro.html', '2', '', '');
		navLinks[5] = new LeftLink('Cornell Gerontology Research Institute', 'http://www.cornellaging.org/medical/cagri.html', '2', '', '');
		navLinks[6] = new LeftLink('Research Opportunities', 'http://www.cornellaging.org/medical/research_opp.html', '2', '', '');

	} else if (active == "four") {
		
		navLinks[0] = new LeftLink('Geriatric Fellowship Program', 'http://www.cornellaging.org/medical/fellowship.html', '2', '', '');
		navLinks[1] = new LeftLink('Geriatric Psychiatry Fellowship', 'http://www.cornellaging.org/medical/psychiaty.html', '2', '', '');
		navLinks[2] = new LeftLink('Behavioral Neurology/Memory Disorders', 'http://www.cornellaging.org/medical/neurology.html', '2', '', '');
		navLinks[3] = new LeftLink('Medical Residency Rotation in Geriatric Medicine', 'http://www.cornellaging.org/medical/residency.html', '2', '', '');
		navLinks[4] = new LeftLink('Medical Student Geriatric Interest Group', 'http://www.cornellaging.org/medical/student_interest.html', '2', '', '');
		navLinks[5] = new LeftLink('Medical Student Summer Scholar Program in Aging', 'http://www.cornellaging.org/medical/student_summer.html', '2', '', '');
		navLinks[6] = new LeftLink('View the Geriatrics Electives Course Catalog', 'http://wo-pub2.med.cornell.edu/cgi-bin/WebObjects/Electives.woa/2/wa/viewCourse?courseID=211&wosid=vEr0JZCW4FNIzIdegXwio0', '2', '', '');
				navLinks[7] = new LeftLink('Research Tools', 'http://www.cornellaging.org/medical/rea_tools.html', '2', '', '');
				navLinks[8] = new LeftLink('What One Adelman Scholar Achieved', 'http://www.cornellaging.org/medical/adelman_scholar.html', '2', '', '');
		
	}
	
	else if (active == "five") {
		
		navLinks[0] = new LeftLink('About Us', 'http://www.cornellaging.org/psy_health_inst/leadership.html', '2', '', '');
		navLinks[1] = new LeftLink('Programs', 'http://www.cornellaging.org/psy_health_inst/programs.html', '2', '', '');
		navLinks[2] = new LeftLink('Contact Info', 'http://www.cornellaging.org/psy_health_inst/contact.html', '2', '', '');
		

	}	
	
	 
	// returning the value here, don't touch
	return (navLinks);
}
