﻿var currIndex = 0;
var picTimeout = 5000;
function ShowPics()
{
    if( imgs != null )
    {
        if( currIndex >= imgs.length )
            currIndex = 0;
            
        
        document.getElementById( 'picview' ).src = dir + imgs[currIndex];
        currIndex++;
        window.setTimeout('ShowPics()', picTimeout);
    }
}