function scrollDetect(mydiv) {
	var the_height = document.getElementById(mydiv).offsetHeight;
	if (the_height < 600) {
  		$(function(){  
    		$("#footer").positionFooter(true);  
  		});
	}
}