var g_u68b24c15accf4_img = document.getElementById("u68b24c15accf4_slideshowImg"); var g_u68b24c15accf4_i = 0; var last_u68b24c15accf4_i = 0; g_u68b24c15accf4_img.setAttribute("src",u68b24c15accf4_images[0]); function u68b24c15accf4_swap() { while (g_u68b24c15accf4_i == last_u68b24c15accf4_i) { if (g_u68b24c15accf4_random) g_u68b24c15accf4_i = Math.floor(Math.random() * (u68b24c15accf4_images.length-1)+.5); else { g_u68b24c15accf4_i++; if (g_u68b24c15accf4_i >= u68b24c15accf4_images.length) g_u68b24c15accf4_i = 0; } } last_u68b24c15accf4_i = g_u68b24c15accf4_i; g_u68b24c15accf4_img.setAttribute("src",u68b24c15accf4_images[g_u68b24c15accf4_i]); setTimeout("u68b24c15accf4_swap()",g_u68b24c15accf4_delay); } if (u68b24c15accf4_images.length > 1) { if (g_u68b24c15accf4_random) { u68b24c15accf4_swap() } else { setTimeout("u68b24c15accf4_swap()",g_u68b24c15accf4_delay); } }