////////////////////////////////////////////////////////////////////																////	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/patss/abo_us_on.gif";	one_off = new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/patss/abo_us_off.gif";	one_active = new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/patss/abo_us_on.gif";		two_on = new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/patss/hea_ser_on.gif";	two_off = new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/patss/hea_ser_off.gif";	two_active = new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/patss/hea_ser_on.gif";	three_on = new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/patss/hea_inf_on.gif";	three_off = new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/patss/hea_inf_off.gif";	three_active = new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/patss/hea_inf_on.gif";	four_on = new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/patss/cli_res_on.gif";	four_off = new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/patss/cli_res_off.gif";	four_active = new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/patss/cli_res_on.gif";		five_on = new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/patss/resources_on.gif";	five_off = new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/patss/resources_off.gif";	five_active = new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/patss/resources_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if (active == "" && activeHome == "home") {	panoLoc = "http://media.med.cornell.edu/panoramas/patss/pano_home.swf";} else if (active == "one") {	panoLoc = "http://media.med.cornell.edu/panoramas/patss/pano_" + active + ".swf";} else if (active == "two") {	panoLoc = "http://media.med.cornell.edu/panoramas/patss/pano_" + active + ".swf";} else if (active == "three") {	panoLoc = "http://media.med.cornell.edu/panoramas/patss/pano_" + active + ".swf";} else if (active == "four") {	panoLoc = "http://media.med.cornell.edu/panoramas/patss/pano_" + active + ".swf";} else { //default to this just in case	panoLoc = "http://media.med.cornell.edu/panoramas/patss/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 == "" && activeHome == "home") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/home.jpg";} else if (active == "one") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/pano_" + active + ".jpg";} else if (active == "two") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/pano_" + active + ".jpg";} else if (active == "three") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/pano_" + active + ".jpg";} else  if (active == "four") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/pano_" + active + ".jpg";} else { //default to this just in case	altPanoLoc = "http://images.med.cornell.edu/panoramas/patss/pano.jpg";}			// lefthand nav homepage linksiteURL = "http://www.patss.com/";// set xml data for pano flash heredataLoc				= "http://global.med.cornell.edu/panoramas/patss/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 ( 6, "http://www.med.cornell.edu/search/search_advanced.html");buttonArray[1]		= new createButtonObject ( 7, "http://www.med.cornell.edu/contact/donation.html");buttonArray[2]		= new createButtonObject ( 7, "http://www.patss.com/maps.html?name1=Maps+and+Directions&type1=2Active");buttonArray[3]		= new createButtonObject ( 6, "http://www.patss.com/contact.html?name1=Contact+Us&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") {	    		// customize section one, 2nd and 3rd level navigation links here		navLinks[0] = new LeftLink('News and Events ', 'http://www.patss.com/about/new_eve.html', '2', '', '');	    navLinks[1] = new LeftLink('Program Director', 'http://www.patss.com/about/our_cli.html', '2', '', '');		navLinks[2] = new LeftLink('Complete list of faculty and staff ', 'http://www.patss.com/about/com_lis.html', '2', '', '');		navLinks[3] = new LeftLink('Select Publications', 'http://www.patss.com/about/pubs.html', '2', '', '');	}  else if (active == "two") {				var navc = 0;				// customize section three, 2nd and 3rd level navigation links here		navLinks[navc++] = new LeftLink('Burn Center Services', 'http://www.patss.com/hea_ser/bur_cen_ser.html', '2', '', '');		navLinks[navc++] = new LeftLink('Trauma Treatment', 'http://www.patss.com/hea_ser/tra_tre.html', '2', '', '');				navLinks[navc++] = new LeftLink('Military Services', 'http://www.patss.com/hea_ser/milser.html', '2', '', '');		navLinks[navc++] = new LeftLink('Free Services for Iraq and Afghanistan Military and their Families', 'http://www.patss.com/hea_ser/freeser.html', '3', 'Military Services', '');		navLinks[navc++] = new LeftLink('PTSD Research Study', 'http://www.patss.com/cli_res/index.html', '3', 'Military Services', '');		navLinks[navc++] = new LeftLink('Virtual Reality Treatment', 'http://www.patss.com/hea_ser/index.html', '2', '', '');			navLinks[navc++] = new LeftLink('Frequently Asked Questions', 'http://www.patss.com/hea_ser/faq.html', '3', 'Virtual Reality Treatment', '');		navLinks[navc++] = new LeftLink('Typical Session', 'http://www.patss.com/hea_ser/typ_ses.html', '3', 'Virtual Reality Treatment', '');		navLinks[navc++] = new LeftLink('Virtual Airplane', 'http://www.patss.com/hea_ser/vir_air.html', '3', 'Virtual Reality Treatment', '');			navLinks[navc++] = new LeftLink('Virtual Audience', 'http://www.patss.com/hea_ser/vir_aud.html', '3', 'Virtual Reality Treatment', '');			navLinks[navc++] = new LeftLink('Virtual Heights', 'http://www.patss.com/hea_ser/vir_hei.html', '3', 'Virtual Reality Treatment', '');			navLinks[navc++] = new LeftLink('Virtual Iraq', 'http://www.patss.com/hea_ser/vir_iraq.html', '3', 'Virtual Reality Treatment', '');		navLinks[navc++] = new LeftLink('Virtual Storm', 'http://www.patss.com/hea_ser/vir_sto.html', '3', 'Virtual Reality Treatment', '');			navLinks[navc++] = new LeftLink('Virtual WTC', 'http://www.patss.com/hea_ser/vir_wtc.html', '3', 'Virtual Reality Treatment', '');			navLinks[navc++] = new LeftLink('Virtual Reality Fact Sheet', 'http://www.patss.com/hea_ser/vir_rea_fac.html', '3', 'Virtual Reality Treatment', '');		navLinks[navc++] = new LeftLink('Why Virtual Reality', 'http://www.patss.com/hea_ser/why_vir.html', '3', 'Virtual Reality Treatment', '');		navLinks[navc++] = new LeftLink('Wellness Yoga Program', 'http://www.patss.com/hea_ser/wel_yog_pro.html', '2', '', '');			navLinks[navc++] = new LeftLink('World Trade Center Related Treatment', 'http://www.patss.com/hea_ser/wtc_treatment.html', '2', '', '');			} else if (active == "three") {				var navc = 0;				navLinks[navc++] = new LeftLink('Anxiety Disorders', 'http://www.patss.com/hea_inf/index.html', '2', '', '');		navLinks[navc++] = new LeftLink('Post Traumatic Stress Disorder (PTSD)', 'http://www.patss.com/hea_inf/index.html', '3', 'Anxiety Disorders', '');		navLinks[navc++] = new LeftLink('Phobias', 'http://www.patss.com/hea_inf/phobia.html', '3', 'Anxiety Disorders', '');		navLinks[navc++] = new LeftLink('Panic Disorder and Agoraphobia', 'http://www.patss.com/hea_inf/panic.html', '3', 'Anxiety Disorders', '');		navLinks[navc++] = new LeftLink('Obsessive-Compulsive Disorder (OCD)', 'http://www.patss.com/hea_inf/ocd.html', '3', 'Anxiety Disorders', '');				navLinks[navc++] = new LeftLink('Mood Disorders', 'http://www.patss.com/hea_inf/depress.html', '2', '', '');		navLinks[navc++] = new LeftLink('Depression', 'http://www.patss.com/hea_inf/depress.html', '3', 'Mood Disorders', '');				navLinks[navc++] = new LeftLink('Other Disorders', 'http://www.patss.com/hea_inf/addict.html', '2', '', '');		navLinks[navc++] = new LeftLink('Addiction', 'http://www.patss.com/hea_inf/addict.html', '3', 'Other Disorders', '');		} else if (active == "four") {				var navc = 0;				navLinks[navc++] = new LeftLink('Introduction', 'http://www.patss.com/cli_res/intro.html', '2', '', '');		navLinks[navc++] = new LeftLink('Am I eligible?', 'http://www.patss.com/cli_res/eligible.html', '2', '', '');		navLinks[navc++] = new LeftLink('Current Studies', 'http://www.patss.com/cli_res/', '2', '', '');		navLinks[navc++] = new LeftLink('Iraq and Afghanistan Wars - PTSD Research Study', 'http://www.patss.com/cli_res/irq_afg.html', '3', 'Current Studies', '');		navLinks[navc++] = new LeftLink('Telemedicine - PTSD Study', 'http://www.patss.com/cli_res/telemedicine.html', '3', 'Current Studies', '');		navLinks[navc++] = new LeftLink('General Trauma CLinical Study', 'http://www.patss.com/cli_res/wtc_gts.html', '3', 'Current Studies', '');		navLinks[navc++] = new LeftLink('World Trade Center 9/11 Virtual Reality Clinical Study', 'http://www.patss.com/cli_res/wtc.html', '3', 'Current Studies', '');		navLinks[navc++] = new LeftLink('Iraq War Virtual Reality Study', 'http://www.patss.com/cli_res/irq_vr.html', '3', 'Current Studies', '');		navLinks[navc++] = new LeftLink('Burn Intervention - PTSD Study', 'http://www.patss.com/cli_res/burn.html', '3', 'Current Studies', '');						//navLinks[navc++] = new LeftLink('Post Traumatic Stress Disorder (PTSD)', 'http://www.patss.com/hea_inf/index.html', '3', 'Anxiety Disorders', '');		//navLinks[navc++] = new LeftLink('Phobias', 'http://www.patss.com/hea_inf/phobia.html', '3', 'Anxiety Disorders', '');				} else if (active == "") {				if (activeTool == "contact") {			navLinks[0] = new LeftLink('Contact Us', 'http://www.patss.com/contact.html', '2', '', '');			navLinks[1] = new LeftLink('Scheduling an Appointment', 'http://www.patss.com/appt.html', '2', '', '');			navLinks[2] = new LeftLink('Maps and Directions', 'http://www.patss.com/maps.html', '2', '', '');						navLinks[3] = new LeftLink('Ways to Give', 'http://www.med.cornell.edu/contact/donation.html', '2', '', '');			}	}	// returning the value here, don't touch	return (navLinks);}
