$('#perfect-piece-btn').click(function(){
	$('#navPerfectPiece').slideToggle(400);
});
$('#our-commitment-btn').click(function(){
	$('#navCommitment').slideToggle(400);
});
$('#our-story-btn').click(function(){
	$('#navOurStory').slideToggle(400);
});

$('.navItem img, #indexMain a img, #dailycandy').mouseenter(function(){
	$(this).fadeTo(250, 0.7);
});

$('.navItem img, #indexMain a img, #dailycandy').mouseleave(function(){
	$(this).fadeTo(150, 1);
});

$('.social-icons a img').mouseenter(function(){
	$(this).fadeTo(200, 0.7);									 
});
$('.social-icons a img').mouseleave(function(){
	$(this).fadeTo(150, 1);									 
});


/*impact ticker*/
var ticker = "<div id=\"impact\"><div id=\"impact-left\">With your help, The Clarity Project has funded: &nbsp;</div><div id=\"impact-right\"><span><strong>700</strong> Students in Kono, Sierra Leone</span><span><strong>4</strong> Years worth of teacher salaries &nbsp;&nbsp;&nbsp;</span><span><strong>300</strong> Books for Adult Literacy Programs</span></div></div>";

$('body').prepend(ticker);

$('#impact-right').cycle({
	timeout: 5000, cleartype: 1, speed: 750
});

