var g_u68b228e84f422_img = document.getElementById("u68b228e84f422_slideshowImg"); var g_u68b228e84f422_i = 0; var last_u68b228e84f422_i = 0; g_u68b228e84f422_img.setAttribute("src",u68b228e84f422_images[0]); function u68b228e84f422_swap() { while (g_u68b228e84f422_i == last_u68b228e84f422_i) { if (g_u68b228e84f422_random) g_u68b228e84f422_i = Math.floor(Math.random() * (u68b228e84f422_images.length-1)+.5); else { g_u68b228e84f422_i++; if (g_u68b228e84f422_i >= u68b228e84f422_images.length) g_u68b228e84f422_i = 0; } } last_u68b228e84f422_i = g_u68b228e84f422_i; g_u68b228e84f422_img.setAttribute("src",u68b228e84f422_images[g_u68b228e84f422_i]); setTimeout("u68b228e84f422_swap()",g_u68b228e84f422_delay); } if (u68b228e84f422_images.length > 1) { if (g_u68b228e84f422_random) { u68b228e84f422_swap() } else { setTimeout("u68b228e84f422_swap()",g_u68b228e84f422_delay); } }