function headerimgbgchanger() {
	var t = this;
	t._anz = 3;
	t._num = 0;
	t._nnum = 0;
	t._cdiv = null;
	t._imgs = [];
	t._ie = false;
	t._o = [];
	t._height = 93;

	this.constructor = function() {
		var t = this;
		t._cdiv = document.getElementById('headerani');
		t._num = t._shuffle();
		t._nnum = t._shuffle(t._num);
		var ua = navigator.userAgent;
		t._ie = ua.indexOf('MSIE') != -1 ? true : false;
		t._buildImages();
		window.setInterval(function(){t._move()}, 80);
	}

	this.setOpacity = function (i){
		if(this._o[i] > 1) {this._o[i] = 1;return this._imgs[i];}
		this._imgs[i].style.opacity = this._o[i];
		this._imgs[i].style.MozOpacity = this._o[i];
		this._imgs[i].style.KhtmlOpacity = this._o[i];
		if(this._ie == true){this._imgs[i].style.filter = "alpha(opacity=" + (this._o[i]*100) + ")";}
	};

	this._buildImages = function(){
		var t = this;
		for(var i = 0; i < t._anz;i++){
			t._imgs[i] = document.createElement('div');
			t._imgs[i].className='changer';
			t._imgs[i].style.backgroundPosition = '0 -' + (93 * i) +'px';
			t._o[i] = 0;
			if(i == t._num){
				t._imgs[i].style.display = 'block';
				t._o[i] = 1;
				t.setOpacity(i);
			}
			t._cdiv.appendChild(t._imgs[i]);
		}

	};

	this._move = function() {
		var t = this;
		var co = t._o[t._num];
		var no = t._o[t._nnum];

		co -=.01;
		no +=.01;

		t._imgs[t._nnum].style.display = "block";
		t._o[t._num] = co;
		t._o[t._nnum] = no;

		t.setOpacity(t._num);
		t.setOpacity(t._nnum);

		if(co <= 0) {
			t._imgs[t._num].style.display = "none";
			t._num = t._nnum;
			t._nnum = t._shuffle(t._num);
		}
	};

	this._shuffle = function(e) {
		if(this._anz < 3) {return 0}
		if(e == null) { e = -1;}
		var n = e;
		while(e == n){n = Math.floor(Math.random() * (this._anz));}
		return n;
	};

	this.constructor();
}
