// JavaScript Document
	var name = "#floatMenu";
	var menuYloc = null;
	var docHeight = null;
	
	
		
		$(document).ready(function(){
			menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")));
			
			
			$(window).scroll(function () {
									   
				docHeight = $(document).height();
				var maxScroll = docHeight-635;
				
					if($(document).scrollTop()>165){
						if($(document).scrollTop()<maxScroll){
							offset = $(document).scrollTop()+"px";
							$(name).animate({top:offset},{duration:500,queue:false});
						}
					}
					else {
						// return to original position – this avoids a problem I was having when dragging the scroll bar all the way back to the top
						$(name).animate({top:165},{duration:500,queue:false});
						}
				});
			}); 
