var g_u67ee0ceb626ca_img = document.getElementById("u67ee0ceb626ca_slideshowImg"); var g_u67ee0ceb626ca_i = 0; var last_u67ee0ceb626ca_i = 0; g_u67ee0ceb626ca_img.setAttribute("src",u67ee0ceb626ca_images[0]); function u67ee0ceb626ca_swap() { while (g_u67ee0ceb626ca_i == last_u67ee0ceb626ca_i) { if (g_u67ee0ceb626ca_random) g_u67ee0ceb626ca_i = Math.floor(Math.random() * (u67ee0ceb626ca_images.length-1)+.5); else { g_u67ee0ceb626ca_i++; if (g_u67ee0ceb626ca_i >= u67ee0ceb626ca_images.length) g_u67ee0ceb626ca_i = 0; } } last_u67ee0ceb626ca_i = g_u67ee0ceb626ca_i; g_u67ee0ceb626ca_img.setAttribute("src",u67ee0ceb626ca_images[g_u67ee0ceb626ca_i]); setTimeout("u67ee0ceb626ca_swap()",g_u67ee0ceb626ca_delay); } if (u67ee0ceb626ca_images.length > 1) { if (g_u67ee0ceb626ca_random) { u67ee0ceb626ca_swap() } else { setTimeout("u67ee0ceb626ca_swap()",g_u67ee0ceb626ca_delay); } }