I guess I need help. I'm trying to work with jQuery and I don't know much, but I'm having this problem with the "color active" of the menu.

Here is an simplified version of my work: <http://jsfiddle.net/paulakfleck/aZGKz/>

Here is the whole work (complete): <http://nartecrobotica.com.br/g4/>

As you can see, when I click in the menu, the "active color" works, but when I scroll the page or open the page, do not.

I guess the big mistake is in this line:

`if($(window).scrollTop() == $("#g-4")){...}`

I put the #g-4 as an example, but isn't working too.

I try other answers at Stackoverflow, but I'm unable make that work.

Some light, please?