var g_u68b228701b5e3_img = document.getElementById("u68b228701b5e3_slideshowImg"); var g_u68b228701b5e3_i = 0; var last_u68b228701b5e3_i = 0; g_u68b228701b5e3_img.setAttribute("src",u68b228701b5e3_images[0]); function u68b228701b5e3_swap() { while (g_u68b228701b5e3_i == last_u68b228701b5e3_i) { if (g_u68b228701b5e3_random) g_u68b228701b5e3_i = Math.floor(Math.random() * (u68b228701b5e3_images.length-1)+.5); else { g_u68b228701b5e3_i++; if (g_u68b228701b5e3_i >= u68b228701b5e3_images.length) g_u68b228701b5e3_i = 0; } } last_u68b228701b5e3_i = g_u68b228701b5e3_i; g_u68b228701b5e3_img.setAttribute("src",u68b228701b5e3_images[g_u68b228701b5e3_i]); setTimeout("u68b228701b5e3_swap()",g_u68b228701b5e3_delay); } if (u68b228701b5e3_images.length > 1) { if (g_u68b228701b5e3_random) { u68b228701b5e3_swap() } else { setTimeout("u68b228701b5e3_swap()",g_u68b228701b5e3_delay); } }