Ext.onReady(function() {

	var anzahlBilder = 3;
	var zahl = Math.ceil(Math.random()*anzahlBilder);
	Ext.select('#bgHeader' + zahl).setVisible(true);
	
	setInterval(function(){
		Ext.select('#bgHeader' + zahl).fadeOut({duration: 1.5, easing: 'easeNone', useDisplay: true});
		zahl++;
		if (zahl > anzahlBilder)
			zahl = 1;
		Ext.select('#bgHeader' + zahl).fadeIn({duration: 3, easing: 'easeNone', useDisplay: true});
	}, 8000);
});
