(function($) {
	
/* *********************************************
 * Positionement diu footer
 */
	
	$.fn.footer = function() {
		var elt  = this,
			h 	 = $(window).height(),
			eltH = $('#container').height()+$('#container').offset().top;
		if(eltH > (h - this.outerHeight())) {
			this.css({
				'top': eltH,
				'bottom': 'auto'
			});
		} else {
			this.css({
				'top': 'auto',
				'bottom': 0
			});
		};
		return elt;
	}

})(jQuery);
