
/* Preload the images for a faster rollover */
if (document.images) {
	/* This represents the save image when active */
	var saveImg_on = new Image( );

	saveImg_on.src = 'images/site/menu/btn_01_On.gif';

	/* This represents the save image when inactive */
	var saveImg_off = new Image( );

	saveImg_off.src = 'images/site/menu/btn_01_Off.gif';
}

/**
 * This function, turnImageOn, is called when there is a mouseover event on the
 * affected element and sets the /src/ attribute to the "on" image.
 *
 * @param {String} p_id The id attribute for the affected image.
 */
function turnImageOn(p_id) {
	document.getElementById(p_id).src = 'images/site/menu/' + p_id + '_On.gif';
}

/**
 * This function, turnImageOff, is called when there is a mouseout event on the
 * affected element and sets the /src/ attribute to the "off" image.
 *
 * @param {String} p_id The id attribute for the affected image.
 */
function turnImageOff(p_id) {
	document.getElementById(p_id).src = 'images/site/menu/' + p_id + '_Off.gif';
}