/*
 * This file is part of http://github.com/adamdburton/pointshop-documentation
 *
 * (c) Adam Burton <adam@equinox-studios.co.uk>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

function recordEvent(category, action, label)
{
	ga('send', 'event', category, action, label);
}

$(function()
{
	var $window = $(window);
	var $overlay = $('#banner');
	
	$window.scroll(function()
	{
		var scrollTop = $window.scrollTop();
		var percentage = scrollTop / $window.innerHeight();
		
		$overlay.css('opacity', 1 - percentage);
	});
});
@@ -502,16 +502,95 @@
 op();%0A%09%09
+$overlay.css(%7B backgroundPosition: '50%25 ' + -(scrollTop / 2) + 'px' %7D);%0A%09%09%0A%09%09//
 var perc
@@ -635,19 +635,18 @@
 ht();%0A%09%09
-%0A%09%09
+//
 $overlay

Move instead of fade