function footerThing(){
		totHeight = parseInt($('div#principal').height()) + parseInt($('div#pied').height()) +25;
	
		if($(window).height() > totHeight) {
			//alert('plus grand')
			 var cssPied = {
		      'position' : 'absolute',
		      'bottom' : '0px',
		      'width' : '100%'
		    }
		    $('div#pied').css(cssPied);
		}else if($(window).height() < totHeight){
			 var cssPied = {
		      'position' : 'relative',
		      'width' : '100%'
		    }
		    $('div#pied').css(cssPied);
		}
		
		//alert(totHeight);
 		//alert("Resized!");
	};

$(document).ready(function(){
	
	 footerThing();
 	
	$(window).resize(function() {
		 footerThing();
	});
	
  
});
