var g_u67ef372c4c0eb_img = document.getElementById("u67ef372c4c0eb_slideshowImg"); var g_u67ef372c4c0eb_i = 0; var last_u67ef372c4c0eb_i = 0; g_u67ef372c4c0eb_img.setAttribute("src",u67ef372c4c0eb_images[0]); function u67ef372c4c0eb_swap() { while (g_u67ef372c4c0eb_i == last_u67ef372c4c0eb_i) { if (g_u67ef372c4c0eb_random) g_u67ef372c4c0eb_i = Math.floor(Math.random() * (u67ef372c4c0eb_images.length-1)+.5); else { g_u67ef372c4c0eb_i++; if (g_u67ef372c4c0eb_i >= u67ef372c4c0eb_images.length) g_u67ef372c4c0eb_i = 0; } } last_u67ef372c4c0eb_i = g_u67ef372c4c0eb_i; g_u67ef372c4c0eb_img.setAttribute("src",u67ef372c4c0eb_images[g_u67ef372c4c0eb_i]); setTimeout("u67ef372c4c0eb_swap()",g_u67ef372c4c0eb_delay); } if (u67ef372c4c0eb_images.length > 1) { if (g_u67ef372c4c0eb_random) { u67ef372c4c0eb_swap() } else { setTimeout("u67ef372c4c0eb_swap()",g_u67ef372c4c0eb_delay); } }