var g_u67f062d995c1e_img = document.getElementById("u67f062d995c1e_slideshowImg"); var g_u67f062d995c1e_i = 0; var last_u67f062d995c1e_i = 0; g_u67f062d995c1e_img.setAttribute("src",u67f062d995c1e_images[0]); function u67f062d995c1e_swap() { while (g_u67f062d995c1e_i == last_u67f062d995c1e_i) { if (g_u67f062d995c1e_random) g_u67f062d995c1e_i = Math.floor(Math.random() * (u67f062d995c1e_images.length-1)+.5); else { g_u67f062d995c1e_i++; if (g_u67f062d995c1e_i >= u67f062d995c1e_images.length) g_u67f062d995c1e_i = 0; } } last_u67f062d995c1e_i = g_u67f062d995c1e_i; g_u67f062d995c1e_img.setAttribute("src",u67f062d995c1e_images[g_u67f062d995c1e_i]); setTimeout("u67f062d995c1e_swap()",g_u67f062d995c1e_delay); } if (u67f062d995c1e_images.length > 1) { if (g_u67f062d995c1e_random) { u67f062d995c1e_swap() } else { setTimeout("u67f062d995c1e_swap()",g_u67f062d995c1e_delay); } }