//////////////////////////////////////////////////////////////////

//																//

//	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/nyp/careers/abo_us_on.gif";

	one_off = new Image; one_off.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/abo_us_off.gif";

	one_active = new Image; one_active.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/abo_us_on.gif";

	

	two_on = new Image; two_on.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_fie_on.gif";

	two_off = new Image; two_off.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_fie_off.gif";

	two_active = new Image; two_active.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_fie_on.gif";



	three_on = new Image; three_on.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/job_opp_on.gif";

	three_off = new Image; three_off.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/job_opp_off.gif";

	three_active = new Image; three_active.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/job_opp_on.gif";



	four_on = new Image; four_on.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_eve_on.gif";

	four_off = new Image; four_off.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_eve_off.gif";

	four_active = new Image; four_active.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/car_eve_on.gif";

	

	five_on = new Image; five_on.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/faq_on.gif";

	five_off = new Image; five_off.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/faq_off.gif";

	five_active = new Image; five_active.src="http://images.med.cornell.edu/headers/navbar/nyp/careers/faq_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/careers/pano_home.swf";

} else if (active == "one") {

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/pano_" + active + ".swf";

} else if (active == "two") {

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/pano_" + active + ".swf";

} else if (active == "three") {

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/pano_" + active + ".swf";

} else if (active == "four") {

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/pano_" + active + ".swf";

} else if (active == "five") {

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/pano_" + active + ".swf";

} else { //default to this just in case

	panoLoc = "http://media.med.cornell.edu/panoramas/careers/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/nyp/careers/pano_home" + num + ".jpg";

} else if (active == "one") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano_" + active + ".jpg";

} else if (active == "two") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano_" + active + ".jpg";

} else if (active == "three") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano_" + active + ".jpg";

} else  if (active == "four") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano_" + active + ".jpg";

} else  if (active == "five") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano_" + active + ".jpg";

} else { //default to this just in case

	altPanoLoc = "http://images.med.cornell.edu/panoramas/nyp/careers/pano.jpg";

}		

	
// lefthand nav homepage link
siteURL = "http://www.nyp.org/careers/";

// set xml data for pano flash here

dataLoc				= "http://global.med.cornell.edu/panoramas/careers/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				= "nyp";



// setting the array, don't touch

buttonArray			= new Array ();



// START OF WEB TRENDS VARIABLES
//var gFpcDom=".nyp.org";
var gDomain="cds.nyp.org";
var gDcsId="dcs9e0rmek711roghvzx6gsg8_9s4x";

function sectionName() {
	var activeSectionName = "";
	
	if (active == "one") {
		activeSectionName = "About Us";
	} else if (active == "two") {
		activeSectionName = "Career Fields";
	} else if (active == "three") {
		activeSectionName = "Job Opportunities";
	} else if (active == "four") {
		activeSectionName = "Career Events";
	} else if (active == "five") {
		activeSectionName = "FAQs";
	} else if (active == "") {
		if (activeHome == "home") {
			activeSectionName = "Home";
		} else {
			activeSectionName = "Toolbar:Quick Info";
		}
	} 
	return activeSectionName;
}
// END OF WEB TRENDS VARIABLES 



// set absolute paths for all the pano toolbar links [image map for static pano]

buttonArray[0]		= new createButtonObject ( 6, "http://www.nyp.org/search/search_advanced.html");



