var g_u68b4756b95423_img = document.getElementById("u68b4756b95423_slideshowImg"); var g_u68b4756b95423_i = 0; var last_u68b4756b95423_i = 0; g_u68b4756b95423_img.setAttribute("src",u68b4756b95423_images[0]); function u68b4756b95423_swap() { while (g_u68b4756b95423_i == last_u68b4756b95423_i) { if (g_u68b4756b95423_random) g_u68b4756b95423_i = Math.floor(Math.random() * (u68b4756b95423_images.length-1)+.5); else { g_u68b4756b95423_i++; if (g_u68b4756b95423_i >= u68b4756b95423_images.length) g_u68b4756b95423_i = 0; } } last_u68b4756b95423_i = g_u68b4756b95423_i; g_u68b4756b95423_img.setAttribute("src",u68b4756b95423_images[g_u68b4756b95423_i]); document.getElementById('slide_name').innerHTML = u68b4756b95423_names[g_u68b4756b95423_i]; setTimeout("u68b4756b95423_swap()",g_u68b4756b95423_delay); } if (u68b4756b95423_images.length > 1) { if (g_u68b4756b95423_random) { u68b4756b95423_swap() } else { setTimeout("u68b4756b95423_swap()",g_u68b4756b95423_delay); } }