var g_u6984ce5a67039_img = document.getElementById("u6984ce5a67039_slideshowImg"); var g_u6984ce5a67039_i = 0; var last_u6984ce5a67039_i = 0; g_u6984ce5a67039_img.setAttribute("src",u6984ce5a67039_images[0]); function u6984ce5a67039_swap() { while (g_u6984ce5a67039_i == last_u6984ce5a67039_i) { if (g_u6984ce5a67039_random) g_u6984ce5a67039_i = Math.floor(Math.random() * (u6984ce5a67039_images.length-1)+.5); else { g_u6984ce5a67039_i++; if (g_u6984ce5a67039_i >= u6984ce5a67039_images.length) g_u6984ce5a67039_i = 0; } } last_u6984ce5a67039_i = g_u6984ce5a67039_i; g_u6984ce5a67039_img.setAttribute("src",u6984ce5a67039_images[g_u6984ce5a67039_i]); setTimeout("u6984ce5a67039_swap()",g_u6984ce5a67039_delay); } if (u6984ce5a67039_images.length > 1) { if (g_u6984ce5a67039_random) { u6984ce5a67039_swap() } else { setTimeout("u6984ce5a67039_swap()",g_u6984ce5a67039_delay); } }