// 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('Benefits', 'http://www.nyp.org/careers/about/benefits.html', '2', '', '');

	    navLinks[1] = new LeftLink('News', 'http://www.nyp.org/careers/about/news.html', '2', '', '');

		navLinks[2] = new LeftLink('Locations', 'http://www.nyp.org/careers/about/locations.html', '2', '', '');

		navLinks[3] = new LeftLink('NewYork-Presbyterian Hospital/The Allen Hospital ', 'http://www.nyp.org/careers/about/loc_all_pav.html', '3', 'Locations', '');

		navLinks[4] = new LeftLink("NewYork-Presbyterian Morgan Stanley Children's Hospital", 'http://www.nyp.org/careers/about/loc_chi_hos_nyp.html', '3', 'Locations', '');

		navLinks[5] = new LeftLink('NewYork-Presbyterian/Columbia University Medical Center', 'http://www.nyp.org/careers/about/loc_col_uni_med.html', '3', 'Locations', '');

		navLinks[6] = new LeftLink('NewYork-Presbyterian/Weill Cornell Medical Center', 'http://www.nyp.org/careers/about/loc_new_yor_wei.html', '3', 'Locations', '');

		navLinks[7] = new LeftLink('NewYork-Presbyterian/Westchester Division', 'http://www.nyp.org/careers/about/loc_wes_div.html', '3', 'Locations', '');

		navLinks[8] = new LeftLink('Local Life', 'http://www.nyp.org/careers/about/loc_lif_nyc.html', '3', 'Locations', '');



	}  else if (active == "two") {

		

		// customize section three, 2nd and 3rd level navigation links here

		navLinks[0] = new LeftLink('Allied Health', 'http://www.nyp.org/careers/car_fie/ali_hea.html', '2', '', '');	

		navLinks[1] = new LeftLink('Nursing', 'http://www.nyp.org/careers/car_fie/nursing.html', '2', '', '');	

		navLinks[2] = new LeftLink('Other Careers', 'http://www.nyp.org/careers/car_fie/managerial.html', '2', '', '');	



	} else if (active == "three") {

		navLinks[0] = new LeftLink('How to Apply', 'http://www.nyp.org/careers/job_ops/how_to_app.html', '2', '', '');
		//navLinks[1] = new LeftLink('Search Jobs and Apply Online', 'http://nyp.org/careers/job_ops/temp_down.html', '2', '', '');
		navLinks[1] = new LeftLink('Search Jobs and Apply Online', 'http://nyp.org/careers/job_ops/index', '2', '', '');
		navLinks[2] = new LeftLink('Experienced Professionals', 'http://www.nyp.org/careers/job_ops/exp_pro.html', '2', '', '');
		navLinks[3] = new LeftLink('New Graduate Nurses', 'http://www.nyp.org/careers/job_ops/new_gra.html', '2', '', '');
		navLinks[4] = new LeftLink('Healthcare Careers', 'http://www.nyp.org/careers/job_ops/cur_stu.html', '2', '', '');
		navLinks[5] = new LeftLink('Biomedical Engineering', 'http://www.nyp.org/careers/job_ops/hea_bio_eng.html', '3', 'Healthcare Careers', '');
		navLinks[6] = new LeftLink('Emergency Services', 'http://www.nyp.org/careers/job_ops/hea_eme_ser.html', '3', 'Healthcare Careers', '');
		navLinks[7] = new LeftLink('Imaging/Radiology Services', 'http://www.nyp.org/careers/job_ops/hea_ima_rad.html', '3', 'Healthcare Careers', '');
		navLinks[8] = new LeftLink('Laboratory Technology', 'http://www.nyp.org/careers/job_ops/hea_lab_tec.html', '3', 'Healthcare Careers', '');
		navLinks[9] = new LeftLink('Nursing', 'http://www.nyp.org/careers/job_ops/hea_nursing.html', '3', 'Healthcare Careers', '');
		navLinks[10] = new LeftLink('Nutrition Services', 'http://www.nyp.org/careers/job_ops/hea_nut_ser.html', '3', 'Healthcare Careers', '');
		navLinks[11] = new LeftLink('Pharmacy', 'http://www.nyp.org/careers/job_ops/hea_pharmacy.html', '3', 'Healthcare Careers', '');
		navLinks[12] = new LeftLink('Radiation Therapy', 'http://www.nyp.org/careers/job_ops/hea_rad_the.html', '3', 'Healthcare Careers', '');
		navLinks[13] = new LeftLink('Rehabilitation Services', 'http://www.nyp.org/careers/job_ops/hea_reh_ser.html', '3', 'Healthcare Careers', '');
		navLinks[14] = new LeftLink('Respiratory Therapy', 'http://www.nyp.org/careers/job_ops/hea_res_the.html', '3', 'Healthcare Careers', '');
		navLinks[15] = new LeftLink('Social Work', 'http://www.nyp.org/careers/job_ops/hea_soc_wor.html', '3', 'Healthcare Careers', '');
		navLinks[16] = new LeftLink('Surgical Technology', 'http://www.nyp.org/careers/job_ops/hea_sur_tec.html', '3', 'Healthcare Careers', '');

	} else if (active == "") {
		

		if (activeTool == "contact") {

			navLinks[0] = new LeftLink('Contact Us', 'http://www.nyp.org/careers/contact.html', '2', '', '');

		} else if (activeTool == "maps") {

			navLinks[0] = new LeftLink('Maps and Directions', 'http://www.nyp.org/careers/maps.html', '2', '', '');			

		}

	}

	// returning the value here, don't touch

	return (navLinks);

}

