/**
	Смена картинок на главной странице
*/
var bs = {
    banners:[],
    i:0,
    f:false,
    tl:5000,
    add:function(image){
        this.banners[this.banners.length] = image;
    },
    start:function(){
        this.f = true;
        setTimeout ("bs.showNext()", this.tl);
    },
    showNext:function(){
        if (!this.f) {
            this.i = 0;
            return;
        }
        this.i ++;
        if (this.banners.length <= this.i) this.i=0;
        var banner = this.banners[this.i];
        document.getElementById ("bannerImg").setAttribute("src", banner);
        setTimeout ("bs.showNext()", this.tl);
    },
    stop:function(){
        this.f = false;
    }
}

