var g_u689afd94ab77e_img = document.getElementById("u689afd94ab77e_slideshowImg"); var g_u689afd94ab77e_i = 0; var last_u689afd94ab77e_i = 0; g_u689afd94ab77e_img.setAttribute("src",u689afd94ab77e_images[0]); function u689afd94ab77e_swap() { while (g_u689afd94ab77e_i == last_u689afd94ab77e_i) { if (g_u689afd94ab77e_random) g_u689afd94ab77e_i = Math.floor(Math.random() * (u689afd94ab77e_images.length-1)+.5); else { g_u689afd94ab77e_i++; if (g_u689afd94ab77e_i >= u689afd94ab77e_images.length) g_u689afd94ab77e_i = 0; } } last_u689afd94ab77e_i = g_u689afd94ab77e_i; g_u689afd94ab77e_img.setAttribute("src",u689afd94ab77e_images[g_u689afd94ab77e_i]); setTimeout("u689afd94ab77e_swap()",g_u689afd94ab77e_delay); } if (u689afd94ab77e_images.length > 1) { if (g_u689afd94ab77e_random) { u689afd94ab77e_swap() } else { setTimeout("u689afd94ab77e_swap()",g_u689afd94ab77e_delay); } }