////////////////////////////////////////////////////////////////////																////	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://www.med.cornell.edu/postdocs/images/nav1_on.gif";	one_off= new Image; one_off.src="http://www.med.cornell.edu/postdocs/images/nav1.gif";	two_on= new Image; two_on.src="http://www.med.cornell.edu/postdocs/images/nav2_on.gif";	two_off= new Image; two_off.src="http://www.med.cornell.edu/postdocs/images/nav2.gif";	three_on= new Image; three_on.src="http://www.med.cornell.edu/postdocs/images/nav3_on.gif";	three_off= new Image; three_off.src="http://www.med.cornell.edu/postdocs/images/nav3.gif";	four_on= new Image; four_on.src="http://www.med.cornell.edu/postdocs/images/nav4_on.gif";	four_off= new Image; four_off.src="http://www.med.cornell.edu/postdocs/images/nav4.gif";	five_on= new Image; five_on.src="http://www.med.cornell.edu/postdocs/images/nav5_on.gif";	five_off= new Image; five_off.src="http://www.med.cornell.edu/postdocs/images/nav5.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://www.med.cornell.edu/postdocs/media/pano_home.swf";} else if (active == "one") {	panoLoc = "http://www.med.cornell.edu/postdocs/media/pano_one.swf";} else if (active == "two") {	panoLoc = "http://www.med.cornell.edu/postdocs/media/pano_two.swf";} else if (active == "three") {	panoLoc = "http://www.med.cornell.edu/postdocs/media/pano_three.swf";} else if (active == "four") {	panoLoc = "http://www.med.cornell.edu/postdocs/media/pano_four.swf";} else if (active == "five") {	panoLoc = "http://www.med.cornell.edu/postdocs/media/pano_five.swf";} else { //default to this just in case	panoLoc = "http://www.med.cornell.edu/postdocs/media/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/test/pano_" + active + ".jpg";// static pano: use this if using different pano for each sectionif (active == "home") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_home.jpg";} else if (active == "one") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_" + active + ".jpg";} else if (active == "two") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_" + active + ".jpg";} else if (active == "three") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_" + active + ".jpg";} else  if (active == "four") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_" + active + ".jpg";} else  if (active == "five") {	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano_" + active + ".jpg";} else { //default to this just in case	altPanoLoc = "http://www.med.cornell.edu/postdocs/images/panoramas/pano.jpg";}			// set xml data for pano flash heredataLoc				= "http://www.med.cornell.edu/postdocs/data/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";// 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, "http://www.cornellphysicians.com/find.html");buttonArray[1]		= new createButtonObject ( 4, "http://www.med.cornell.edu/search/search_advanced.html");buttonArray[2]		= new createButtonObject ( 5, "http://www.med.cornell.edu/postdocs/toolbar/contact.html?name1=Contact+Us&type1=2Active");buttonArray[3]		= new createButtonObject ( 8, "http://www.med.cornell.edu/postdocs/toolbar/calendar.html?name1=Calendar+of+Events&type1=2Active");buttonArray[4]		= new createButtonObject ( 7, "http://www.med.cornell.edu/postdocs/toolbar/maps.html?name1=Maps+and+Directions&type1=2Active");// setting the array, don't touchadditionalMapArray	= new Array ();// lefthand nav homepage linksiteURL = "http://www.med.cornell.edu/postdocs/";// ::::::::::::::::::::::::::: 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('Project Descriptions', 'http://www.med.cornell.edu/postdocs/wmc/projects.html', '2', '', '');				} else if (active == "two") {				var navc = 0;				navLinks[navc++] = new LeftLink('Campus Resources and Services', 'http://www.med.cornell.edu/postdocs/orientation/cam_res_ser.html', '2', '', '');		navLinks[navc++] = new LeftLink('Housing', 'http://www.med.cornell.edu/postdocs/orientation/housing.html', '2', '', '');		navLinks[navc++] = new LeftLink('Getting Settled in Your Home', 'http://www.med.cornell.edu/postdocs/orientation/get_set_you.html', '2', '', '');		navLinks[navc++] = new LeftLink('Information for International Scholars', 'http://www.med.cornell.edu/postdocs/orientation/inf_for_int.html', '2', '', '');		navLinks[navc++] = new LeftLink('Minimum Stipend Policy', 'http://www.med.cornell.edu/postdocs/orientation/stipend.html', '2', '', '');		navLinks[navc++] = new LeftLink('Benefits', 'http://www.med.cornell.edu/postdocs/orientation/benefits.html', '2', '', '');		navLinks[navc++] = new LeftLink('Health Insurance', 'http://www.med.cornell.edu/postdocs/orientation/health.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Important Health Insurance Definitions', 'http://www.med.cornell.edu/postdocs/orientation/definition.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Find a Physician', 'http://www.med.cornell.edu/postdocs/orientation/find.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Dental Insurance', 'http://www.med.cornell.edu/postdocs/orientation/dental.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Vision Insurance', 'http://www.med.cornell.edu/postdocs/orientation/vision.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Flexible Benefits Plan', 'http://www.med.cornell.edu/postdocs/orientation/flexible.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Short-Term Disability', 'http://www.med.cornell.edu/postdocs/orientation/disability.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Vacation Policy', 'http://www.med.cornell.edu/postdocs/orientation/vacation.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Voluntary Tax Deferred Annuity Plan', 'http://www.med.cornell.edu/postdocs/orientation/annuity.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Discounted Tickets for Postdocs', 'http://www.med.cornell.edu/postdocs/orientation/discount.html', '3', 'Benefits', '');		navLinks[navc++] = new LeftLink('Athletic Facilities', 'http://www.med.cornell.edu/postdocs/orientation/facilities.html', '3', 'Benefits', '');						navLinks[navc++] = new LeftLink('Taxes', 'http://www.med.cornell.edu/postdocs/orientation/taxes.html', '2', '', '');		navLinks[navc++] = new LeftLink('Scientific Resources', 'http://www.med.cornell.edu/postdocs/orientation/sci_res.html', '2', '', '');								navLinks[navc++] = new LeftLink('New York Area Recreation', 'http://www.med.cornell.edu/postdocs/orientation/ny.html', '2', '', '');					} else if (active == "three") {				var navc = 0;				navLinks[navc++] = new LeftLink('Annual Progress Report', 'http://www.med.cornell.edu/postdocs/career/ann_pro_rep.html', '2', '', '');			//navLinks[navc++] = new LeftLink('Teaching Assistantships', 'http://www.med.cornell.edu/postdocs/career/tea_ass.html', '2', '', '');		navLinks[navc++] = new LeftLink('Science Alliance', 'http://www.med.cornell.edu/postdocs/career/sci_all.html', '2', '', '');		navLinks[navc++] = new LeftLink('Career Development Programs', 'http://www.med.cornell.edu/postdocs/career/car_dev_pro.html', '2', '', '');		navLinks[navc++] = new LeftLink('Alternative Career Seminars', 'http://www.med.cornell.edu/postdocs/career/seminar.html', '2', '', '');		navLinks[navc++] = new LeftLink('Career Advisement', 'http://www.med.cornell.edu/postdocs/career/car_adv.html', '2', '', '');		navLinks[navc++] = new LeftLink('Bio Career Center', 'http://www.med.cornell.edu/postdocs/career/bio_cent.html', '2', '', '');		navLinks[navc++] = new LeftLink('Promotion Opportunities', 'http://www.med.cornell.edu/postdocs/career/opportunities.html', '2', '', '');		//navLinks[navc++] = new LeftLink('Postdoc Research Day', 'http://www.med.cornell.edu/postdocs/career/pos_res_day.html', '2', '', '');		navLinks[navc++] = new LeftLink('Tri-Institutional Career Symposium', 'http://www.med.cornell.edu/postdocs/career/tri-institutional_career_symposium.html', '2', '', '');				navLinks[navc++] = new LeftLink('Useful Links', 'http://www.med.cornell.edu/postdocs/career/links.html', '2', '', '');		navLinks[navc++] = new LeftLink('On-Line Career Development Resources', 'http://www.med.cornell.edu/postdocs/career/online_car_dev.html', '3', 'Useful Links', '');		navLinks[navc++] = new LeftLink('Career Development Books', 'http://www.med.cornell.edu/postdocs/career/car_dev_book.html', '3', 'Useful Links', '');		navLinks[navc++] = new LeftLink('Job Postings', 'http://www.med.cornell.edu/postdocs/career/job_post.html', '3', 'Useful Links', '');		} else if (active == "toolbar_1") {				var navc = 0;				navLinks[navc++] = new LeftLink('Calendar of Events', 'http://www.med.cornell.edu/postdocs/toolbar/calendar.html', '2', '', '');		navLinks[navc++] = new LeftLink('Maps and Directions', 'http://www.med.cornell.edu/postdocs/toolbar/maps.html', '2', '', '');		navLinks[navc++] = new LeftLink('Contact Us', 'http://www.med.cornell.edu/postdocs/toolbar/contact.html', '2', '', '');		} else if (active == "toolbar_2") {				var navc = 0;				navLinks[navc++] = new LeftLink('A Thriving Biomedical Research Community', 'http://www.med.cornell.edu/postdocs/nyc/community.html', '2', '', '');		navLinks[navc++] = new LeftLink('Weill Cornell Medical College at a Glance', 'http://www.med.cornell.edu/postdocs/nyc/glance.html', '2', '', '');		navLinks[navc++] = new LeftLink('Life in New York City', 'http://www.med.cornell.edu/postdocs/nyc/nyc.html', '2', '', '');		navLinks[navc++] = new LeftLink('Photo Gallery', 'http://www.med.cornell.edu/postdocs/nyc/photos.html', '3', 'Life in New York City', '');		navLinks[navc++] = new LeftLink('The Outdoor Life in New York City', 'http://www.med.cornell.edu/postdocs/nyc/outdoor.html', '2', '', '');			} else if (active == "five") {			var navc = 0;		navLinks[navc++] = new LeftLink('Postdoc Email List', 'http://www.med.cornell.edu/postdocs/association/email', '2', '', '');		navLinks[navc++] = new LeftLink('Postdoctoral Association Executive Committee', 'WMC_POSTDOCTORAL_ASSOCIAT.pdf', '2', '', '');		navLinks[navc++] = new LeftLink('WCMC Postdoctoral Association By-Laws', 'Final_Constitution_and_Bylaws.pdf', '2', '', '');		navLinks[navc++] = new LeftLink('Postdoctoral Research Day', 'http://www.med.cornell.edu/postdocs/association/pos_res_day.html', '2', '', '');		navLinks[navc++] = new LeftLink('Faculty Mentoring Award Winners', 'http://www.med.cornell.edu/postdocs/association/excellence.html', '2', '', '');		navLinks[navc++] = new LeftLink('Happy Hour Schedule', 'Happyhour.pdf', '2', '', '');		navLinks[navc++] = new LeftLink('Postdoc Times', 'http://www.med.cornell.edu/postdocs/association/postdoc_times.html', '2', '', '');				}			// returning the value here, don't touch	return (navLinks);}