// JavaScript Document

var img_cycle = new Array("000", "111", "222");
var count = 0;

function mouse_out(img_id, img_path){
	clearInterval(img_interval);
	document.getElementById(img_id).src = img_path;	
}


function mouse_over(path, img_num){
	img_location = document.getElementById("img_" + img_num); //get the images location

	img_cycle[0] = path + "/1_" + img_num +".jpg";
	img_cycle[1] = path + "/2_" + img_num +".jpg";
	img_cycle[2] = path + "/3_" + img_num +".jpg";
	img_interval = setInterval("img_change()", 500); 
}

function img_change() { 
	count++;
	if(count > 2) count = 0;
	img_location.src = img_cycle[count];
}


