if (document.body){
	var larg = (document.body.clientWidth);
	var haut = (document.body.clientHeight);

}else{
	var larg = (window.innerWidth);
	var haut = (window.innerHeight);
}
//alert("Cette fenêtre fait " + larg + " de large et "+haut+" de haut");


AfficherInfoBulle = function(e)
            {
              var text = $(this).next('.info-bulle-contenu');
              if (text.attr('class') != 'info-bulle-contenu')
              	return false;
		
		if(e.pageY<haut/2){
              text.fadeIn()                
                .css('top', e.pageY-70)
                .css('left', e.pageX);
		}
		
		else{
              text.fadeIn()                
                .css('top', e.pageY-360)
                .css('left', e.pageX);
		}
              return false;
              
            }
CacherInfoBulle = function(e)
            {
              var text = $(this).next('.info-bulle-contenu');
              if (text.attr('class') != 'info-bulle-contenu')
                return false;

              text.fadeOut();
            }

InstallationInfoBulle = function()
            {
              $('.info-bulle-css')
                .each(function(){
                  $(this)
                    .after($('<span/>')
                      .attr('class', 'info-bulle-contenu')
                      .html($(this).attr('title')))
                    .attr('title', '');
                })
                .hover(AfficherInfoBulle, CacherInfoBulle);
            }

            $(document).ready(function() {
              InstallationInfoBulle();
            });

