
var path_to_images = "images/products/";

var swapTimer;
// delay before restoring original image onmouseout
var restore_delay = 800; // milliseconds
function swapImage(num) {
	if (swapTimer) clearTimeout(swapTimer);
	document.swap.src = path_to_images + num;
}

function restoreImg() {
	swapTimer = setTimeout("swapImage("+0+")",restore_delay);
}