var g_u686ce53a36145_img = document.getElementById("u686ce53a36145_slideshowImg"); var g_u686ce53a36145_i = 0; var last_u686ce53a36145_i = 0; g_u686ce53a36145_img.setAttribute("src",u686ce53a36145_images[0]); function u686ce53a36145_swap() { while (g_u686ce53a36145_i == last_u686ce53a36145_i) { if (g_u686ce53a36145_random) g_u686ce53a36145_i = Math.floor(Math.random() * (u686ce53a36145_images.length-1)+.5); else { g_u686ce53a36145_i++; if (g_u686ce53a36145_i >= u686ce53a36145_images.length) g_u686ce53a36145_i = 0; } } last_u686ce53a36145_i = g_u686ce53a36145_i; g_u686ce53a36145_img.setAttribute("src",u686ce53a36145_images[g_u686ce53a36145_i]); setTimeout("u686ce53a36145_swap()",g_u686ce53a36145_delay); } if (u686ce53a36145_images.length > 1) { if (g_u686ce53a36145_random) { u686ce53a36145_swap() } else { setTimeout("u686ce53a36145_swap()",g_u686ce53a36145_delay); } }