var g_u686b2f94109c2_img = document.getElementById("u686b2f94109c2_slideshowImg"); var g_u686b2f94109c2_i = 0; var last_u686b2f94109c2_i = 0; g_u686b2f94109c2_img.setAttribute("src",u686b2f94109c2_images[0]); function u686b2f94109c2_swap() { while (g_u686b2f94109c2_i == last_u686b2f94109c2_i) { if (g_u686b2f94109c2_random) g_u686b2f94109c2_i = Math.floor(Math.random() * (u686b2f94109c2_images.length-1)+.5); else { g_u686b2f94109c2_i++; if (g_u686b2f94109c2_i >= u686b2f94109c2_images.length) g_u686b2f94109c2_i = 0; } } last_u686b2f94109c2_i = g_u686b2f94109c2_i; g_u686b2f94109c2_img.setAttribute("src",u686b2f94109c2_images[g_u686b2f94109c2_i]); setTimeout("u686b2f94109c2_swap()",g_u686b2f94109c2_delay); } if (u686b2f94109c2_images.length > 1) { if (g_u686b2f94109c2_random) { u686b2f94109c2_swap() } else { setTimeout("u686b2f94109c2_swap()",g_u686b2f94109c2_delay); } }