var g_u692afe099ecbb_img = document.getElementById("u692afe099ecbb_slideshowImg"); var g_u692afe099ecbb_i = 0; var last_u692afe099ecbb_i = 0; g_u692afe099ecbb_img.setAttribute("src",u692afe099ecbb_images[0]); function u692afe099ecbb_swap() { while (g_u692afe099ecbb_i == last_u692afe099ecbb_i) { if (g_u692afe099ecbb_random) g_u692afe099ecbb_i = Math.floor(Math.random() * (u692afe099ecbb_images.length-1)+.5); else { g_u692afe099ecbb_i++; if (g_u692afe099ecbb_i >= u692afe099ecbb_images.length) g_u692afe099ecbb_i = 0; } } last_u692afe099ecbb_i = g_u692afe099ecbb_i; g_u692afe099ecbb_img.setAttribute("src",u692afe099ecbb_images[g_u692afe099ecbb_i]); setTimeout("u692afe099ecbb_swap()",g_u692afe099ecbb_delay); } if (u692afe099ecbb_images.length > 1) { if (g_u692afe099ecbb_random) { u692afe099ecbb_swap() } else { setTimeout("u692afe099ecbb_swap()",g_u692afe099ecbb_delay); } }