window.addEvent('domready', function(){

	var el = $('CustomerService');
	$('CustomerService').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', '216px');
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '24px');
		}
	});
	
	
	var CateMenuHeight = document.getElementById('CateNums').value * 24 + 32;
	var el = $('TopMenuCate');
	$('TopMenuCate').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', CateMenuHeight);
			
			
		},
		'mouseleave': function(){
			// Resets the tween and changes the element back to its original size
			this.set('tween', {}).tween('height', '24px');
		}
	});
//	var CategoryID = id;
//	alert(CategoryID);
//	var myVerticalSlide = new Fx.Slide('slide');
//
//	$('v_toggle').addEvent('click', function(e){
//		e.stop();
//		myVerticalSlide.toggle();
//	});

});
