// JavaScript Document
// scroll prompt appears if content extends below fold//
jQuery(function(){
scrollMore();
});

function scrollMore() {
jQuery("body").prepend('<span id="scrollMore">Scroll down for more</span>');
if (jQuery('#scrollMore').css('position') == 'absolute') {
jQuery('#scrollMore').css('bottom', (jQuery(document).height() - jQuery(window).scrollTop() - jQuery(window).height()) + 'px');
jQuery(window).scroll(function() {
jQuery('#scrollMore').hide().animate({ 'bottom': (jQuery(document).height() - jQuery(window).scrollTop() - jQuery(window).height()) + 'px' }, 0);
if (jQuery(window).scrollTop() + jQuery(window).height() < jQuery(document).height()) {
jQuery('#scrollMore').fadeIn(200);
}
});
}
else {
jQuery(window).scroll(function() {
if (jQuery(window).scrollTop() + jQuery(window).height() == jQuery(document).height()) {
jQuery('#scrollMore').fadeOut();
}
else {
jQuery('#scrollMore').fadeIn();
}
});
}
}