////////////////////////////////////////////////////////////////////																////	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/cornellepilepsy/nav1_on.gif";	one_off = new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav1.gif";	one_active = new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav1_on.gif";		two_on = new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav2_on.gif";	two_off = new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav2.gif";	two_active = new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav2_on.gif";	three_on = new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav3_on.gif";	three_off = new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav3.gif";	three_active = new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav3_on.gif";	four_on = new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav4_on.gif";	four_off = new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav4.gif";	four_active = new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav4_on.gif";	five_on = new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav5_on.gif";	five_off = new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav5.gif";	five_active = new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/cornellepilepsy/nav5_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/cornellepilepsy/pano_home.swf";} else if (active == "one") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else if (active == "two") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else if (active == "three") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else if (active == "four") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else if (active == "five") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else if (active == "six") {	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".swf";} else { //default to this just in case	panoLoc = "http://media.med.cornell.edu/panoramas/cornellepilepsy/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/cornellepilepsy/pano_home.jpg";} else if (active == "one") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".jpg";} else if (active == "two") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".jpg";} else if (active == "three") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".jpg";} else  if (active == "four") {	altPanoLoc = "http://images.med.cornell.edu/panoramas/cornellepilepsy/pano_" + active + ".jpg";} else { //default to this just in case	altPanoLoc = "http://images.med.cornell.edu/panoramas/cornellepilepsy/pano.jpg";}			siteURL = "http://www.cornellepilepsy.com";	// set xml data for pano flash heredataLoc				= "http://global.med.cornell.edu/panoramas/cornellepilepsy/content.xml";// set loading value here: wmc or nypbrand				= "wmc";// 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";// 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 ( 7, "http://wo-pub1.med.cornell.edu/cgi-bin/WebObjects/pops-public.woa/wa/searchPhysician");buttonArray[1]		= new createButtonObject ( 5, "http://www.cornellphysicians.com/cornellepilepsy/contact.html?name1=Contact+Us&type1=2Active");buttonArray[2]		= new createButtonObject ( 5, "http://www.med.cornell.edu/search/search_advanced.html");buttonArray[3]		= new createButtonObject ( 7, "http://www.cornellphysicians.com/cornellepilepsy/maps.html?name1=Maps+and+Directions&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('Our Physicians', 'http://www.cornellepilepsy.com/abo_us/our_phy.html', '2', '', '');	    	}  else if (active == "two") {				// customize section three, 2nd and 3rd level navigation links here	    navLinks[0] = new LeftLink('Diagnostic Tests for Epilepsy', 'http://www.cornellepilepsy.com/adu_car/dia_tes.html', '2', '', '');			navLinks[1] = new LeftLink('Neuropsychological Testing', 'http://www.cornellepilepsy.com/adu_car/neu_tes.html', '2', '', '');					navLinks[2] = new LeftLink('Surgical Treatment of Epilepsy', 'http://www.cornellepilepsy.com/adu_car/sur_tre_epi.html', '2', '', '');			navLinks[3] = new LeftLink('Resective Surgery', 'http://www.cornellepilepsy.com/adu_car/res_sur.html', '3', 'Surgical Treatment of Epilepsy', '');		navLinks[4] = new LeftLink('Multiple Subpial Transection', 'http://www.cornellepilepsy.com/adu_car/mul_sub_tra.html', '3', 'Surgical Treatment of Epilepsy', '');	    navLinks[5] = new LeftLink('Vagal Nerve Stimulation', 'http://www.cornellepilepsy.com/adu_car/vag_ner_sti.html', '2', '', '');		navLinks[6] = new LeftLink('COPE Program', 'http://www.cornellepilepsy.com/adu_car/cope.html', '2', '', '');		navLinks[7] = new LeftLink('Epilepsy Month', 'http://www.cornellepilepsy.com/adu_car/e_month.html', '3', 'COPE Program', '');		navLinks[8] = new LeftLink('Psychosocial/Social Work Services', 'http://www.cornellepilepsy.com/adu_car/psy_wor_ser.html', '3', 'COPE Program', '');		navLinks[9] = new LeftLink('Outreach and Education', 'http://www.cornellepilepsy.com/adu_car/out_edu.html', '3', 'COPE Program', '');		navLinks[10] = new LeftLink('Register', 'http://www.cornellepilepsy.com/adu_car/register.html', '3', 'COPE Program', '');		// navLinks[8] = new LeftLink('Outreach Events', 'http://www.cornellepilepsy.com/adu_car/out_events.html', '3', 'Outreach and Education', '');		// navLinks[9] = new LeftLink('Patient Education Conference', 'http://www.cornellepilepsy.com/adu_car/pat_ed_con.html', '3', 'Outreach and Education', '');		// navLinks[10] = new LeftLink('Upcoming Local Events', 'http://www.cornellepilepsy.com/adu_car/events.html', '3', 'Outreach and Education', '');		navLinks[11] = new LeftLink('Ways to Give', 'http://www.cornellepilepsy.com/way_to_giv.html', '2', '', '');					} else if (active == "three") {				navLinks[0] = new LeftLink('Diagnostic Tests for Pediatric Epilepsy', 'http://www.cornellepilepsy.com/ped_car/dia_tes.html', '2', '', '');		navLinks[1] = new LeftLink('Ketogenic Diet', 'http://www.cornellepilepsy.com/ped_car/ket_die.html', '2', '', '');		navLinks[2] = new LeftLink('Surgical Treatment of Epilepsy', 'http://www.cornellepilepsy.com/ped_car/sur_tre.html', '2', '', '');		navLinks[3] = new LeftLink('Resective Surgery', 'http://www.cornellepilepsy.com/ped_car/res_sur.html', '3', 'Surgical Treatment of Epilepsy', '');		navLinks[4] = new LeftLink('Disconnection Surgery', 'http://www.cornellepilepsy.com/ped_car/dis_sur.html', '3', 'Surgical Treatment of Epilepsy', '');		navLinks[5] = new LeftLink('Hemispherectomy', 'http://www.cornellepilepsy.com/ped_car/hemispherectomy.html', '3', 'Surgical Treatment of Epilepsy', '');		navLinks[6] = new LeftLink('Vagal Nerve Stimulation for Children', 'http://www.cornellepilepsy.com/ped_car/vag_ner.html', '2', '', '');			} else if (active == "four") {				navLinks[0] = new LeftLink('Epilepsy Information', 'http://www.cornellepilepsy.com/epi_inf/', '2', '', '');		navLinks[1] = new LeftLink('Brain Tumors and Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/bra_tum.html', '2', '', '');		navLinks[2] = new LeftLink('Catamenial Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/cat_epi.html', '2', '', '');		navLinks[3] = new LeftLink('Pregnancy and Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/pre_epi.html', '2', '', '');		navLinks[4] = new LeftLink('Stress and Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/str_epi.html', '2', '', '');		navLinks[5] = new LeftLink('Seizures', 'http://www.cornellepilepsy.com/epi_inf/seizures.html', '2', '', '');		navLinks[6] = new LeftLink('Temporal Lobe Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/tem_lob_epi.html', '2', '', '');		navLinks[7] = new LeftLink('Mood Disorders', 'http://www.cornellepilepsy.com/epi_inf/moo_dis.html', '3', 'Temporal Lobe Epilepsy', '');		navLinks[8] = new LeftLink('Seizures and Pediatric Epilepsy', 'http://www.cornellepilepsy.com/epi_inf/sei_ped_epi.html', '2', '', '');		navLinks[9] = new LeftLink('Resources', 'http://www.cornellepilepsy.com/epi_inf/resources.html', '2', '', '');		navLinks[10] = new LeftLink('Outreach and Education', 'http://www.cornellepilepsy.com/adu_car/out_edu.html', '2', '', '');		//navLinks[11] = new LeftLink('Outreach Events', 'http://www.cornellepilepsy.com/adu_car/out_events.html', '3', 'Outreach and Education', '');		//navLinks[12] = new LeftLink('Patient Education Conference', 'http://www.cornellepilepsy.com/adu_car/pat_ed_con.html', '3', 'Outreach and Education', '');			} else if (active == "five") {				navLinks[0] = new LeftLink('Epilepsy Imaging', 'http://www.cornellepilepsy.com/research/epi_ima.html', '2', '', '');			} else if (active == "toolbar") {		navLinks[0] = new LeftLink('Contact Us', 'http://www.cornellepilepsy.org/contact.html', '2', '', '');		navLinks[1] = new LeftLink('Ways to Give', 'http://www.cornellepilepsy.com/way_to_giv.html', '2', '', '');		navLinks[2] = new LeftLink('Maps and Directions', 'http://www.cornellepilepsy.com/maps.html', '2', '', '');					}	// returning the value here, don't touch	return (navLinks);}
