var g_u689afc7d43e49_img = document.getElementById("u689afc7d43e49_slideshowImg"); var g_u689afc7d43e49_i = 0; var last_u689afc7d43e49_i = 0; g_u689afc7d43e49_img.setAttribute("src",u689afc7d43e49_images[0]); function u689afc7d43e49_swap() { while (g_u689afc7d43e49_i == last_u689afc7d43e49_i) { if (g_u689afc7d43e49_random) g_u689afc7d43e49_i = Math.floor(Math.random() * (u689afc7d43e49_images.length-1)+.5); else { g_u689afc7d43e49_i++; if (g_u689afc7d43e49_i >= u689afc7d43e49_images.length) g_u689afc7d43e49_i = 0; } } last_u689afc7d43e49_i = g_u689afc7d43e49_i; g_u689afc7d43e49_img.setAttribute("src",u689afc7d43e49_images[g_u689afc7d43e49_i]); setTimeout("u689afc7d43e49_swap()",g_u689afc7d43e49_delay); } if (u689afc7d43e49_images.length > 1) { if (g_u689afc7d43e49_random) { u689afc7d43e49_swap() } else { setTimeout("u689afc7d43e49_swap()",g_u689afc7d43e49_delay); } }