var g_u66f1502a576a2_img = document.getElementById("u66f1502a576a2_slideshowImg"); var g_u66f1502a576a2_i = 0; var last_u66f1502a576a2_i = 0; g_u66f1502a576a2_img.setAttribute("src",u66f1502a576a2_images[0]); function u66f1502a576a2_swap() { while (g_u66f1502a576a2_i == last_u66f1502a576a2_i) { if (g_u66f1502a576a2_random) g_u66f1502a576a2_i = Math.floor(Math.random() * (u66f1502a576a2_images.length-1)+.5); else { g_u66f1502a576a2_i++; if (g_u66f1502a576a2_i >= u66f1502a576a2_images.length) g_u66f1502a576a2_i = 0; } } last_u66f1502a576a2_i = g_u66f1502a576a2_i; g_u66f1502a576a2_img.setAttribute("src",u66f1502a576a2_images[g_u66f1502a576a2_i]); setTimeout("u66f1502a576a2_swap()",g_u66f1502a576a2_delay); } if (u66f1502a576a2_images.length > 1) { if (g_u66f1502a576a2_random) { u66f1502a576a2_swap() } else { setTimeout("u66f1502a576a2_swap()",g_u66f1502a576a2_delay); } }