var g_u67ee1f53c71a7_img = document.getElementById("u67ee1f53c71a7_slideshowImg"); var g_u67ee1f53c71a7_i = 0; var last_u67ee1f53c71a7_i = 0; g_u67ee1f53c71a7_img.setAttribute("src",u67ee1f53c71a7_images[0]); function u67ee1f53c71a7_swap() { while (g_u67ee1f53c71a7_i == last_u67ee1f53c71a7_i) { if (g_u67ee1f53c71a7_random) g_u67ee1f53c71a7_i = Math.floor(Math.random() * (u67ee1f53c71a7_images.length-1)+.5); else { g_u67ee1f53c71a7_i++; if (g_u67ee1f53c71a7_i >= u67ee1f53c71a7_images.length) g_u67ee1f53c71a7_i = 0; } } last_u67ee1f53c71a7_i = g_u67ee1f53c71a7_i; g_u67ee1f53c71a7_img.setAttribute("src",u67ee1f53c71a7_images[g_u67ee1f53c71a7_i]); setTimeout("u67ee1f53c71a7_swap()",g_u67ee1f53c71a7_delay); } if (u67ee1f53c71a7_images.length > 1) { if (g_u67ee1f53c71a7_random) { u67ee1f53c71a7_swap() } else { setTimeout("u67ee1f53c71a7_swap()",g_u67ee1f53c71a7_delay); } }