I have a one page site with fixed navigation and using a scroll script, very similar to this: http://www.ivanjevremovic.in.rs/live/temptation/single/orange/index-cycle-slide
the section which starts with the comment "return the status of the item relative to the current view" checks to see if an element is visible in the viewport.