var g_u689b108e858b4_img = document.getElementById("u689b108e858b4_slideshowImg"); var g_u689b108e858b4_i = 0; var last_u689b108e858b4_i = 0; g_u689b108e858b4_img.setAttribute("src",u689b108e858b4_images[0]); function u689b108e858b4_swap() { while (g_u689b108e858b4_i == last_u689b108e858b4_i) { if (g_u689b108e858b4_random) g_u689b108e858b4_i = Math.floor(Math.random() * (u689b108e858b4_images.length-1)+.5); else { g_u689b108e858b4_i++; if (g_u689b108e858b4_i >= u689b108e858b4_images.length) g_u689b108e858b4_i = 0; } } last_u689b108e858b4_i = g_u689b108e858b4_i; g_u689b108e858b4_img.setAttribute("src",u689b108e858b4_images[g_u689b108e858b4_i]); setTimeout("u689b108e858b4_swap()",g_u689b108e858b4_delay); } if (u689b108e858b4_images.length > 1) { if (g_u689b108e858b4_random) { u689b108e858b4_swap() } else { setTimeout("u689b108e858b4_swap()",g_u689b108e858b4_delay); } }