/* 
    Name: ScrollNavi.js
    Author: senthilkumar
    Website: http://senthildesigner.co.nr/
    mail: senthil2rajan@gmail.com
*/

(function ( $ ) {

    $.fn.scroll_navi = function(options) {
        
        var defaults = {
            speed        : 1000
        };
        
        var settings = $.extend( {}, defaults, options );
        
        return this.each( function() {
            var win = $( window );
            var elem = $( this );
            var elem_a = "#"+elem.attr("id")+" a";
            var wh = win.height();
            wh=wh-60;
            elem.css("top",wh+"px");
            
            $(elem_a).click(function(event){
                event.preventDefault();
                var link_add = $(this).attr("href");
                var pos = $(link_add).offset().top;
                $('html, body').animate({scrollTop: pos}, settings.speed);
            });
            
            win.scroll(function() {
                var topvalue = win.scrollTop();
                if(wh<=topvalue)
                {
                    $(elem).css({"position":"fixed","top":"0px"});
                }
                else{
                    $(elem).css({"position":"absolute","top":wh+"px"});
                }
            });
            
        });
    };
 
}( jQuery ));

@@ -653,16 +653,171 @@
 event)%7B%0A
+%09%09%09%09var link_outerpage = $(this).attr(%22data-outerpage%22);%0A%09%09%09%09if(link_outerpage=='true')%0A%09%09%09%09%7B%0A%09%09%09%09%09console.log(%22this is outerpage link%22);%09%0A%09%09%09%09%7D%0A%09%09%09%09else%7B%0A
         
@@ -848,32 +848,21 @@
 ault();%0A
-                
+%09%09%09%09%09
 var link
@@ -890,32 +890,21 @@
 href%22);%0A
-                
+%09%09%09%09%09
 var pos 
@@ -931,32 +931,21 @@
 ().top;%0A
-                
+%09%09%09%09%09
 $('html,
@@ -995,16 +995,22 @@
 speed);%0A
+%09%09%09%09%7D%0A
         

Update scroll_navi.js