// (c)2009 gbtraffic.com

var thumbTimer;var staticThumb;var dynamicThumb;var thumbIndex;var tnumb;function startThumbAnimation(img)
{thumb=img;staticThumb=img.src;thumbIndex=0;dynamicThumb=img.src.substring(0,img.src.length-5);showNextThumb();}
function stopThumbAnimation()
{clearTimeout(thumbTimer);thumb.src=staticThumb;}
function showNextThumb()
{clearTimeout(thumbTimer);thumb.src=dynamicThumb+thumbIndex.toString()+'.jpg';var nextThumb=new Array();for(i=0;(i<2)&&((thumbIndex+i+1)<10);i++)
{nextThumb[thumbIndex]=new Image(184,136);nextThumb[thumbIndex].src=dynamicThumb+(thumbIndex+i+1).toString()+'.jpg';;}
thumbIndex++;if(thumbIndex==10)thumbIndex=0;thumbTimer=setTimeout(showNextThumb,500);}