var g_u694faa2871109_img = document.getElementById("u694faa2871109_slideshowImg"); var g_u694faa2871109_i = 0; var last_u694faa2871109_i = 0; g_u694faa2871109_img.setAttribute("src",u694faa2871109_images[0]); function u694faa2871109_swap() { while (g_u694faa2871109_i == last_u694faa2871109_i) { if (g_u694faa2871109_random) g_u694faa2871109_i = Math.floor(Math.random() * (u694faa2871109_images.length-1)+.5); else { g_u694faa2871109_i++; if (g_u694faa2871109_i >= u694faa2871109_images.length) g_u694faa2871109_i = 0; } } last_u694faa2871109_i = g_u694faa2871109_i; g_u694faa2871109_img.setAttribute("src",u694faa2871109_images[g_u694faa2871109_i]); setTimeout("u694faa2871109_swap()",g_u694faa2871109_delay); } if (u694faa2871109_images.length > 1) { if (g_u694faa2871109_random) { u694faa2871109_swap() } else { setTimeout("u694faa2871109_swap()",g_u694faa2871109_delay); } }