var g_u692b47a4e044a_img = document.getElementById("u692b47a4e044a_slideshowImg"); var g_u692b47a4e044a_i = 0; var last_u692b47a4e044a_i = 0; g_u692b47a4e044a_img.setAttribute("src",u692b47a4e044a_images[0]); function u692b47a4e044a_swap() { while (g_u692b47a4e044a_i == last_u692b47a4e044a_i) { if (g_u692b47a4e044a_random) g_u692b47a4e044a_i = Math.floor(Math.random() * (u692b47a4e044a_images.length-1)+.5); else { g_u692b47a4e044a_i++; if (g_u692b47a4e044a_i >= u692b47a4e044a_images.length) g_u692b47a4e044a_i = 0; } } last_u692b47a4e044a_i = g_u692b47a4e044a_i; g_u692b47a4e044a_img.setAttribute("src",u692b47a4e044a_images[g_u692b47a4e044a_i]); document.getElementById('slide_name').innerHTML = u692b47a4e044a_names[g_u692b47a4e044a_i]; setTimeout("u692b47a4e044a_swap()",g_u692b47a4e044a_delay); } if (u692b47a4e044a_images.length > 1) { if (g_u692b47a4e044a_random) { u692b47a4e044a_swap() } else { setTimeout("u692b47a4e044a_swap()",g_u692b47a4e044a_delay); } }