var g_u6948bdaf6e89d_img = document.getElementById("u6948bdaf6e89d_slideshowImg"); var g_u6948bdaf6e89d_i = 0; var last_u6948bdaf6e89d_i = 0; g_u6948bdaf6e89d_img.setAttribute("src",u6948bdaf6e89d_images[0]); function u6948bdaf6e89d_swap() { while (g_u6948bdaf6e89d_i == last_u6948bdaf6e89d_i) { if (g_u6948bdaf6e89d_random) g_u6948bdaf6e89d_i = Math.floor(Math.random() * (u6948bdaf6e89d_images.length-1)+.5); else { g_u6948bdaf6e89d_i++; if (g_u6948bdaf6e89d_i >= u6948bdaf6e89d_images.length) g_u6948bdaf6e89d_i = 0; } } last_u6948bdaf6e89d_i = g_u6948bdaf6e89d_i; g_u6948bdaf6e89d_img.setAttribute("src",u6948bdaf6e89d_images[g_u6948bdaf6e89d_i]); setTimeout("u6948bdaf6e89d_swap()",g_u6948bdaf6e89d_delay); } if (u6948bdaf6e89d_images.length > 1) { if (g_u6948bdaf6e89d_random) { u6948bdaf6e89d_swap() } else { setTimeout("u6948bdaf6e89d_swap()",g_u6948bdaf6e89d_delay); } }