// -----------------------------------------------------------------------------
//   SwapOn/SwapOff for plain mouseovers
// -----------------------------------------------------------------------------

function swapOn( swapMe ) {  
	if ( document.images ) {
		document[ swapMe ].src = eval( swapMe + "on.src" );
	}
}

function swapOff( swapMe ) {  
	if ( document.images ) {
		document[ swapMe ].src = eval( swapMe + "off.src" );
	}
}

// -----------------------------------------------------------------------------
//   SwapOn/SwapOff for red arrows
// -----------------------------------------------------------------------------

function arrowOn( swapMe, color, direction ) {  
	var arrow_r_l = new Image(); arrow_r_l.src = "/images/arrow_red_l.gif";
	var arrow_r_r = new Image(); arrow_r_r.src = "/images/arrow_red_r.gif";
	var arrow_g_l = new Image(); arrow_g_l.src = "/images/arrow_grey_l.gif";
	var arrow_g_r = new Image(); arrow_g_r.src = "/images/arrow_grey_r.gif";
	
	if (document.images) {
		document[ swapMe ].src = eval( "arrow_" + color + "_" + direction + ".src" );
	}
}

function arrowOff( swapMe ) {  
	if (document.images) {
		document[ swapMe ].src = "/images/spacer.gif";
	}
}
