//			copyright 2000 FM Wodajo

// -------------------------------------------------------------

//					menubarSetup()

//

//	called when every page is loaded, arranges heirarchial menu bar items by setting the

//	style/height attributes of the "minor" menu items to zero

//

// -------------------------------------------------------------



function menubarSetup()

{

	

	preloadImages();

	

	/* find out which section of the website we're in */

	temp= window.document.URL;

	temp= temp.split("//");

	temp= temp[1].split("/");

	temp= temp[1].split("/");

	theItem= temp[0];



	if(theItem == "huh_orthopedics"){

		//document.all.item2minor.style.backgroundColor= "navy";

		document.all.item2minor.style.display="block";

	}

	if(theItem == "alumni"){

		//document.all.item3minor.style.backgroundColor= "navy";

		document.all.item3minor.style.display="block";

	}

	if(theItem == "applicants"){

		//document.all.item4minor.style.backgroundColor= "navy";

		document.all.item4minor.style.display="block";

	}

	if(theItem == "members"){

		//document.all.item9minor.style.backgroundColor= "navy";

		document.all.item9minor.style.display="block";

	}



}



// -------------------------------------------------------------

//					librarySelectionJump()

//

//		when a selection is made from the menubar pull down list of 

//		library sections, find out our current URL and calculate the proper

//		URL to jump to

//

// -------------------------------------------------------------



function librarySelectionJump(newPage)

{

	

	/* find out which section of the website we're in */

	temp= window.document.URL;

	temp= temp.split("//");

	temp= temp[1].split("/");

	top.location= "http://"+temp[0]+"/"+newPage;



}





// -------------------------------------------------------------

//

//			<!-- ImageReady Preload Script (Untitled-1) -->

//		

//		code genereated by ImageReady for the "rollover" buttons

//

// ----------------------------------------------------------------





function newImage(arg) {

	if (document.images) {

		rslt = new Image();

		rslt.src = arg;

		return rslt;

	}

}



function changeImages() {

	if (document.images && (preloadFlag == true)) {

		for (var i=0; i<changeImages.arguments.length; i+=2) {

			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];

		}

	}

}



var preloadFlag = false;

function preloadImages() {

	if (document.images) {

		division_members_only_butt_01_over = newImage("/images/division_members_only_bu-02.gif");

		about_the_program_button_01_over = newImage("/images/about_the_program_button-02.gif");

		alumni_homepage_button_01_over = newImage("/images/alumni_homepage_button_01-o.gif");

		upcoming_events_button_01_over = newImage("/images/upcoming_events_button_01-o.gif");

		applicant_information_butt_01_over = newImage("/images/applicant_information_bu-02.gif");

		epps_golf_classic_button_01_over = newImage("/images/epps_golf_classic_button-02.gif");

		issues_button_01_over = newImage("/images/issues_button_01-over.gif");

		useful_websites_button_01_over = newImage("/images/useful_websites_button_01-o.gif");

		Epps_Fellowship_button_01_over = newImage("/images/useful_websites_button_01-o.gif");
		
		preloadFlag = true;

	}

}

