$(document).ready(function() {
	
	function MouseEventTwitter(id) {
		$(id).mouseover(function() { $('#backTwitter').addClass('mo'); $('#falaTwitter').addClass('mo');  });
		$(id).mouseout(function() { $('#backTwitter').removeClass('mo'); $('#falaTwitter').removeClass('mo');  });
	}
	
	MouseEventTwitter('#twitter > *');

	if (jQuery.support.opacity)
	{
		$('#footer-outer .col-a').each(function() {
			$(this).hover(function() {
				$('#footer-outer .col-a, #footer-bottom').stop().animate({opacity: 0.25},200);
				$(this).stop().animate({opacity: 1},200);
			},
			function() {
				$(this).stop().animate({opacity: 0.25},200);
				$('#footer-outer .col-a, #footer-bottom').stop().animate({opacity: 1},200);
			});
		});

		$('#footer-outer .col-b').each(function() {
			$(this).hover(function() {
				$('#footer-outer .col-a, #footer-bottom').stop().animate({opacity: 0.25},200);
			},
			function() {
				$('#footer-outer .col-a, #footer-bottom').stop().animate({opacity: 1},200);
			});
		});

		$('#featured').each(function() {
			$(this).hover(function() {
				$('#header #slogan, #header #nav, #header #rss-feed, #header #quick-search').stop().animate({opacity: 0.25},200);
				$('#content-wrap').stop().animate({opacity: 0.25},200);
			},
			function() {
				$('#header #slogan, #header #nav, #header #rss-feed, #header #quick-search').stop().animate({opacity: 1},200);
				$('#content-wrap').stop().animate({opacity: 1},200);
			});
		});
	}

    $("#backTwitter").tweet({
        join_text: "auto",
        avatar_size: 48,
        count: 4,
        loading_text: "carregando tweets..."
    });

});