window.addEvent('domready', function(){
		
	// The same as before: adding events
	$('mi_jobseeker').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('height', '180px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 0}).tween('height', '28px');
			Normal_Nav('navitem_js');
		}
	});
	
	$('mi_employer').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('height', '175px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 0}).tween('height', '28px');
			Normal_Nav('navitem_employer');
		}
	});
	
	$('mi_sectors').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('height', '150px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 0}).tween('height', '28px');
			Normal_Nav('navitem_sectors');
		}
	});
	
	$('mi_aboutus').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('height', '160px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {duration: 0}).tween('height', '28px');
			Normal_Nav('navitem_aboutus');
		}
	});
});

function Highlight_Nav(aNavItem)
{
	document.getElementById(aNavItem).style.backgroundImage = "url(/images/navbar_bg_active.png)";
	//document.getElementById(aNavItem).style.backgroundColor = "#2a63b3"; //2a63b3 49A3FF
	document.getElementById(aNavItem).style.backgroundRepeat = 'repeat-x';
	
	//document.getElementById(aNavItem + '_link').style.color = '#000000';//FFFFFF';
}

function Normal_Nav(aNavItem)
{
	document.getElementById(aNavItem).style.backgroundImage = "url()";
	document.getElementById(aNavItem).style.backgroundColor = "";
	
	//document.getElementById(aNavItem + '_link').style.color = '#21457b';
}

