Homosexual Chicago, IL Information and Leisure

Homosexual Chicago, IL Information and Leisure :: EDGE Chicago, IL var infolinks_pid = 3288735; var infolinks_wsid = 0;

navPos.prime) { $(‘nav’).addClass(‘navfixed’); } else { $(‘nav’).removeClass(‘navfixed’); } }); $(‘#navbar li a’).hover(operate() { $(this).addClass(‘navon’); }, operate() { $(this).removeClass(‘navon’); }); }); ]]> 0) { var initialSidebarTop = $sidebar.place().prime; $window.scroll(operate(occasion) { var windowHeight = $window.top(); var sidebarHeight = $sidebar.outerHeight(); var scrollTop = $window.scrollTop(); var scrollBottom = scrollTop + windowHeight; var sidebarTop = $sidebar.place().prime; var sidebarBottom = sidebarTop + sidebarHeight; var heightDelta = Math.abs(windowHeight – sidebarHeight); var scrollDelta = lastScrollTop – scrollTop; var isScrollingDown = (scrollTop > lastScrollTop); var isWindowLarger = (windowHeight > sidebarHeight); if ((isWindowLarger && scrollTop > initialSidebarTop) || (!isWindowLarger && scrollTop > initialSidebarTop + heightDelta)) { $sidebar.addClass(‘mounted’); } else if (!isScrollingDown && scrollTop <= initialSidebarTop) { $sidebar.removeClass('fixed'); } var dragBottomDown = (sidebarBottom = scrollTop && !isScrollingDown); if (dragBottomDown) { if (isWindowLarger) { $sidebar.css('top', 0); } else { $sidebar.css('top', -heightDelta); } } else if (dragTopUp) { $sidebar.css('top', 0); } else if ($sidebar.hasClass('fixed')) { var currentTop = parseInt($sidebar.css('top'), 10); var minTop = -heightDelta; var scrolledTop = currentTop + scrollDelta; var isPageAtBottom = (scrollTop + windowHeight >= $(doc).top()); var newTop = (isPageAtBottom) ? minTop : scrolledTop; $sidebar.css(‘prime’, newTop); } lastScrollTop = scrollTop; wasScrollingDown = isScrollingDown; }); } }); ]]>

Breaking News