var g_u67ecf821b3040_img = document.getElementById("u67ecf821b3040_slideshowImg"); var g_u67ecf821b3040_i = 0; var last_u67ecf821b3040_i = 0; g_u67ecf821b3040_img.setAttribute("src",u67ecf821b3040_images[0]); function u67ecf821b3040_swap() { while (g_u67ecf821b3040_i == last_u67ecf821b3040_i) { if (g_u67ecf821b3040_random) g_u67ecf821b3040_i = Math.floor(Math.random() * (u67ecf821b3040_images.length-1)+.5); else { g_u67ecf821b3040_i++; if (g_u67ecf821b3040_i >= u67ecf821b3040_images.length) g_u67ecf821b3040_i = 0; } } last_u67ecf821b3040_i = g_u67ecf821b3040_i; g_u67ecf821b3040_img.setAttribute("src",u67ecf821b3040_images[g_u67ecf821b3040_i]); document.getElementById('slide_name').innerHTML = u67ecf821b3040_names[g_u67ecf821b3040_i]; setTimeout("u67ecf821b3040_swap()",g_u67ecf821b3040_delay); } if (u67ecf821b3040_images.length > 1) { if (g_u67ecf821b3040_random) { u67ecf821b3040_swap() } else { setTimeout("u67ecf821b3040_swap()",g_u67ecf821b3040_delay); } }