window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipagc').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			
			this.tween('height', '350px');
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {
				transition: Fx.Transitions.Expo.easeOut,
				link: 'chain'
			}).tween('height', '22px');
			this.tween('margin-top', '20px');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipdesign').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			
			this.tween('height', '395px');
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {
				transition: Fx.Transitions.Expo.easeOut,
				link: 'chain'
			}).tween('height', '22px');
			this.tween('margin-top', '20px');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipprint').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			
			this.tween('height', '390px');
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {
				transition: Fx.Transitions.Expo.easeOut,
				link: 'chain'
			}).tween('height', '22px');
			this.tween('margin-top', '20px');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipenvironment').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			
			this.tween('height', '350px');
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {
				transition: Fx.Transitions.Expo.easeOut,
				link: 'chain'
			}).tween('height', '22px');
			this.tween('margin-top', '20px');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipfilesubmission').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			$$('#chipfilesubmission a').setStyle('color', '#c52235');
			
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.tween('margin-top', '20px');
			$$('#chipfilesubmission a').setStyle('color', '#000');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipmailing').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			
			this.tween('height', '350px');
		},

		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {
				transition: Fx.Transitions.Expo.easeOut,
				link: 'chain'
			}).tween('height', '22px');
			this.tween('margin-top', '20px');
		}
	});
});

window.addEvent('domready', function(){
	// The same as before: adding events
	$('chipcontactus').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: 400,
				transition: Fx.Transitions.Bounce.easeOut, // This could have been also 'bounce:out'
				link: 'chain'
			}).tween('margin-top','0px');
			$$('#chipcontactus a').setStyle('color', '#c52235');
		},
		
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.tween('margin-top', '20px');
			$$('#chipcontactus a').setStyle('color', '#000');
		}
	});
});
