var g_u681dfa8f9f1bc_img = document.getElementById("u681dfa8f9f1bc_slideshowImg"); var g_u681dfa8f9f1bc_i = 0; var last_u681dfa8f9f1bc_i = 0; g_u681dfa8f9f1bc_img.setAttribute("src",u681dfa8f9f1bc_images[0]); function u681dfa8f9f1bc_swap() { while (g_u681dfa8f9f1bc_i == last_u681dfa8f9f1bc_i) { if (g_u681dfa8f9f1bc_random) g_u681dfa8f9f1bc_i = Math.floor(Math.random() * (u681dfa8f9f1bc_images.length-1)+.5); else { g_u681dfa8f9f1bc_i++; if (g_u681dfa8f9f1bc_i >= u681dfa8f9f1bc_images.length) g_u681dfa8f9f1bc_i = 0; } } last_u681dfa8f9f1bc_i = g_u681dfa8f9f1bc_i; g_u681dfa8f9f1bc_img.setAttribute("src",u681dfa8f9f1bc_images[g_u681dfa8f9f1bc_i]); setTimeout("u681dfa8f9f1bc_swap()",g_u681dfa8f9f1bc_delay); } if (u681dfa8f9f1bc_images.length > 1) { if (g_u681dfa8f9f1bc_random) { u681dfa8f9f1bc_swap() } else { setTimeout("u681dfa8f9f1bc_swap()",g_u681dfa8f9f1bc_delay); } }