//////////////////////////////////////////////////////////////////

//																//

//	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) {

	sub_one_on = new Image; sub_one_on.src="http://images.med.cornell.edu/headers/new_wmc/rasp_on.gif";
	sub_one_off = new Image; sub_one_off.src="http://images.med.cornell.edu/headers/new_wmc/rasp_off.gif";
	sub_one_active = new Image; sub_one_active.src="http://images.med.cornell.edu/headers/new_wmc/rasp_on.gif";

	sub_two_on = new Image; sub_two_on.src="http://images.med.cornell.edu/headers/new_wmc/res_sup_on.gif";
	sub_two_off = new Image; sub_two_off.src="http://images.med.cornell.edu/headers/new_wmc/res_sup_off.gif";
	sub_two_active = new Image; sub_two_active.src="http://images.med.cornell.edu/headers/new_wmc/res_sup_on.gif";

	sub_three_on = new Image; sub_three_on.src="http://images.med.cornell.edu/headers/new_wmc/cli_tri_on.gif";
	sub_three_off = new Image; sub_three_off.src="http://images.med.cornell.edu/headers/new_wmc/cli_tri_off.gif";
	sub_three_active = new Image; sub_three_active.src="http://images.med.cornell.edu/headers/new_wmc/cli_tri_on.gif";

	sub_four_on = new Image; sub_four_on.src="http://images.med.cornell.edu/headers/new_wmc/for_pol_on.gif";
	sub_four_off = new Image; sub_four_off.src="http://images.med.cornell.edu/headers/new_wmc/for_pol_off.gif";
	sub_four_active = new Image; sub_four_active.src="http://images.med.cornell.edu/headers/new_wmc/for_pol_on.gif";

	sub_five_on = new Image; sub_five_on.src="http://images.med.cornell.edu/headers/new_wmc/gra_con_on.gif";
	sub_five_off = new Image; sub_five_off.src="http://images.med.cornell.edu/headers/new_wmc/gra_con_off.gif";
	sub_five_active = new Image; sub_five_active.src="http://images.med.cornell.edu/headers/new_wmc/gra_con_on.gif";

	sub_six_on = new Image; sub_six_on.src="http://images.med.cornell.edu/headers/new_wmc/res_com_on.gif";
	sub_six_off = new Image; sub_six_off.src="http://images.med.cornell.edu/headers/new_wmc/res_com_off.gif";
	sub_six_active = new Image; sub_six_active.src="http://images.med.cornell.edu/headers/new_wmc/res_com_on.gif";

	sub_seven_on = new Image; sub_seven_on.src="http://images.med.cornell.edu/headers/new_wmc/tec_dev_on.gif";
	sub_seven_off = new Image; sub_seven_off.src="http://images.med.cornell.edu/headers/new_wmc/tec_dev_off.gif";
	sub_seven_active = new Image; sub_seven_active.src="http://images.med.cornell.edu/headers/new_wmc/tec_dev_on.gif";

}

// ::::::::::::::::::::::::::: SECTION II: set values for panos, use absolute paths for all file locations


// flash pano: use this if using different pano for each section

if (activeSub == "" && activeHome == "home") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_home.swf";

} else if (activeSub == "sub_one") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_one.swf";

} else if (activeSub == "sub_two") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_two.swf";

} else if (activeSub == "sub_three") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_three.swf";

} else if (activeSub == "sub_four") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_four.swf";

} else if (activeSub == "sub_five") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_five.swf";

} else if (activeSub == "sub_six") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_six.swf";

} else if (activeSub == "sub_seven") {

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_seven.swf";

} else if (activeSub == "nevpc") {

panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/pano_nevpc.swf";

} else { //default to this just in case

	panoLoc = "http://media.med.cornell.edu/panoramas/wmc/research/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 (activeSub == "" && activeHome == "home") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/home.jpg";

} else if (activeSub == "sub_one") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_one.jpg";

} else if (activeSub == "sub_two") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_two.jpg";

} else if (activeSub == "sub_three") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_three.jpg";

} else  if (activeSub == "sub_four") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_four.jpg";

} else  if (activeSub == "sub_five") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_five.jpg";

} else  if (activeSub == "sub_six") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_six.jpg";

} else  if (activeSub == "sub_seven") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_seven.jpg";

} else  if (activeSub == "nevpc") {

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano_nevpc.jpg";

} else { //default to this just in case

	altPanoLoc = "http://images.med.cornell.edu/panoramas/wmc/research/pano.jpg";

}		

// insert homepage url here, this is for lefthand navs homepage link	
siteURL 			= "http://weill.cornell.edu/research";	


// set xml data for pano flash here
dataLoc				= "/research/data/research.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";

