/*$(document).ready(function()
{
	$(".codesnip-container-wrapper").mouseenter(function()
	{
		if (!$(this).data('codesnippet:filler'))
		{
			var offset = $(this).offset();
			var width = $(this).width();
			var scrollTop = $(window).scrollTop();
			
			$(this).css({
				position : 'absolute',
				top : (offset.top-20) + 'px',
				left : '30px'
			});
			
			var actualWidth = $(this).width();
			
			if (actualWidth > width)
			{
				var height = $(this).innerHeight() - 2;
				var filler = $("<div/>").css('marginTop', height + 'px').html("&nbsp;");
				
				$(this).after(filler);
				
				$(this).data('codesnippet:filler', filler);
				$(this).data('codesnippet:initialWidth', width);
				
				$(this).css({ width : width, zIndex : 10 });
				
				var maxWindowWidth;
				var targetWidth = maxWindowWidth = $(window).width()-40;
				
				if (actualWidth < targetWidth)
					targetWidth = actualWidth;
				
				var targetLeft = (offset.left-20);
				
				if (actualWidth > targetWidth)
					$(".codesnip-container-innerwrapper", this).css('overflowX', 'scroll');
				
				var widthToAddPerSide = (targetWidth - width) / 2;
				if (widthToAddPerSide < targetLeft)
					targetLeft = widthToAddPerSide;
				
				$(window).scrollTop(scrollTop);
				
				$(this).stop().animate({
				    left: '-=' + targetLeft,
				    width: targetWidth + 'px'
				}, 
				{
					complete: function()
					{
						
					}
				});
			}
			else
			{
				$(this).css({
					position : '',
					top : '',
					left : '',
					zIndex : ''
				});
			}
				
		}
	});
	
	$(".codesnip-container-wrapper").mouseleave(function()
	{
		var $this = $(this);
		
		if ($this.data('codesnippet:filler'))
		{
			$this.stop().animate({
			    left: '30px',
			    width: $this.data('codesnippet:initialWidth')
			},
			{
				complete : function()
				{
					$this.data('codesnippet:filler').remove();
					$this.data('codesnippet:filler', null);
					$(".codesnip-container-innerwrapper", this).css('overflowX', '');
					
					$this.css({
						position : '',
						top : '',
						left : '',
						width : ''
					});
				}
			});
		}
	});
});*/
