// JavaScript Document

$(document).ready(function(){

$('#twitter-tools').hide();

$('a#link_twit').click(function(){
	$('#recent-posts-3').hide('slow');
	$('#categories-3').hide('slow');
	$('#twitter-tools').show('slow');
	$('img#btn_twit').removeClass("toggleme").attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_twitter_on.png");
	$('img#btn_new').addClass("toggleme").attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_whatsnew_off.gif");;

});

$('a#link_whatsnew').click(function(){
	$('#recent-posts-3').show('slow');
	$('#categories-3').show('slow');
	$('#twitter-tools').hide('slow');
	$('img#btn_new').removeClass("toggleme").attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_whatsnew_on.png");
	$('img#btn_twit').addClass("toggleme").attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_twitter_off.gif");
});

$('a#link_whatsnew').hover(
	function () {
		if ($('img#btn_new').hasClass('toggleme')) 
			$('img#btn_new').attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_whatsnew_on.png");
	}, 
  	function() {
		if ($('img#btn_new').hasClass('toggleme'))
			$('img#btn_new').attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_whatsnew_off.gif");
	});

$('a#link_twit').hover(
	function () {
		if ($('img#btn_twit').hasClass('toggleme'))
			$('img#btn_twit').attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_twitter_on.png");
	}, 
  	function() {
		if ($('img#btn_twit').hasClass('toggleme')) 
			$('img#btn_twit').attr("src","http://www.iheartadoption.org/blog/wp-content/themes/iheartblog/images/btn_twitter_off.gif");
	});




});
