Buzz = new function(){
	
	this._currentBuzz = null;
	this._buzz = new Array();

	this.addBuzz = function(t){
	
		this._buzz.push(document.getElementById(t));
		
		if(this._currentBuzz == null){
			this._currentBuzz = 0;		
		}
		
	}
	
	this.nextBuzz = function(){
		
		this._currentBuzz++;
		
		if(this._currentBuzz >= this._buzz.length){
			this._currentBuzz = 0;
		}
		
		this.updateBuzz();	
	
	}
	
	this.prevBuzz = function(){
		
		this._currentBuzz--;
		
		if(this._currentBuzz < 0){
			this._currentBuzz = this._buzz.length - 1;
		}
		
		this.updateBuzz();	

	}


	this.selectBuzz = function(selectBuzz){
		
		this._currentBuzz = selectBuzz ;
		
		if(this._currentBuzz >= this._buzz.length){
			this._currentBuzz = 0;
		}
				
		this.updateBuzz();	

	}
		


	this.updateBuzz = function(){
	
		for(var b = 0; b < this._buzz.length;b++){
					
			if(b == this._currentBuzz){
				this._buzz[b].style.display = "block";
			} else {
				this._buzz[b].style.display = "none";
			}
		
		}

	
	}
	

	
}

