var g_u6866662c403fc_img = document.getElementById("u6866662c403fc_slideshowImg"); var g_u6866662c403fc_i = 0; var last_u6866662c403fc_i = 0; g_u6866662c403fc_img.setAttribute("src",u6866662c403fc_images[0]); function u6866662c403fc_swap() { while (g_u6866662c403fc_i == last_u6866662c403fc_i) { if (g_u6866662c403fc_random) g_u6866662c403fc_i = Math.floor(Math.random() * (u6866662c403fc_images.length-1)+.5); else { g_u6866662c403fc_i++; if (g_u6866662c403fc_i >= u6866662c403fc_images.length) g_u6866662c403fc_i = 0; } } last_u6866662c403fc_i = g_u6866662c403fc_i; g_u6866662c403fc_img.setAttribute("src",u6866662c403fc_images[g_u6866662c403fc_i]); setTimeout("u6866662c403fc_swap()",g_u6866662c403fc_delay); } if (u6866662c403fc_images.length > 1) { if (g_u6866662c403fc_random) { u6866662c403fc_swap() } else { setTimeout("u6866662c403fc_swap()",g_u6866662c403fc_delay); } }