var g_u6984ce201a405_img = document.getElementById("u6984ce201a405_slideshowImg"); var g_u6984ce201a405_i = 0; var last_u6984ce201a405_i = 0; g_u6984ce201a405_img.setAttribute("src",u6984ce201a405_images[0]); function u6984ce201a405_swap() { while (g_u6984ce201a405_i == last_u6984ce201a405_i) { if (g_u6984ce201a405_random) g_u6984ce201a405_i = Math.floor(Math.random() * (u6984ce201a405_images.length-1)+.5); else { g_u6984ce201a405_i++; if (g_u6984ce201a405_i >= u6984ce201a405_images.length) g_u6984ce201a405_i = 0; } } last_u6984ce201a405_i = g_u6984ce201a405_i; g_u6984ce201a405_img.setAttribute("src",u6984ce201a405_images[g_u6984ce201a405_i]); setTimeout("u6984ce201a405_swap()",g_u6984ce201a405_delay); } if (u6984ce201a405_images.length > 1) { if (g_u6984ce201a405_random) { u6984ce201a405_swap() } else { setTimeout("u6984ce201a405_swap()",g_u6984ce201a405_delay); } }