//////////////////////////////////////////////////////////////////
//																//
//	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/archives/images/header/nav1_on.gif";
	one_off= new Image; one_off.src="http://www.med.cornell.edu/archives/images/header/nav1.gif";

	two_on= new Image; two_on.src="http://www.med.cornell.edu/archives/images/header/nav2_on.gif";
	two_off= new Image; two_off.src="http://www.med.cornell.edu/archives/images/header/nav2.gif";

	three_on= new Image; three_on.src="http://www.med.cornell.edu/archives/images/header/nav3_on.gif";
	three_off= new Image; three_off.src="http://www.med.cornell.edu/archives/images/header/nav3.gif";

	four_on= new Image; four_on.src="http://www.med.cornell.edu/archives/images/header/nav4_on.gif";
	four_off= new Image; four_off.src="http://www.med.cornell.edu/archives/images/header/nav4.gif";

	five_on= new Image; five_on.src="http://www.med.cornell.edu/archives/images/header/nav5_on.gif";
	five_off= new Image; five_off.src="http://www.med.cornell.edu/archives/images/header/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/hr/media/panoramas/pano_home.swf";
} else if (active == "one") {
	panoLoc = "http://www.med.cornell.edu/hr/media/panoramas/pano_one.swf";	
} else if (active == "two") {
	panoLoc = "http://www.med.cornell.edu/hr/media/panoramas/pano_two.swf";	
} else if (active == "three") {
	panoLoc = "http://www.med.cornell.edu/hr/media/panoramas/pano_three.swf";	
} else if (active == "four") {
	panoLoc = "http://www.med.cornell.edu/archives/media/panoramas/pano_" + active + ".swf";
} else if (active == "five") {
	panoLoc = "http://www.med.cornell.edu/archives/media/panoramas/pano_" + active + ".swf";

} else if (active == "") {
	panoLoc = "http://www.med.cornell.edu/hr/media/panoramas/pano_three.swf";	

} else { //default to this just in case
	panoLoc = "http://media.med.cornell.edu/panoramas/wcmc/cumc/pano_one.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/archives/images/panoramas/pano_home.jpg";
} else if (active == "one") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else if (active == "two") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else if (active == "three") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "four") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "five") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "six") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else  if (active == "seven") {
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano_" + active + ".jpg";
} else { //default to this just in case
	altPanoLoc = "http://www.med.cornell.edu/archives/images/panoramas/pano.jpg";
}		
	

// set xml data for pano flash here
dataLoc				= "http://www.med.cornell.edu/hr/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: wcmc or nyp
brand				= "wcmc";

// 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 ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_1.html");
//buttonArray[1]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_2.html");
//buttonArray[2]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_3.html");
//buttonArray[3]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_4.html");
//buttonArray[4]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_5.html");
//buttonArray[5]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_6.html");
//buttonArray[6]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_7.html");
//buttonArray[7]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_8.html");
//buttonArray[8]		= new createButtonObject ( 4, "http://www.med.cornell.edu/archives/toolbar/toolbar_9.html");

// setting the array, don't touch
additionalMapArray	= new Array ();

// lefthand nav homepage link
siteURL = "http://weill.cornell.edu/hr/index.html";

