var name = "#floatMenu";
var menuYloc = null;
	
	jQuery(function($){
        menuYloc = parseInt($("#floatMenu").css("top").substring(0,$("#floatMenu").css("top").indexOf("px")))  
		$(window).scroll(function () { 
			offset = menuYloc+$(document).scrollTop()-259+"px";
						//subtract 259px to prevent overlapping footer
                        if (menuYloc+$(document).scrollTop()-259 < 0){
						   //reset to 0 so that floating menu won't exceed when animating upwards
                           offset = "0px";
                        }  
			$("#floatMenu").animate({top:offset},{duration:500,queue:false});
        });
                
	}); 
