function Systeaser() {
	this.position = 1;
	this.designdir = '';
	this.counter = 0;
	 
	this.changeposition = function(position) {
		 this.position = position;
	     document.getElementById('systeaser_1').style.visibility = 'hidden';
		 document.getElementById('systeaser_1').style.display = 'none';
		 document.getElementById('systeaser_2').style.visibility = 'hidden';
		 document.getElementById('systeaser_2').style.display = 'none';
		 document.getElementById('systeaser_3').style.visibility = 'hidden';
		 document.getElementById('systeaser_3').style.display = 'none';
		 document.getElementById('systeaser_'+position).style.visibility = 'visible';
		 document.getElementById('systeaser_'+position).style.display = 'block';
		 //document.getElementById('teaserbar').style.backgroundImage = 'url(\''+this.designdir+'teaser_tabs_'+position+'.gif\')';
		 //document.getElementById('teaser_tabs_1').className = 'teaser_tabs_'+position;*/
		 this.counter = 0;
	}
	
	this.autoswitch = function() {
		if(this.counter == 0) {
		    this.counter = 1;	
		} else if(this.counter == 1) {
		    this.counter = 2;	
		} else if(this.counter == 2) {
		    this.donext();
		} else if(this.counter == 3) {
		    this.donext();
		}
	    timeoutcode = "teaserdo.autoswitch()";
		setTimeout (timeoutcode, 2000);
	}
	
	this.donext = function() {
		this.counter = 0;
		var x = 0;
		if(this.position == 3) {
		    x = 1;	
		} else if(this.position == 2) {
		    x = 3;	
		} else if(this.position == 1) {
		    x = 2;	
		}
		this.changeposition(x);
	}
}
teaserdo = new Systeaser();
