var g_u682aa56860270_img = document.getElementById("u682aa56860270_slideshowImg"); var g_u682aa56860270_i = 0; var last_u682aa56860270_i = 0; g_u682aa56860270_img.setAttribute("src",u682aa56860270_images[0]); function u682aa56860270_swap() { while (g_u682aa56860270_i == last_u682aa56860270_i) { if (g_u682aa56860270_random) g_u682aa56860270_i = Math.floor(Math.random() * (u682aa56860270_images.length-1)+.5); else { g_u682aa56860270_i++; if (g_u682aa56860270_i >= u682aa56860270_images.length) g_u682aa56860270_i = 0; } } last_u682aa56860270_i = g_u682aa56860270_i; g_u682aa56860270_img.setAttribute("src",u682aa56860270_images[g_u682aa56860270_i]); setTimeout("u682aa56860270_swap()",g_u682aa56860270_delay); } if (u682aa56860270_images.length > 1) { if (g_u682aa56860270_random) { u682aa56860270_swap() } else { setTimeout("u682aa56860270_swap()",g_u682aa56860270_delay); } }