	window.addEvent('domready', function() {
		$('h2').set('opacity', 0);
		var imgs = imgstring.split("|");
		var imgbank = new Asset.images(imgs);
		var f1 = new Fx.Tween($('h1'), {'duration': 2000});
		var f2 = new Fx.Tween($('h2'), {'duration': 2000});
		var count = 1;
		f1.addEvent('complete', function() {
			if($('h1').get('opacity') == 0) {
				$('h1i').setProperties({'src': imgs[count]});
			}
		});
		f2.addEvent('complete', function() {
			if($('h2').get('opacity') == 0) {
				$('h2i').setProperties({'src': imgs[count]});
			}
		});
		
		$('h1i').setProperties({'src': imgs[0]});
		$('h2i').setProperties({'src': imgs[1]});
		
		function swap() {
			f1.start('opacity', ($('h1').get('opacity') == 0 ? 1 : 0));
			f2.start('opacity', ($('h2').get('opacity') == 0 ? 1 : 0));
			count = (count < imgs.length -1 ? count+1 : 0);
		}
		swap.periodical(5000);
	});
