var janimations = new Array();
var jan_images = new Array(
"http://image.weather.com/looper/archive/caribsat_277x187/1L.jpg",
"http://image.weather.com/looper/archive/caribsat_277x187/2L.jpg",
"http://image.weather.com/looper/archive/caribsat_277x187/3L.jpg",
"http://image.weather.com/looper/archive/caribsat_277x187/4L.jpg",
"http://image.weather.com/looper/archive/caribsat_277x187/5L.jpg");
var jan_images_objects = new Array(jan_images.length);
var frame_position = new Array(0);


for(var i = 0; i < jan_images.length; i++){
	jan_images_objects[i] = new Image();
	jan_images_objects[i].src = jan_images[i];
}


function register_for_animation(item_index, item){

	janimations[item_index]=item;
	run_animation(item_index);
}
function run_animation(item_index){
	frame_position[item_index] = frame_position[item_index]<jan_images.length?frame_position[item_index]:0;
	janimations[item_index].src = jan_images[frame_position[item_index]];
	frame_position[item_index]++;
	Id = window.setTimeout("run_animation("+item_index+");",1000);
}
