var g_u689afbcedd716_img = document.getElementById("u689afbcedd716_slideshowImg"); var g_u689afbcedd716_i = 0; var last_u689afbcedd716_i = 0; g_u689afbcedd716_img.setAttribute("src",u689afbcedd716_images[0]); function u689afbcedd716_swap() { while (g_u689afbcedd716_i == last_u689afbcedd716_i) { if (g_u689afbcedd716_random) g_u689afbcedd716_i = Math.floor(Math.random() * (u689afbcedd716_images.length-1)+.5); else { g_u689afbcedd716_i++; if (g_u689afbcedd716_i >= u689afbcedd716_images.length) g_u689afbcedd716_i = 0; } } last_u689afbcedd716_i = g_u689afbcedd716_i; g_u689afbcedd716_img.setAttribute("src",u689afbcedd716_images[g_u689afbcedd716_i]); setTimeout("u689afbcedd716_swap()",g_u689afbcedd716_delay); } if (u689afbcedd716_images.length > 1) { if (g_u689afbcedd716_random) { u689afbcedd716_swap() } else { setTimeout("u689afbcedd716_swap()",g_u689afbcedd716_delay); } }