//if the site brand is nyp, it'll display the colored bars based on section; if wmc, it'll display the brown.
barColor = "";

if (brand == "nyp") {

	if (active == "one") {

		barColor = "#999966";

	} else if (active == "two") {

		barColor = "#669999";

	} else if (active == "three") {

		barColor = "#aeae68";

	} else if (active == "four") {

		barColor = "#7796a6";

	} else if (active == "five") {

		barColor = "#7d8f74";

	} else if (active == "six") {

		barColor = "#7dad91";

	} else {

		barColor = "#677f7f";

	}

} else if (brand == "wmc") {

	barColor = "#A79D8E";

}



// 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 ( 11, "http://weill.cornell.edu/research/researchers.html");

buttonArray[1]		= new createButtonObject ( 5, "http://weill.cornell.edu/search/search_advanced.html");

buttonArray[2]		= new createButtonObject ( 7, "http://weill.cornell.edu/research/contact.html");

buttonArray[3]		= new createButtonObject ( 4, "http://weill.cornell.edu/calendar/index.html");

buttonArray[4]		= new createButtonObject ( 5, "http://weill.cornell.edu/contact/donation.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();

		

		

	// added incremental counter for all nav arrays (navc) to eliminate re-numbering the nav links - jvb

	

	if (active == "one") {

	

		var navc = 0;

	    

		navLinks[navc++] = new LeftLink('History of Accomplishments', 'http://weill.cornell.edu/research/abo_us/his_acc.html', '2', '', '');	

		navLinks[navc++] = new LeftLink('Research Administration Staff', 'http://weill.cornell.edu/research/abo_us/res_adm.html', '2', '', '');	

		



	} else if (active == "three") {

	

		var navc = 0;

		

		navLinks[navc++] = new LeftLink('Staff', 'http://weill.cornell.edu/research/cli_tri/staff.html', '2', '', '');	

		

		// customize section three, 2nd and 3rd level navigation links here

		

		

	} else if (active == "four") {

	

		var navc = 0;

		

		navLinks[navc++] = new LeftLink('Clinical Trial Forms', 'http://weill.cornell.edu/research/for_pol/cli_tri.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Grants and Contracts Forms', 'http://weill.cornell.edu/research/for_pol/grant_con.html', '2', '', '');

		navLinks[navc++] = new LeftLink('HIPAA in Research Forms', 'http://weill.cornell.edu/research/for_pol/hip_for.html', '2', '', '');

		//navLinks[navc++] = new LeftLink('Institutional Animal Care and Use Committee (IACUC) Forms', 'http://med.cornell.edu/research/for_pol/iacuc.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Institutional Biosafety Committee (IBC) Forms', 'http://weill.cornell.edu/research/for_pol/ins_bio_com.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Institutional Review Board (IRB) Forms', 'http://weill.cornell.edu/research/for_pol/ins_rev_boa.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Policies', 'http://weill.cornell.edu/research/for_pol/policies.html', '2', '', '');
		
		navLinks[navc++] = new LeftLink('Research Compliance Policies and Procedures', 'http://weill.cornell.edu/research/for_pol/res_comp_pol.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Technology Development Forms', 'http://weill.cornell.edu/research/for_pol/tec_dev_for.html', '2', '', '');

		

		

	

	} else if (active == "five") {

		

		var navc = 0;

		

		navLinks[navc++] = new LeftLink('How to Apply', 'http://weill.cornell.edu/research/gra_con/how_to_app.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Institutional Information', 'http://weill.cornell.edu/research/gra_con/ins_inf.html', '3', 'How to Apply', '');		

		navLinks[navc++] = new LeftLink('ARRA', 'http://weill.cornell.edu/research/gra_con/AARA.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Search for Funding', 'http://weill.cornell.edu/research/gra_con/sea_fun.html', '2', '', '');
		navLinks[navc++] = new LeftLink('Starr Cancer Consortium RFA', 'http://weill.cornell.edu/research/gra_con/starr.html', '3', 'Search for Funding', '');

		navLinks[navc++] = new LeftLink('Dates and Deadlines', 'http://weill.cornell.edu/research/gra_con/dat_dea.html', '3', 'Search for Funding', '');



		navLinks[navc++] = new LeftLink('Indirect Cost Rates and Fringe Benefits', 'http://weill.cornell.edu/research/gra_con/ind_cos_rat.html', '2', '', '');

		

		navLinks[navc++] = new LeftLink('NIH Information and Forms', 'http://weill.cornell.edu/research/gra_con/nat_ins.html', '2', 'NIH Information and Forms', '');

		navLinks[navc++] = new LeftLink('Change in Submission Dates', 'http://weill.cornell.edu/research/gra_con/submission.html', '3', 'NIH Information and Forms', '');
		
		navLinks[navc++] = new LeftLink('Revised Policy for IRB Review of Human Subjects Protocols in NIH Grant Applications', 'http://weill.cornell.edu/research/gra_con/nih_irb.html', '3', 'NIH Information and Forms', '');

		navLinks[navc++] = new LeftLink('NIH Review of Grants with Animal Subjects', 'http://weill.cornell.edu/research/gra_con/nih_app.html', '3', 'NIH Information and Forms', '');

		navLinks[navc++] = new LeftLink('Kirschstein-NRSA Budget Information', 'http://weill.cornell.edu/research/gra_con/rut_kir_nrs.html', '3', 'NIH Information and Forms', '');

		navLinks[navc++] = new LeftLink('Required Federal Citations (Sample Inserts) for NIH Grant Applications', 'http://weill.cornell.edu/research/gra_con/nih_fed_cit.html', '3', 'NIH Information and Forms', '');

		navLinks[navc++] = new LeftLink('Grants.gov Information', 'http://weill.cornell.edu/research/gra_con/grants_info.html', '2', '', '');
		

		navLinks[navc++] = new LeftLink('Material Transfer Agreement (MTA)', 'http://weill.cornell.edu/research/gra_con/mat_tra.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Links and Resources', 'http://weill.cornell.edu/research/gra_con/lin_res.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Staff', 'http://weill.cornell.edu/research/gra_con/staff.html', '2', '', '');

		

	} else if (active == "six") {

	

		var navc = 0;

		

		navLinks[navc++] = new LeftLink('Institutional Review Board (IRB)', 'http://weill.cornell.edu/research/rea_com/ins_rev_boa.html', '2', '', '');

		navLinks[navc++] = new LeftLink('IRB Human Subjects Training Requirements', 'http://weill.cornell.edu/research/rea_com/irb_hstr.html', '3', 'Institutional Review Board (IRB)', '');

		navLinks[navc++] = new LeftLink('Frequently Asked Questions (FAQ)', 'http://weill.cornell.edu/research/rea_com/irb_faq.html', '3', 'Institutional Review Board (IRB)', '');
		
		navLinks[navc++] = new LeftLink('Protocol Exception Requests', 'http://weill.cornell.edu/research/rea_com/irb_proto.html', '3', 'Institutional Review Board (IRB)', '');

		navLinks[navc++] = new LeftLink('Information on Adverse Events', 'http://weill.cornell.edu/research/rea_com/irb_adv.html', '3', 'Institutional Review Board (IRB)', '');

		

		navLinks[navc++] = new LeftLink('HIPAA In Research', 'http://weill.cornell.edu/research/rea_com/hip_rea.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Background on HIPAA (Privacy and Security Rules)', 'http://weill.cornell.edu/research/rea_com/hip_back.html', '3', 'HIPAA In Research', '');

		navLinks[navc++] = new LeftLink('HIPAA Tests', 'http://weill.cornell.edu/research/rea_com/hip_test.html', '3', 'HIPAA In Research', '');

		navLinks[navc++] = new LeftLink('HIPAA Links', 'http://weill.cornell.edu/research/rea_com/hip_lin.html', '3', 'HIPAA In Research', '');

		

		navLinks[navc++] = new LeftLink('Conflicts Management Office', 'http://weill.cornell.edu/research/rea_com/con_of_int.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Annual Disclosure Statement', 'http://weill.cornell.edu/research/rea_com/ann_dis_sta.html', '3', 'Conflicts Management Office', '');

		navLinks[navc++] = new LeftLink('Conflicts Policy FAQ', 'http://weill.cornell.edu/research/rea_com/coiFaq.html', '3', 'Conflicts Management Office', '');

		navLinks[navc++] = new LeftLink('Online Survey FAQ', 'http://weill.cornell.edu/research/rea_com/faq.html', '3', 'Conflicts Management Office', '');

		

		navLinks[navc++] = new LeftLink('Research Archive Storage', 'http://weill.cornell.edu/research/rea_com/res_arc_sto.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Tri-institutional Program for Research Trainees', 'http://weill.cornell.edu/research/rea_com/tri_ins_pro.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Responsible Conduct of Research Orientation Presentation', 'http://weill.cornell.edu/research/downloads/res_con.ppt', '3', 'Tri-institutional Program for Research Trainees', '');

		navLinks[navc++] = new LeftLink('Student Research Clearinghouse', 'http://weill.cornell.edu/research/rea_com/stu_res_cle.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Research Support Orientation', 'http://weill.cornell.edu/research/rea_com/res_sup_ori.html', '2', '', '');

		navLinks[navc++] = new LeftLink("Research Coordinators' Network", 'http://weill.cornell.edu/research/rea_com/res_coo_net.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Faculty Research Mentors', 'http://weill.cornell.edu/research/rea_com/fac_res_men.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Educational Presentations', 'http://weill.cornell.edu/research/rea_com/edu_pre.html', '2', '', '');

	

	} else if (active == "nevpc") {

	

		var navc = 0;


		navLinks[navc++] = new LeftLink('NEVPC Homepage', 'http://med.cornell.edu/research/rea_sup/nevpc/index.html', '2', '', '');

		navLinks[navc++] = new LeftLink('NEVPC Homepage', 'http://med.cornell.edu/research/rea_sup/nevpc/index.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Conference Registration', 'http://med.cornell.edu/research/rea_sup/nevpc/reg.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Lodging', 'http://med.cornell.edu/research/rea_sup/nevpc/lodge.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Case Submission', 'http://med.cornell.edu/research/rea_sup/nevpc/case_sub.html', '2', '', '');

		navLinks[navc++] = new LeftLink('Gross Review', 'http://med.cornell.edu/research/rea_sup/nevpc/gro_rev.html', '2', '', '');

		navLinks[navc++] = new LeftLink('2005 Conference Schedule', 'http://med.cornell.edu/research/rea_sup/nevpc/con_sch.html', '2', '', '');

		navLinks[navc++] = new LeftLink('History', 'http://med.cornell.edu/research/rea_sup/nevpc/history.html', '2', '', '');

	

		

	} else if (active == "") {

		

		if (activeTool == "contact") {

			navLinks[0] = new LeftLink('Contact Us', 'http://med.cornell.edu/research/contact.html', '2', '', '');

		} else if (activeTool == "maps") {

			navLinks[0] = new LeftLink('Maps and Directions', 'http://med.cornell.edu/research/maps.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 twoNav4Links = new Array();	

	var allNav4Pages = new Array();	

		 

	if (active == "three") {

	

		var navc = 0;

	

		// customize 4th level navigation links here

		oneNav4Links[navc++] = new LeftLink("Assigning Employees", "http://intranet.med.cornell.edu/finance/pol_pro_pro_ass.html", "4", "", "Search for Funding");

		oneNav4Links[navc++] = new LeftLink("Assigning Functions", "http://intranet.med.cornell.edu/finance/pol_pro_pro_fun.html", "4", "", "Search for Funding");		

		oneNav4Links[navc++] = new LeftLink("Quick Reference", "http://intranet.med.cornell.edu/finance/pol_pro_pro_qui.html", "4", "", "Search for Funding");

		oneNav4Links[navc++] = new LeftLink("Screens", "http://intranet.med.cornell.edu/finance/pol_pro_pro_scr.html", "4", "", "Search for Funding");	

		

		var navc = 0;

		

		// set urls for all pages with 4th level navigation

		allNav4Pages[navc++] = new Nav4Page("http://med.cornell.edu/research/gra_con/sea_fun.html", oneNav4Links);		

		allNav4Pages[navc++] = new Nav4Page("http://med.cornell.edu/research/gra_con/sea_fun.html", oneNav4Links);

		allNav4Pages[navc++] = new Nav4Page("http://med.cornell.edu/research/gra_con/sea_fun.html", oneNav4Links);

		allNav4Pages[navc++] = new Nav4Page("http://med.cornell.edu/research/gra_con/sea_fun.html", oneNav4Links);

		allNav4Pages[navc++] = new Nav4Page("http://med.cornell.edu/research/gra_con/sea_fun.html", oneNav4Links);		

		

	} else if (active == "four") {

	

		var navc = 0;

	

	    // customize 4th level navigation links here

		oneNav4Links[navc++] = new LeftLink("Policy", "http://intranet.med.cornell.edu/finance/tra_fix_ass_pol.html", "4", "Fixed Assets", "");

	    oneNav4Links[navc++] = new LeftLink("Procedures", "http://intranet.med.cornell.edu/finance/tra_fix_ass_pro.html", "4", "Fixed Assets", "");

	    

		var navc = 0;



		// set urls for all pages with 4th level navigation

		allNav4Pages[navc++] = new Nav4Page("http://intranet.med.cornell.edu/finance/tra_fix_ass.html", oneNav4Links);

		allNav4Pages[navc++] = new Nav4Page("http://intranet.med.cornell.edu/finance/tra_fix_ass_pol.html", oneNav4Links);

		allNav4Pages[navc++] = new Nav4Page("http://intranet.med.cornell.edu/finance/tra_fix_ass_pro.html", oneNav4Links);

 } 

 

// 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();

}