var g_u6866f31aa0890_img = document.getElementById("u6866f31aa0890_slideshowImg"); var g_u6866f31aa0890_i = 0; var last_u6866f31aa0890_i = 0; g_u6866f31aa0890_img.setAttribute("src",u6866f31aa0890_images[0]); function u6866f31aa0890_swap() { while (g_u6866f31aa0890_i == last_u6866f31aa0890_i) { if (g_u6866f31aa0890_random) g_u6866f31aa0890_i = Math.floor(Math.random() * (u6866f31aa0890_images.length-1)+.5); else { g_u6866f31aa0890_i++; if (g_u6866f31aa0890_i >= u6866f31aa0890_images.length) g_u6866f31aa0890_i = 0; } } last_u6866f31aa0890_i = g_u6866f31aa0890_i; g_u6866f31aa0890_img.setAttribute("src",u6866f31aa0890_images[g_u6866f31aa0890_i]); setTimeout("u6866f31aa0890_swap()",g_u6866f31aa0890_delay); } if (u6866f31aa0890_images.length > 1) { if (g_u6866f31aa0890_random) { u6866f31aa0890_swap() } else { setTimeout("u6866f31aa0890_swap()",g_u6866f31aa0890_delay); } }