// ::::::::::::::::::::::::::: 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('Benefits Summaries', 'http://weill.cornell.edu/hr/prospective/learning_benefits.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Exempt Employees', 'http://weill.cornell.edu/hr/prospective/exempt.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Non-Exempt Employees', 'http://weill.cornell.edu/hr/prospective/non_exempt.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Faculty', 'http://weill.cornell.edu/hr/prospective/faculty.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Post Doctoral Associates and Fellows', 'http://weill.cornell.edu/hr/prospective/postdoc.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Career Development and Training', 'http://weill.cornell.edu/hr/prospective/career_development.html', '2', '', '');
	navLinks[navc++] = new LeftLink('WCMC Careers <br>How to Apply', 'http://weill.cornell.edu/hr/prospective/howtoapply.html', '2', '', '');



	}  else if (active == "two") {
	
	var navc = 0;
	
	navLinks[navc++] = new LeftLink('Getting Started', 'http://weill.cornell.edu/hr/new_employees/getting_started.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Employee Identification', 'http://weill.cornell.edu/hr/new_employees/identification.html', '3', '', '');
	navLinks[navc++] = new LeftLink('New Hire Enrollment Forms', 'http://weill.cornell.edu/hr/new_employees/forms.html', '3', '', '');
	navLinks[navc++] = new LeftLink("Nurse's Credentialing Process", 'http://weill.cornell.edu/hr/new_employees/nurses_cred.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Physical Exam', 'http://weill.cornell.edu/hr/new_employees/physical.html', '3', '', '');

	navLinks[navc++] = new LeftLink('Benefits Summaries', 'http://weill.cornell.edu/hr/new_employees/learning_benefits.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Exempt Employees', 'http://weill.cornell.edu/hr/new_employees/exempt.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Non-Exempt Employees', 'http://weill.cornell.edu/hr/new_employees/non_exempt.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Faculty', 'http://weill.cornell.edu/hr/new_employees/faculty.html', '3', '', '');
	navLinks[navc++] = new LeftLink('Post Doctoral Associates and Fellows', 'http://weill.cornell.edu/hr/new_employees/postdoc.html', '3', '', '');
	
	navLinks[navc++] = new LeftLink('Career Development and Training', 'http://weill.cornell.edu/hr/new_employees/career_development.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Commuter Tax Program', 'http://weill.cornell.edu/hr/new_employees/transportation.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Dining on Campus', 'http://weill.cornell.edu/hr/new_employees/dining.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Employee Recognition', 'http://weill.cornell.edu/hr/new_employees/employee_recognition.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Employee Assistance Program', 'http://weill.cornell.edu/hr/new_employees/eap.html', '2', '', '');

	navLinks[navc++] = new LeftLink('Holiday Calendar', 'http://weill.cornell.edu/hr/new_employees/holiday.html', '2', '', '');
	navLinks[navc++] = new LeftLink('Special Offers and Discounts', 'http://weill.cornell.edu/hr/new_employees/special_offers.html', '2', '', '');
		
navLinks[navc++] = new LeftLink('WCMC Careers <br>How to Apply', 'http://weill.cornell.edu/hr/prospective/howtoapply.html', '2', '', '');
		

	} else if (active == "three") {
		
	var navc = 0;
	navLinks[navc++] = new LeftLink('WCMC Careers <br>How to Apply', 'http://weill.cornell.edu/hr/prospective/howtoapply.html', '2', '', '');

	} 		
	// returning the value here, don't touch
	return (navLinks);
}


// fourth-level navigation code begins here


function loadNav4Pages() {
 
 // setting the array, don't touch
 
var oneNav4Links = new Array();
var allNav4Pages = new Array();

var oneNav4Links1 = new Array();

var oneNav4Links2 = new Array();

var oneNav4Links3 = new Array();

var oneNav4Links4 = new Array();

var oneNav4Links5 = new Array();

var oneNav4Links6 = new Array();

var oneNav4Links7 = new Array();

var oneNav4Links8 = new Array();

var oneNav4Links9 = new Array();

var oneNav4Links10 = new Array();

var oneNav4Links11 = new Array();


if (active == "one") { 
 
 // customize 4th level navigation links here

var navc = 0;
 
	
}
	
 else if (active == "two") { 
 
 // customize 4th level navigation links here

var navc = 0;

oneNav4Links[0] = new LeftLink('', 'http://weill.cornell.edu/hr/new_employees/ .html', '4', 'Getting Started', '');
	oneNav4Links[1] = new LeftLink('', 'http://weill.cornell.edu/hr/new_employees/ .html', '4', 'Getting Started', '');


	allNav4Pages[navc++] = new Nav4Page('http://weill.cornell.edu/hr/new_employees/getting_started.html', oneNav4Links);
		
		


	
	oneNav4Links3[0] = new LeftLink('Exempt', 'http://weill.cornell.edu/hr/new_employees/non-exempt.html', '4', 'Benefits Summaries', '');
	oneNav4Links3[1] = new LeftLink('Non-Exempt', 'http://weill.cornell.edu/hr/new_employees/exempt.html', '4', 'Benefits Summaries', '');

	allNav4Pages[navc++] = new Nav4Page('http://weill.cornell.edu/hr/new_employees/non-exempt.html', oneNav4Links3);	
	allNav4Pages[navc++] = new Nav4Page('http://weill.cornell.edu/hr/new_employees/exempt.html', oneNav4Links3);	
	allNav4Pages[navc++] = new Nav4Page('http://weill.cornell.edu/hr/new_employees/learning_benefits.html', oneNav4Links3);
	
}
	
 else if (active == "three") { 
 
 // customize 4th level navigation links here
 
 

var navc = 0;

	
	
	
 } 
	
 
// returning the value here, don't touch
return (allNav4Pages);
 
}

function popup_tour(pg) {
       tourpopup=window.open(pg,"popupwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,width=600,height=350");
       tourpopup.focus();
}




