$.fn.smartFloat = function() {
	var position = function(element) {
	var a=1,pos = element.css("position");
		$(window).scroll(function() {
		var scrolls = $(this).scrollTop();
		if (window.XMLHttpRequest) {
			element.css({
				position: "fixed",
				bottom: 0
			});
		}else {
			a=a*-1;
			element.css({
				position: pos,
				bottom: a
			});
		}
	});
};
	return $(this).each(function() {
		position($(this));						 
	});
};

