

$(document).ready(function() {	

		

	
	//Scroll the menu on mouse move above the #sidebar layer
	$('#displayText').mousemove(function(e) {

		//Sidebar Offset, Top value
		var s_top = parseInt($('#displayText').offset().top);		
		
		//Sidebar Offset, Bottom value
		var s_bottom = parseInt($('#displayText').height() + s_top);
	
		//Roughly calculate the height of the menu by multiply height of a single LI with the total of LIs
		var mheight = parseInt($('#displayTextWrap').height() );

			
		//Calculate the top value
		//This equation is not the perfect, but it 's very close	
		var top_value = Math.round(( (s_top - e.pageY) /200) * mheight / 2)

		$('#displayTextWrap').animate({top: top_value}, { queue:false, duration:2000});
	});

	
});

