var g_u66f14f5356a69_img = document.getElementById("u66f14f5356a69_slideshowImg"); var g_u66f14f5356a69_i = 0; var last_u66f14f5356a69_i = 0; g_u66f14f5356a69_img.setAttribute("src",u66f14f5356a69_images[0]); function u66f14f5356a69_swap() { while (g_u66f14f5356a69_i == last_u66f14f5356a69_i) { if (g_u66f14f5356a69_random) g_u66f14f5356a69_i = Math.floor(Math.random() * (u66f14f5356a69_images.length-1)+.5); else { g_u66f14f5356a69_i++; if (g_u66f14f5356a69_i >= u66f14f5356a69_images.length) g_u66f14f5356a69_i = 0; } } last_u66f14f5356a69_i = g_u66f14f5356a69_i; g_u66f14f5356a69_img.setAttribute("src",u66f14f5356a69_images[g_u66f14f5356a69_i]); setTimeout("u66f14f5356a69_swap()",g_u66f14f5356a69_delay); } if (u66f14f5356a69_images.length > 1) { if (g_u66f14f5356a69_random) { u66f14f5356a69_swap() } else { setTimeout("u66f14f5356a69_swap()",g_u66f14f5356a69_delay); } }