
window.addEvent('domready', function() { 
		// Left menu Slide
		if ($('content_left') && $('left_menu')){
		
			var fxContentLeft = new Fx.Tween($('left_menu')); //menudiv 
			//var fxContentLeft2 = new Fx.Tween($('menu_slide_corner')); //menu bottomborder div
			var oCL_InitDimensions = $('content_left').getSize();
			var oLM_MaxDimensions = $('left_menu').getScrollSize();
			var iMenuPadLeft = $('left_menu').getStyle('padding-left').toInt();
			var iMenuAddWidth = 0;
			if(oLM_MaxDimensions.x > oCL_InitDimensions.x){
			
				$('left_menu').setStyle('position', 'absolute');
				$('left_menu').setStyle('width', (oCL_InitDimensions.x-iMenuPadLeft)+'px');
				$('left_menu').setStyle('border-right', '1px solid #97979B');
				$('left_menu').addEvent('mouseenter', function(e){
		
					//first cancel effect(can still be running)
					fxContentLeft.cancel();
					//fxContentLeft2.cancel();
					//set mouseover width for menu width
					fxContentLeft.start('width', (oLM_MaxDimensions.x+iMenuAddWidth)+'px');
					//position the menu bottomborder div
          $('menu_slide_corner').setStyle('top', oCL_InitDimensions.y+'px');
					$('menu_slide_corner').setStyle('left', (oCL_InitDimensions.x+1)+'px');
          //Tween the menu bottomborder div to mouseoverwidth
          //fxContentLeft2.start('width', ((oLM_MaxDimensions.x-oCL_InitDimensions.x)+iMenuPadLeft+iMenuAddWidth)+'px');
				});
				
				$('left_menu').addEvent('mouseleave', function(e){
					//first cancel effect(can still be running)
					fxContentLeft.cancel();
					//fxContentLeft2.cancel();
					//return to original width
          fxContentLeft.start('width', (oCL_InitDimensions.x-iMenuPadLeft)+'px');
					//fxContentLeft2.start('width', '0px');
          //$('menu_slide_corner').fade('out'); 
          //setTimeout("$('menu_slide_corner').fade('out')", 500);
					
				});
			}
		}
	});
  
