Lazyload =
	lazyLoad: ->
		clearTimeout @loadTimeout
		@loadTimeout = setTimeout =>
			top = (elTop = @el.offset().top) - (@offsetToPreLoad or 150)
			bottom = elTop + @el.height() + (@offsetToPreLoad or 150)
			
			lazyItems = @lazyItems?() or @children?() or []
			for child, i in lazyItems
				if (childTop = child.el.offset().top) > top and childTop < bottom
					child.show?()
		, 50

module.exports = Lazyload