What you are trying to do !
Do yo want make click and scroll to spesific div with effect navbar fixed, the better idea for me to you just googling js smint it better clean and better nice scroll for you
here is the plugin adn documentation
and here is my simple demo for you
please click ont above link you will see the demo
Hope this make sense of you,