var g_u689dfe5fbbc97_img = document.getElementById("u689dfe5fbbc97_slideshowImg"); var g_u689dfe5fbbc97_i = 0; var last_u689dfe5fbbc97_i = 0; g_u689dfe5fbbc97_img.setAttribute("src",u689dfe5fbbc97_images[0]); function u689dfe5fbbc97_swap() { while (g_u689dfe5fbbc97_i == last_u689dfe5fbbc97_i) { if (g_u689dfe5fbbc97_random) g_u689dfe5fbbc97_i = Math.floor(Math.random() * (u689dfe5fbbc97_images.length-1)+.5); else { g_u689dfe5fbbc97_i++; if (g_u689dfe5fbbc97_i >= u689dfe5fbbc97_images.length) g_u689dfe5fbbc97_i = 0; } } last_u689dfe5fbbc97_i = g_u689dfe5fbbc97_i; g_u689dfe5fbbc97_img.setAttribute("src",u689dfe5fbbc97_images[g_u689dfe5fbbc97_i]); document.getElementById('slide_name').innerHTML = u689dfe5fbbc97_names[g_u689dfe5fbbc97_i]; setTimeout("u689dfe5fbbc97_swap()",g_u689dfe5fbbc97_delay); } if (u689dfe5fbbc97_images.length > 1) { if (g_u689dfe5fbbc97_random) { u689dfe5fbbc97_swap() } else { setTimeout("u689dfe5fbbc97_swap()",g_u689dfe5fbbc97_delay); } }