var g_u4c5266f29c438_img = document.getElementById("u4c5266f29c438_slideshowImg"); var g_u4c5266f29c438_i = 0; var last_u4c5266f29c438_i = 0; g_u4c5266f29c438_img.setAttribute("src",u4c5266f29c438_images[0]); function u4c5266f29c438_swap() { while (g_u4c5266f29c438_i == last_u4c5266f29c438_i) { if (g_u4c5266f29c438_random) g_u4c5266f29c438_i = Math.floor(Math.random() * (u4c5266f29c438_images.length-1)+.5); else { g_u4c5266f29c438_i++; if (g_u4c5266f29c438_i >= u4c5266f29c438_images.length) g_u4c5266f29c438_i = 0; } } last_u4c5266f29c438_i = g_u4c5266f29c438_i; g_u4c5266f29c438_img.setAttribute("src",u4c5266f29c438_images[g_u4c5266f29c438_i]); setTimeout("u4c5266f29c438_swap()",g_u4c5266f29c438_delay); } if (u4c5266f29c438_images.length > 1) { if (g_u4c5266f29c438_random) { u4c5266f29c438_swap() } else { setTimeout("u4c5266f29c438_swap()",g_u4c5266f29c438_delay); } }