var g_u689b0d16f2283_img = document.getElementById("u689b0d16f2283_slideshowImg"); var g_u689b0d16f2283_i = 0; var last_u689b0d16f2283_i = 0; g_u689b0d16f2283_img.setAttribute("src",u689b0d16f2283_images[0]); function u689b0d16f2283_swap() { while (g_u689b0d16f2283_i == last_u689b0d16f2283_i) { if (g_u689b0d16f2283_random) g_u689b0d16f2283_i = Math.floor(Math.random() * (u689b0d16f2283_images.length-1)+.5); else { g_u689b0d16f2283_i++; if (g_u689b0d16f2283_i >= u689b0d16f2283_images.length) g_u689b0d16f2283_i = 0; } } last_u689b0d16f2283_i = g_u689b0d16f2283_i; g_u689b0d16f2283_img.setAttribute("src",u689b0d16f2283_images[g_u689b0d16f2283_i]); setTimeout("u689b0d16f2283_swap()",g_u689b0d16f2283_delay); } if (u689b0d16f2283_images.length > 1) { if (g_u689b0d16f2283_random) { u689b0d16f2283_swap() } else { setTimeout("u689b0d16f2283_swap()",g_u689b0d16f2283_delay); } }