$(function(){
    $("a.infobulle").mouseover(function(){
        if($(this).attr("title")=="") return false;
        $("body").append('<div class="thumbHover"></div>');
        var bulle = $(".thumbHover:last");
        bulle.append($(this).attr("title"));
        $(this).attr("title","");
        var posTop = $(this).offset().top-$(this).height()-50;
        var posLeft = $(this).offset().left+$(this).width()/2-bulle.width()/2;
	/**Version du navigateur **/
	var sNavigator = navigator.appVersion;
        var iPositionVersion = sNavigator.indexOf('MSIE ');
        var iIEVersion = sNavigator.substr(iPositionVersion+5,1);
		
		if(iIEVersion <= 7 && navigator.appName=='Microsoft Internet Explorer'){
		   bulle.css({left:posLeft,top:posTop+110,opacity:0});
		}else{
		   bulle.css({left:posLeft,top:posTop,opacity:0});
		}
		
	    bulle.animate({
            opacity:0.99
        },
            300);
    });    

    $("a.infobulle").mouseout(function(){
        var bulle = $(".thumbHover:last");
        $(this).attr("title",bulle.text());
        bulle.animate(
            {
                opacity:0
            },
            200,
            "linear",
            function(){
                bulle.remove();  
            }
        );
    });
});
