var g_u6905cfc42a112_img = document.getElementById("u6905cfc42a112_slideshowImg"); var g_u6905cfc42a112_i = 0; var last_u6905cfc42a112_i = 0; g_u6905cfc42a112_img.setAttribute("src",u6905cfc42a112_images[0]); function u6905cfc42a112_swap() { while (g_u6905cfc42a112_i == last_u6905cfc42a112_i) { if (g_u6905cfc42a112_random) g_u6905cfc42a112_i = Math.floor(Math.random() * (u6905cfc42a112_images.length-1)+.5); else { g_u6905cfc42a112_i++; if (g_u6905cfc42a112_i >= u6905cfc42a112_images.length) g_u6905cfc42a112_i = 0; } } last_u6905cfc42a112_i = g_u6905cfc42a112_i; g_u6905cfc42a112_img.setAttribute("src",u6905cfc42a112_images[g_u6905cfc42a112_i]); setTimeout("u6905cfc42a112_swap()",g_u6905cfc42a112_delay); } if (u6905cfc42a112_images.length > 1) { if (g_u6905cfc42a112_random) { u6905cfc42a112_swap() } else { setTimeout("u6905cfc42a112_swap()",g_u6905cfc42a112_delay); } }