			var index = 1;
			var Pic = new Array();
			Pic[0] = '/img/home/0.jpg'
			Pic[1] = '/img/home/1.jpg'
			Pic[2] = '/img/home/2.jpg'
			Pic[3] = '/img/home/3.jpg'
			Pic[4] = '/img/home/4.jpg'
			Pic[5] = '/img/home/5.jpg'
			Pic[6] = '/img/home/6.jpg'
			Pic[7] = '/img/home/7.jpg'
			Pic[8] = '/img/home/8.jpg'
			Pic[9] = '/img/home/9.jpg'
			Pic[10] = '/img/home/10.jpg'
			Pic[11] = '/img/home/11.jpg'
			Pic[12] = '/img/home/12.jpg'
			
			function startup() { 
				new PeriodicalExecuter(doTheFadeMan, 5) // change image every 5 seconds 
			}
			
			function doTheFadeMan() {
				var imgElement = $('bild');
				
				var duration = 1.0;
				new Effect.Opacity(imgElement,
					{ 
						duration: duration, 
						transition: Effect.Transitions.linear, 
						from: 1.0, 
						to: 0.0,
						afterFinish: function() {
							imgElement.src = Pic[index];
							new Effect.Appear(imgElement, 
								{ 
									duration: duration,
									afterFinish: function() {
										index++;
										if(index == Pic.length) index=0;
									}
								}
							);
						}
					}
				)
			} 