/*!
 * Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

// jQuery for page scrolling feature - requires jQuery Easing plugin
$(function() {
    $('a.page-scroll').bind('click', function(event) {
        var $anchor = $(this);
        $('html, body').stop().animate({
            scrollTop: $($anchor.attr('href')).offset().top
        }, 1500, 'easeInOutExpo');
        event.preventDefault();
    });
});

// Highlight the top nav as scrolling occurs
$('body').scrollspy({
    target: '.navbar-fixed-top'
})

// Closes the Responsive Menu on Menu Item Click
$('.navbar-collapse ul li a').click(function() {
    $('.navbar-toggle:visible').click();
});

$('div.modal').on('show.bs.modal', function() {
	var modal = this;
	var hash = modal.id;
	window.location.hash = hash;
	window.onhashchange = function() {
		if (!location.hash){
			$(modal).modal('hide');
		}
	}
});

@@ -1,266 +1,4 @@
-/*!%0A * Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com)%0A * Code licensed under the Apache License v2.0.%0A * For details, see http://www.apache.org/licenses/LICENSE-2.0.%0A */%0A%0A// jQuery for page scrolling feature - requires jQuery Easing plugin%0A
 $(fu
@@ -5,26 +5,20 @@
 nction()
- %7B%0A    $('
+%7B$(%22
 a.page-s
@@ -26,25 +26,24 @@
 roll
-'
+%22
 ).bind(
-'
+%22
 click
-', 
+%22,
 func
@@ -51,59 +51,28 @@
 ion(
-event) %7B%0A        var $anchor = $(this);%0A        $('
+a)%7Bvar b=$(this);$(%22
 html
@@ -77,17 +77,17 @@
 ml, body
-'
+%22
 ).stop()
@@ -100,21 +100,8 @@
 te(%7B
-%0A            
 scro
@@ -110,30 +110,23 @@
 Top:
- 
 $(
-$anchor
+b
 .attr(
-'
+%22
 href
-'
+%22
 )).o
@@ -140,27 +140,16 @@
 .top
-%0A        
 %7D,
- 
 1500,
- '
+%22
 ease
@@ -161,110 +161,42 @@
 Expo
-');%0A        event.preventDefault();%0A    %7D);%0A%7D);%0A%0A// Highlight the top nav as scrolling occurs%0A$('
+%22),a.preventDefault()%7D)%7D),$(%22
 body
-'
+%22
 ).sc
@@ -208,22 +208,16 @@
 py(%7B
-%0A    
 target:
- '
+%22
 .nav
@@ -233,66 +233,15 @@
 -top
-'%0A%7D)%0A%0A// Closes the Responsive Menu on Menu Item Click%0A$('
+%22%7D),$(%22
 .nav
@@ -260,17 +260,17 @@
  ul li a
-'
+%22
 ).click(
@@ -283,18 +283,12 @@
 on()
- %7B%0A    $('
+%7B$(%22
 .nav
@@ -305,17 +305,17 @@
 :visible
-'
+%22
 ).click(
@@ -319,18 +319,14 @@
 ck()
-;%0A%7D);%0A%0A$('
+%7D),$(%22
 div.
@@ -334,15 +334,15 @@
 odal
-'
+%22
 ).on(
-'
+%22
 show
@@ -354,11 +354,10 @@
 odal
-', 
+%22,
 func
@@ -366,53 +366,27 @@
 on()
- %7B%0A%09var modal = this;%0A%09var hash = modal
+%7Bvar a=this,b=a
 .id;
-%0A%09
 wind
@@ -405,18 +405,11 @@
 hash
- = hash;%0A%09
+=b,
 wind
@@ -427,11 +427,9 @@
 ange
- = 
+=
 func
@@ -438,18 +438,9 @@
 on()
- %7B%0A%09%09if (!
+%7B
 loca
@@ -452,29 +452,21 @@
 hash
-)%7B%0A%09%09%09$(modal
+%7C%7C$(a
 ).modal(
 'hid
@@ -465,24 +465,16 @@
 dal(
-'
+%22
 hide
-');%0A%09%09%7D%0A%09%7D%0A
+%22)%7D
 %7D);%0A

Update agency.js