	/* Javascript function to display <dd> descriptions on a specific spot
	   on the home page when its corresponding <dt> title is roll-overed.
		
	   Author: Jonathan Hurtado
	   Version: August 25, 2005
	----------------------------------------------- */
	function addTriggers(){
	
		if ( document.getElementByID || document.createTextNode ){
		
			// Retrieve all <dt>s in the "homemenu" def. list
			var dts = document.getElementById("homemenu").getElementsByTagName("dt");

			//obtains What is College Now element
			var dt_default = document.getElementById("wicn_2");			
			var dd_default = dt_default.nextSibling;
			// Test to make sure nextSibling is not whitespace!			
			while (dd_default.nodeType != 1){
				dd_default = dd_default.nextSibling; //grabs dd associated with default dt
			}
			
			// Add mouseover/mouseout events
			for (i = 0; i < dts.length; i++){
				if ( dts[i] != dt_default ) { 
					//if mouseover occurs on any dd that is not What is College Now dd,
					//it turns off the display for What is College Now dd
					dts[i].onmouseover = function(){ switchOn2(this, dd_default); };
				} else {
					dts[i].onmouseover = function(){ switchOn(this); };
				}
					dts[i].onmouseout = function(){ switchOff(this); };
			}
		}
	}

	// Displays text within a <dd> related to rollover <dt>
	function switchOn(obj){

		// Test to make sure nextSibling is not whitespace!
		var item = obj.nextSibling;
		while (item.nodeType != 1){
			item = item.nextSibling;
		}

		// Style accordingly
		item.style.display = "block"; //show dd associated rollover dt
		
	}

	// Displays text within a <dd> related to rollover <dt>
	function switchOn2(obj, dd_default){

		// Test to make sure nextSibling is not whitespace!
		var item = obj.nextSibling;
		while (item.nodeType != 1){
			item = item.nextSibling;
		}

		// Style accordingly
		item.style.display = "block"; //show dd associated rollover dt
		dd_default.style.display = "none"; //hide default dd
		
	}
	
	// Hides text within a <dd> related to mouseout <dt>
	function switchOff(obj){

		// Test to make sure nextSibling is not whitespace!
		var item = obj.nextSibling;
		while (item.nodeType != 1){
			item = item.nextSibling;
		}

		item.style.display = "none"; //hide dd associated mouseout dt
		
	}
	
	// If for some reason Javascript is enabled, but the 'home' stylesheet
	// is disabled, then the addTriggers function will not execute, leaving
	// the home page accessible.
	if( document.getElementsByTagName ) {
    	//DOM browsers - get link and style tags
    	//var i, linkTags;
		//for(i=0; (linkTags = document.getElementsByTagName("link")[i]); i++) { //only continues if CSS is found
		     //if(linkTags.getAttribute("rel").indexOf("style") != -1
		        //&& linkTags.getAttribute("title")) {
		     	  //if(linkTags.getAttribute("title") == "home") { // checks for specific 'home' stylesheet
				  	//if ( !(linkTags.disabled) ) { // if the 'home' stylesheet is not disabled
						//window.onload = addTriggers; // then execute the addTriggers function
						window.onload=function(e){
							addTriggers();
							// add other functions here.
							setStyle();	
						}
					//}
				  //}
		     //}
		//}

	}