﻿var currentCount=1;
    var count=3;
    var lastCount=null;
    var time=3;
    changeImg();
    function changeImg(){
    setFocus(currentCount);
    setTimeout('changeImg()',time*1000);
    }
    function setFocus(i){
    if(i>count){i=1;currentCount=1;}
    if(lastCount!=null){
    $("#flaPic"+lastCount).hide();
    }
    $("#flaPic"+i).show();
    $("#numtext").html(i+"/3");
    lastCount=i;
    currentCount++;
    }