var g_u6933bbf6c679a_img = document.getElementById("u6933bbf6c679a_slideshowImg"); var g_u6933bbf6c679a_i = 0; var last_u6933bbf6c679a_i = 0; g_u6933bbf6c679a_img.setAttribute("src",u6933bbf6c679a_images[0]); function u6933bbf6c679a_swap() { while (g_u6933bbf6c679a_i == last_u6933bbf6c679a_i) { if (g_u6933bbf6c679a_random) g_u6933bbf6c679a_i = Math.floor(Math.random() * (u6933bbf6c679a_images.length-1)+.5); else { g_u6933bbf6c679a_i++; if (g_u6933bbf6c679a_i >= u6933bbf6c679a_images.length) g_u6933bbf6c679a_i = 0; } } last_u6933bbf6c679a_i = g_u6933bbf6c679a_i; g_u6933bbf6c679a_img.setAttribute("src",u6933bbf6c679a_images[g_u6933bbf6c679a_i]); setTimeout("u6933bbf6c679a_swap()",g_u6933bbf6c679a_delay); } if (u6933bbf6c679a_images.length > 1) { if (g_u6933bbf6c679a_random) { u6933bbf6c679a_swap() } else { setTimeout("u6933bbf6c679a_swap()",g_u6933bbf6c679a_delay); } }