$(function(){ 

	//pngfix
	if($.browser.msie && parseInt($.browser.version) == 6){
		$('.png').each(function(){
			$(this).attr("src", $(this).attr("src").split(".png")[0]+'.gif');
		});
	}

	//tooltip
	$(".presentation-01 a").easyTooltip();
	$("#share a").easyTooltip();
	$("#progress a").easyTooltip();
	
	//recherche
	$("#research").focus(function(){
		if($(this).val()=="Rechercher")$(this).val("");
	}).blur(function(){
		if($(this).val()=="")$(this).val("Rechercher");
	});

	//twitter
	$(".tweets").tweet({
		username: "le_soir",
		join_text: "auto",
		avatar_size: 32,
		count: 3,
		auto_join_text_default: "",
		auto_join_text_ed: "",
		auto_join_text_ing: "",
		auto_join_text_reply: "",
		auto_join_text_url: "",
		loading_text: "Chargement des tweets"
    });

	//scroll to top
    $('a[href=#extra-01]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });
		
	$(".infographie-entry a").live('click', function(){
		var url = $(this).attr('href');
		$.fn.colorbox({href: url});
		return false;
	});

}); // end dom ready
