var g_u689af6a6c93ea_img = document.getElementById("u689af6a6c93ea_slideshowImg"); var g_u689af6a6c93ea_i = 0; var last_u689af6a6c93ea_i = 0; g_u689af6a6c93ea_img.setAttribute("src",u689af6a6c93ea_images[0]); function u689af6a6c93ea_swap() { while (g_u689af6a6c93ea_i == last_u689af6a6c93ea_i) { if (g_u689af6a6c93ea_random) g_u689af6a6c93ea_i = Math.floor(Math.random() * (u689af6a6c93ea_images.length-1)+.5); else { g_u689af6a6c93ea_i++; if (g_u689af6a6c93ea_i >= u689af6a6c93ea_images.length) g_u689af6a6c93ea_i = 0; } } last_u689af6a6c93ea_i = g_u689af6a6c93ea_i; g_u689af6a6c93ea_img.setAttribute("src",u689af6a6c93ea_images[g_u689af6a6c93ea_i]); setTimeout("u689af6a6c93ea_swap()",g_u689af6a6c93ea_delay); } if (u689af6a6c93ea_images.length > 1) { if (g_u689af6a6c93ea_random) { u689af6a6c93ea_swap() } else { setTimeout("u689af6a6c93ea_swap()",g_u689af6a6c93ea_delay); } }