function showClaim1() {
	var meinElement =$('effekt_claim1');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 0, 1);
	window.setTimeout("hideClaim1()",3000);
}
function hideClaim1() {
	var meinElement =$('effekt_claim1');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 1, 0);	
	window.setTimeout("showClaim1()",6000);
}

function showClaim2() {
	var meinElement =$('effekt_claim2');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 0, 1);
	window.setTimeout("hideClaim2()",2500);
}
function hideClaim2() {
	var meinElement =$('effekt_claim2');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 1, 0);	
	window.setTimeout("showClaim2()",5500);
}

function showClaim3() {
	var meinElement =$('effekt_claim3');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 0, 1);
	window.setTimeout("hideClaim3()",3500);
}
function hideClaim3() {
	var meinElement =$('effekt_claim3');
	var meinEffekt= new Fx.Tween(meinElement, {
		'duration': 1500
	});	
	meinEffekt.start('opacity', 1, 0);	
	window.setTimeout("showClaim3()",7000);
}


window.addEvent('domready',function(){
	if ($('effekt_claim1')) {
		$('effekt_claim1').setStyles({
			'top': '263px'
		});
		$('effekt_claim1').fade('hide');
		window.setTimeout("showClaim1()",1500);
	}
	
	if ($('effekt_claim2')) {
		$('effekt_claim2').setStyles({
			'top': '300px'
		});
		$('effekt_claim2').fade('hide');
		window.setTimeout("showClaim2()",2500);
	}
		
	if ($('effekt_claim3')) {
		$('effekt_claim3').setStyles({
			'top': '350px'
		});
		$('effekt_claim3').fade('hide');
		window.setTimeout("showClaim3()",4000);
	}


	var height = window.getHeight()+'px';
	var height2 = window.getHeight();
	var width = window.getWidth();
	var halfwidth = (width / 2) - 380;
	var halfheight = (height2 / 2) - 215;
	var halfheight2 = (height2 / 2) - 140;

	$$('#link_mixpack').each(function(divlink) {
		divlink.onclick = function() {
			if(!$('main-overlay')) {
				var overlay = new Element('div', {
					'id': 'main-overlay',
					'class': 'zopacity',
					'styles': {
						'height': height,
						'opacity': 0
					}
				});
				overlay.injectInside($('top'));				
			}			
			$('main-overlay').morph({opacity: 0.6});			
			$('main-overlay').addEvent('click', function() {
				$('main-overlay').morph({opacity: 0});
				$('ol_mixpack').morph({top: -430});
			});

			$('ol_mixpack').injectInside($('top'));
			
			$$('#ol_mixpack a.closelink').each(function(closer) {
				closer.addEvent('click', function() {
					$('main-overlay').morph({opacity: 0});
					$('ol_mixpack').morph({top: -430});
					return false;
				})
			})

			var Rein = new Fx.Morph($('ol_mixpack'));
			Rein.start({
				'top': [-430, halfheight]
			})
			return false;
		}
	});
	
	
	$$('#link_kasten_24').each(function(divlink) {
		divlink.onclick = function() {
			if(!$('main-overlay')) {
				var overlay = new Element('div', {
					'id': 'main-overlay',
					'class': 'zopacity',
					'styles': {
						'height': height,
						'opacity': 0
					}
				});
				overlay.injectInside($('top'));				
			}			
			$('main-overlay').morph({opacity: 0.6});			
			$('main-overlay').addEvent('click', function() {
				$('main-overlay').morph({opacity: 0});
				$('ol_24erkiste').morph({top: -430});
			});

			$('ol_24erkiste').injectInside($('top'));
			
			$$('#ol_24erkiste a.closelink').each(function(closer) {
				closer.addEvent('click', function() {
					$('main-overlay').morph({opacity: 0});
					$('ol_24erkiste').morph({top: -430});
					return false;
				})
			})

			var Rein = new Fx.Morph($('ol_24erkiste'));
			Rein.start({
				'top': [-430, halfheight]
			})
			return false;
		}
	});	
	
	$$('#link_kasten_20').each(function(divlink) {
		divlink.onclick = function() {
			if(!$('main-overlay')) {
				var overlay = new Element('div', {
					'id': 'main-overlay',
					'class': 'zopacity',
					'styles': {
						'height': height,
						'opacity': 0
					}
				});
				overlay.injectInside($('top'));				
			}			
			$('main-overlay').morph({opacity: 0.6});			
			$('main-overlay').addEvent('click', function() {
				$('main-overlay').morph({opacity: 0});
				$('ol_20erkiste').morph({top: -430});
			});

			$('ol_20erkiste').injectInside($('top'));
			
			$$('#ol_20erkiste a.closelink').each(function(closer) {
				closer.addEvent('click', function() {
					$('main-overlay').morph({opacity: 0});
					$('ol_20erkiste').morph({top: -430});
					return false;
				})
			})

			var Rein = new Fx.Morph($('ol_20erkiste'));
			Rein.start({
				'top': [-430, halfheight]
			})
			return false;
		}
	});

	$$('#link_werte').each(function(divlink) {
		divlink.onclick = function() {
			if(!$('main-overlay')) {
				var overlay = new Element('div', {
					'id': 'main-overlay',
					'class': 'zopacity',
					'styles': {
						'height': height,
						'opacity': 0
					}
				});
				overlay.injectInside($('top'));				
			}			
			$('main-overlay').morph({opacity: 0.6});			
			$('main-overlay').addEvent('click', function() {
				$('main-overlay').morph({opacity: 0});
				$('ol_werte').morph({top: -260});
			});

			$('ol_werte').injectInside($('top'));
			
			$$('#ol_werte a.closelink').each(function(closer) {
				closer.addEvent('click', function() {
					$('main-overlay').morph({opacity: 0});
					$('ol_werte').morph({top: -260});
					return false;
				})
			})

			var Rein = new Fx.Morph($('ol_werte'));
			Rein.start({
				'top': [-260, halfheight2]
			})
			return false;
		}
	});	
	

	
});



