// put images to preload in this array

// NOTE
// The experience items come out of the database sorted by the item name.
// If changes are made to the database that change this order,
//  then you need to change the order here.
//
var preload_list = new Array("composite.jpg", "compressor.jpg", "export.jpg", "pipeline.jpg", "production.jpg", "pump.jpg");
var path_to_images = "../images_experience/";

// preload (change path to images if necessary)
if (document.images)
	{
	var image_list = new Array();
	for (var preload_counter=0; preload_counter<preload_list.length; preload_counter++)
		{
  		image_list[preload_counter] = new Image(); 
		image_list[preload_counter].src = path_to_images + preload_list[preload_counter];	
  		}
	}

var swapTimer;
// delay before restoring original image onmouseout
var restore_delay = 800; // milliseconds
function swapImage(num)
	{
	if (swapTimer) clearTimeout(swapTimer);
	if (document.images)
		{
		document.swap.src = image_list[num].src;
		}
	}

function restoreImg()
	{
	swapTimer = setTimeout("swapImage("+0+")",restore_delay);
	}