/*
 * These functions are for controlling the drop down list of links, this batch
 * is for the services page.
 ****************************************************************************
 **************************************************************************** */

/* this is and integral part of the drop down list, w/o it there will be an
 * ugly and very noticable delay with the drop down list, the user will have to
 * mouseover the main link and mouseout then mouseover again before the list
 * will finally appear.
 */
var service_timer = null;
/*
 * This will show the services table
 */
function service_displayMainTable(){
	var table = document.getElementById("service_mainTable");
	// clear the service timer
	window.clearTimeout(service_timer);
	// set the table to be visible
	if ( table != null ) table.style.visibility = "visible";
}
/*
 * This will hide the services table
 */
function service_hideMainTable( hide ){
	var table = document.getElementById("service_mainTable");
	// set the table to be hidden
	if ( table != null )	{
		// if hide is true we want to hide the table
		if ( hide == true )		{
			// clear the service timer
			window.clearTimeout(service_timer);
			// hide the table
			table.style.visibility = "hidden";
		}
		// otherwise set the service timer
		else{
			// set the service timer
			service_timer = window.setTimeout('service_hideMainTable(true)', 350);
		}
	}
}
/*
 * These functions just flip the style of the drop list options
 */
function selectServiceOption( row ) { if ( row != null ) row.className = "service_menuOn"; }
function deselectServiceOption( row ) { if ( row != null ) row.className = "service_menuOff"; }

