/**
 * cbpAnimatedHeader.js v1.0.0
 * http://www.codrops.com
 *
 * Licensed under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Copyright 2013, Codrops
 * http://www.codrops.com
 */
var cbpAnimatedHeader = (function() {

	var docElem = document.documentElement,
		header = document.querySelector( '.navbar-fixed-top' ),
		didScroll = false,
		changeHeaderOn = 300;

	function init() {
		window.addEventListener( 'scroll', function( event ) {
			if( !didScroll ) {
				didScroll = true;
				setTimeout( scrollPage, 250 );
			}
		}, false );
	}

	function scrollPage() {
		var sy = scrollY();
		if ( sy >= changeHeaderOn ) {
			classie.add( header, 'navbar-shrink' );
		}
		else {
			classie.remove( header, 'navbar-shrink' );
		}
		didScroll = false;
	}

	function scrollY() {
		return window.pageYOffset || docElem.scrollTop;
	}

	init();

})();
@@ -1,218 +1,4 @@
-/**%0A * cbpAnimatedHeader.js v1.0.0%0A * http://www.codrops.com%0A *%0A * Licensed under the MIT license.%0A * http://www.opensource.org/licenses/mit-license.php%0A * %0A * Copyright 2013, Codrops%0A * http://www.codrops.com%0A */%0A
 var 
@@ -18,12 +18,9 @@
 ader
- = (
+=
 func
@@ -29,178 +29,22 @@
 on()
- %7B%0A%0A%09var docElem = document.documentElement,%0A%09%09header = document.querySelector( '.navbar-fixed-top' ),%0A%09%09didScroll = false,%0A%09%09changeHeaderOn = 300;%0A%0A%09function init() %7B%0A%09%09
+%7Bfunction e()%7B
 wind
@@ -67,19 +67,17 @@
 ner(
- '
+%22
 scroll
-', 
+%22,
 func
@@ -85,203 +85,72 @@
 ion(
- event ) %7B%0A%09%09%09if( !didScroll ) %7B%0A%09%09%09%09didScroll = true;%0A%09%09%09%09setTimeout( scrollPage, 250 );%0A%09%09%09%7D%0A%09%09%7D, false );%0A%09%7D%0A%0A%09function scrollPage() %7B%0A%09%09var sy = scrollY();%0A%09%09if ( sy %3E= changeHeaderOn ) %7B%0A%09%09%09
+a)%7Bc%7C%7C(c=!0,setTimeout(f,250))%7D,!1)%7Dfunction f()%7Bvar a=g();a%3E=d?
 clas
@@ -157,26 +157,19 @@
 sie.add(
- header, '
+b,%22
 navbar-s
@@ -177,29 +177,11 @@
 rink
-' );%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09
+%22):
 clas
@@ -195,18 +195,11 @@
 ove(
- header, '
+b,%22
 navb
@@ -211,66 +211,29 @@
 rink
-' );%0A%09%09%7D%0A%09%09didScroll = false;%0A%09%7D%0A%0A%09function scrollY() %7B%0A%09%09
+%22),c=!1%7Dfunction g()%7B
 retu
@@ -257,46 +257,114 @@
 fset
- 
 %7C%7C
- docElem.scrollTop;%0A%09%7D%0A%0A%09init();%0A%0A%7D)
+a.scrollTop%7Dvar a=document.documentElement,b=document.querySelector(%22.navbar-fixed-top%22),c=!1,d=300;e()%7D
 ();
+%0A

Update cbpAnimatedHeader.js