var g_u699319f831fea_img = document.getElementById("u699319f831fea_slideshowImg"); var g_u699319f831fea_i = 0; var last_u699319f831fea_i = 0; g_u699319f831fea_img.setAttribute("src",u699319f831fea_images[0]); function u699319f831fea_swap() { while (g_u699319f831fea_i == last_u699319f831fea_i) { if (g_u699319f831fea_random) g_u699319f831fea_i = Math.floor(Math.random() * (u699319f831fea_images.length-1)+.5); else { g_u699319f831fea_i++; if (g_u699319f831fea_i >= u699319f831fea_images.length) g_u699319f831fea_i = 0; } } last_u699319f831fea_i = g_u699319f831fea_i; g_u699319f831fea_img.setAttribute("src",u699319f831fea_images[g_u699319f831fea_i]); setTimeout("u699319f831fea_swap()",g_u699319f831fea_delay); } if (u699319f831fea_images.length > 1) { if (g_u699319f831fea_random) { u699319f831fea_swap() } else { setTimeout("u699319f831fea_swap()",g_u699319f831fea_delay); } }