/*
On red�finit certaines fonctions du moteur jquery pour pouvoir les utiliser n'importe quand dans notre code
Appel de ces fonctions : 
$.get_host()
$.get_surface_ecran()
*/
$(document).ready(function() {
	jQuery.extend({		
		get_surface_ecran: function() {
			var oDivFooter = $('#bas_bage'); //Mise en variable de l'�l�ment footer
			var iHeightDivFooter = oDivFooter.height(); //r�cup�ration de la hauteur de l'�l�ment
			var aOffsetDivFooter = oDivFooter.offset(); //R�cup�ration du top et du left
			var iTopDivFooter = aOffsetDivFooter.top; //R�cup�ration du top
			var iScreenWidth = screen.width; //Longueur de l'�cran
			
			var iWidthLoading = iScreenWidth;
			var iHeightLoading = iTopDivFooter + iHeightDivFooter;
			
			return  {width: iScreenWidth + "px", height: iHeightLoading + "px"};
		}
	});
});