var g_u67f0283151c8a_img = document.getElementById("u67f0283151c8a_slideshowImg"); var g_u67f0283151c8a_i = 0; var last_u67f0283151c8a_i = 0; g_u67f0283151c8a_img.setAttribute("src",u67f0283151c8a_images[0]); function u67f0283151c8a_swap() { while (g_u67f0283151c8a_i == last_u67f0283151c8a_i) { if (g_u67f0283151c8a_random) g_u67f0283151c8a_i = Math.floor(Math.random() * (u67f0283151c8a_images.length-1)+.5); else { g_u67f0283151c8a_i++; if (g_u67f0283151c8a_i >= u67f0283151c8a_images.length) g_u67f0283151c8a_i = 0; } } last_u67f0283151c8a_i = g_u67f0283151c8a_i; g_u67f0283151c8a_img.setAttribute("src",u67f0283151c8a_images[g_u67f0283151c8a_i]); setTimeout("u67f0283151c8a_swap()",g_u67f0283151c8a_delay); } if (u67f0283151c8a_images.length > 1) { if (g_u67f0283151c8a_random) { u67f0283151c8a_swap() } else { setTimeout("u67f0283151c8a_swap()",g_u67f0283151c8a_delay); } }