window.addEvent('domready', function(){


	$('kwick_2').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('background-position', '0 0px');
		
			$('homeright').tween('opacity','1');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('background-position', '0 -140px');
			
			$('homeright').tween('opacity','0.2');
			
		}
	});
	$('kwick_1').addEvents({
		'mouseenter': function(){
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('background-position', '0 0px');
			
			
			$('homeleft').tween('opacity','1');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('background-position', '0 -140px');
			
			$('homeleft').tween('opacity','0.2');
		}
	});

	$('asprolink').addEvents({
		'mouseenter': function(){

			$('asprolink').tween('opacity','1');
		},
		'mouseleave': function(){

			$('asprolink').tween('opacity','0.4');
		}
	});
	
	
	 var myTicker = new mooTickSlide($('newstickernews'),{groupBy:1, interval:2000});
	 
 	 var myTicker2 = new mooTickSlide($('newstickeraspro'),{groupBy:1, interval:2000});



	//var mySlideShow = new mooTickSlide([$('a1'),$('a2'),$('a3'),$('a4'),$('a5')],{interval:5000});
	//var mySlideShow2 = new mooTickSlide([$('b1'),$('b2'),$('b3'),$('b4'),$('b5')],{interval:5000});

	 

});
