/****************************************************************************\
* Intranet System                                                            *
* Version: 2.0                                                               *
* Author: Lars Wohlfahrt                                                     *
* License: http://www.gnu.org/licenses/gpl.txt (GPL)                         *
******************************************************************************
* Last Change: 04.06.2008                                                    *
* File Version: 2.0.0                                                        *
\****************************************************************************/

window.addEvent('domready', function(){
	
	// The same as before: adding events
	$('navgreen').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
			$('myOtherElement').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '90px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('myOtherElement').set('tween', {}).tween('height', '0px');
		}
	});
	$('myOtherElement').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
			$('myOtherElement').set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', '90px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			$('myOtherElement').set('tween', {}).tween('height', '0px');
		}
	});
	
	
	
	
});
