var g_u692bf57fb1f6e_img = document.getElementById("u692bf57fb1f6e_slideshowImg"); var g_u692bf57fb1f6e_i = 0; var last_u692bf57fb1f6e_i = 0; g_u692bf57fb1f6e_img.setAttribute("src",u692bf57fb1f6e_images[0]); function u692bf57fb1f6e_swap() { while (g_u692bf57fb1f6e_i == last_u692bf57fb1f6e_i) { if (g_u692bf57fb1f6e_random) g_u692bf57fb1f6e_i = Math.floor(Math.random() * (u692bf57fb1f6e_images.length-1)+.5); else { g_u692bf57fb1f6e_i++; if (g_u692bf57fb1f6e_i >= u692bf57fb1f6e_images.length) g_u692bf57fb1f6e_i = 0; } } last_u692bf57fb1f6e_i = g_u692bf57fb1f6e_i; g_u692bf57fb1f6e_img.setAttribute("src",u692bf57fb1f6e_images[g_u692bf57fb1f6e_i]); setTimeout("u692bf57fb1f6e_swap()",g_u692bf57fb1f6e_delay); } if (u692bf57fb1f6e_images.length > 1) { if (g_u692bf57fb1f6e_random) { u692bf57fb1f6e_swap() } else { setTimeout("u692bf57fb1f6e_swap()",g_u692bf57fb1f6e_delay); } }