var g_u689afac76c1bc_img = document.getElementById("u689afac76c1bc_slideshowImg"); var g_u689afac76c1bc_i = 0; var last_u689afac76c1bc_i = 0; g_u689afac76c1bc_img.setAttribute("src",u689afac76c1bc_images[0]); function u689afac76c1bc_swap() { while (g_u689afac76c1bc_i == last_u689afac76c1bc_i) { if (g_u689afac76c1bc_random) g_u689afac76c1bc_i = Math.floor(Math.random() * (u689afac76c1bc_images.length-1)+.5); else { g_u689afac76c1bc_i++; if (g_u689afac76c1bc_i >= u689afac76c1bc_images.length) g_u689afac76c1bc_i = 0; } } last_u689afac76c1bc_i = g_u689afac76c1bc_i; g_u689afac76c1bc_img.setAttribute("src",u689afac76c1bc_images[g_u689afac76c1bc_i]); setTimeout("u689afac76c1bc_swap()",g_u689afac76c1bc_delay); } if (u689afac76c1bc_images.length > 1) { if (g_u689afac76c1bc_random) { u689afac76c1bc_swap() } else { setTimeout("u689afac76c1bc_swap()",g_u689afac76c1bc_delay); } }