var g_u686b2fc1053a4_img = document.getElementById("u686b2fc1053a4_slideshowImg"); var g_u686b2fc1053a4_i = 0; var last_u686b2fc1053a4_i = 0; g_u686b2fc1053a4_img.setAttribute("src",u686b2fc1053a4_images[0]); function u686b2fc1053a4_swap() { while (g_u686b2fc1053a4_i == last_u686b2fc1053a4_i) { if (g_u686b2fc1053a4_random) g_u686b2fc1053a4_i = Math.floor(Math.random() * (u686b2fc1053a4_images.length-1)+.5); else { g_u686b2fc1053a4_i++; if (g_u686b2fc1053a4_i >= u686b2fc1053a4_images.length) g_u686b2fc1053a4_i = 0; } } last_u686b2fc1053a4_i = g_u686b2fc1053a4_i; g_u686b2fc1053a4_img.setAttribute("src",u686b2fc1053a4_images[g_u686b2fc1053a4_i]); setTimeout("u686b2fc1053a4_swap()",g_u686b2fc1053a4_delay); } if (u686b2fc1053a4_images.length > 1) { if (g_u686b2fc1053a4_random) { u686b2fc1053a4_swap() } else { setTimeout("u686b2fc1053a4_swap()",g_u686b2fc1053a4_delay); } }