$(function()
{
	var div = $('div#c-c-right'),
		div2 = $('div#c-c-right_scroll'),
		divPadding = 15;

	var divHeight = div.height();

	var lastDiv = div.find('div:last-child');

	div.mousemove(function(e)
	{
		var ulHeight = lastDiv[0].offsetTop + lastDiv.outerHeight() + divPadding;
		var top = (e.pageY - div.offset().top) * (ulHeight-divHeight) / divHeight;
		div.scrollTop(top);
	});
	
	/*var gdiv = $('div#c-c-cont'),
		gdiv2 = $('div#c-c-cont_scroll'),
		gdivPadding = 15;

	var gdivWidth = gdiv.width();

	var glastDiv = gdiv.find('div:last-child');

	gdiv.mousemove(function(e)
	{
		var gulWidth = glastDiv[0].offsetLeft + glastDiv.outerWidth() + gdivPadding;
		var gtop = (e.pageX - gdiv.offset().left) * (gulWidth-gdivWidth) / gulWidth;
		gdiv.scrollLeft(gtop);
	});*/
});