
function TeaserActions() {

	var teaserAktuell = 1;
	var imagesNormal = Array();
	var imagesOver = Array();
	var actionIsRun = false;
	
	$('teaser1').hide();
	$('teaser2').hide();
	$('teaser3').hide();
	

	this.action = function(id) {
		if(actionIsRun) {
			return;
		}else {
			actionIsRun = true;
		}
		
		$("start").hide();
		Effect.DropOut('teaser'+teaserAktuell);
		
		setTimeout(function() {
			$('teaser1').hide();
			$('teaser2').hide();
			$('teaser3').hide();
			applayAction(id);
		}, 700);
		
		setTimeout(function() {
			actionIsRun = false;		
		},1500);
	}
	
	this.setImagesNormal = function(array) {
		imagesNormal = array;
	}
	
	this.setImagesOver = function(array) {
		imagesOver = array;
	}
	
	function applayAction(id) {
		
		//$("maus").style.left = "-1px";
		//$("maus").style.top = "14px";
	
		switch(id) {
			case 1:		
				teaserAktuell = 1;	
				
				$('t1_b1').hide();
				
				$("bottonLeft").src = imagesOver[0];		//"images/teaser_b3_over.png";
				$("bottonCenter").src = imagesNormal[1];	//"images/teaser_b4.png";
				$("bottonRight").src = imagesNormal[2];		//"images/teaser_b5.png";
				
				//$("maus").hide();
				$('teaserList1').hide();	
				$('preis1').hide();	
				
				Effect.Appear('teaser1');
				
				setTimeout(function() {	
					Effect.SlideDown('teaserList1',{duration:1.0});
					Effect.Grow('t1_b1');
					Effect.Grow('preis1');
					
					//new Effect.Parallel([						
						//new Effect.Appear("maus"),
						//new Effect.Move("maus", { x: -210, y: 40, mode: 'relative' })
					//]);
				}, 500);
				
				
				
				
				break;
			case 2:	
				teaserAktuell = 2;	
				
				$("bottonLeft").src = imagesNormal[0]; //"images/teaser_b3.png";
				$("bottonCenter").src = imagesOver[1]; //"images/teaser_b4_over.png";
				$("bottonRight").src = imagesNormal[2];// "images/teaser_b5.png";
					
				$('b1').hide();	
				$('b2').hide();	
				$('teaserList2').hide();	
				$('preis').hide();			
				Effect.Appear('teaser2');
				
				setTimeout(function() {
					Effect.Grow('b1');
					Effect.Grow('b2');
					Effect.SlideDown('teaserList2',{duration:1.0});
					Effect.Grow('preis');
				}, 1000);
				
				break;
			case 3:
				teaserAktuell = 3;	
				
				$('t3_b1').hide();
				
				$("bottonLeft").src = imagesNormal[0]; 		//"images/teaser_b3.png";
				$("bottonCenter").src = imagesNormal[1];	 //"images/teaser_b4.png";
				$("bottonRight").src = imagesOver[2]; 		//"images/teaser_b5_over.png";			
			
				$('teaserList3').hide();
				Effect.Appear('teaser3');
				
				setTimeout(function() {
					Effect.SlideDown('teaserList3',{duration:1.0});
					Effect.Grow('t3_b1');
				}, 1000);				
					
				break;
		}
	
	}
}