


	var slider = function() {
	
	
		this.load = function() {
		
			this.item = $$('.eventLink');
			this.count = this.item.length / 3;
			this.counter = Math.ceil(this.count);
			this.current = 0;
			this.c = 0;
		
			$('iefix').setStyle('height:248px; width:627px; overflow:hidden;');
			$('slider').setStyle('width:10000px; height:248px;');
		
		
			aslider.initslide();

		}
		
		
	
	
	
		this.initslide = function() {

			aslider.slideInterval();

		}
		
		
		
		this.slideInterval = function() {
		
			
			
			
			// Slideintervall starten
			this.scrollInterval = window.setInterval(function() { aslider.slide(); }, 6000);
		
		}
		
		
		
		this.slide = function() {
		
			// Neustarten
			if(this.c >= this.counter) {
				this.c = 0;
			}
			
			

					
			// Sliden		
			new Effect.Morph('slider', { 
				style:'left:-' + (this.c * 663) + 'px', 
				duration:1.9
			});
			
			this.c++;
						
		
		}
		
		
		
	}

