var g_u681e011961cec_img = document.getElementById("u681e011961cec_slideshowImg"); var g_u681e011961cec_i = 0; var last_u681e011961cec_i = 0; g_u681e011961cec_img.setAttribute("src",u681e011961cec_images[0]); function u681e011961cec_swap() { while (g_u681e011961cec_i == last_u681e011961cec_i) { if (g_u681e011961cec_random) g_u681e011961cec_i = Math.floor(Math.random() * (u681e011961cec_images.length-1)+.5); else { g_u681e011961cec_i++; if (g_u681e011961cec_i >= u681e011961cec_images.length) g_u681e011961cec_i = 0; } } last_u681e011961cec_i = g_u681e011961cec_i; g_u681e011961cec_img.setAttribute("src",u681e011961cec_images[g_u681e011961cec_i]); setTimeout("u681e011961cec_swap()",g_u681e011961cec_delay); } if (u681e011961cec_images.length > 1) { if (g_u681e011961cec_random) { u681e011961cec_swap() } else { setTimeout("u681e011961cec_swap()",g_u681e011961cec_delay); } }