$(document).ready(function(){

	$('#site_map_content').hide();
	
	$('#site_map_tab a').click(function()
	{
			$('#site_map_content').slideToggle('medium');
			//$(this).toggleClass('open');
			return false;
	});
	
	
	
/*
	$('#navigation #donate').hover(function(){
		$('ul', this).css('display', 'block');
		//$('#donate_drop').css('display', 'block');
	}, function(){
		$('ul', this).css('display', 'none');
		//$('#donate_drop').css('display', 'block');
	});
	
	$('#navigation #about').hover(function(){
		$('ul', this).css('display', 'block');
	}, function(){
		$('ul', this).css('display', 'none');
	});
	
	$('#navigation #get_involved').hover(function(){
		$('ul', this).css('display', 'block');
	}, function(){
		$('ul', this).css('display', 'none');
	});
	
	$('#navigation #contact').hover(function(){
		$('ul', this).css('display', 'block');
	}, function(){
		$('ul', this).css('display', 'none');
	});
*/
	

$('#landing_about_mission, #landing_about_news, #landing_about_board, #landing_about_media, #landing_about_kathryn, #landing_about_projects, #landing_about_team, #landing_about_faq, #landing_gi_donate, #landing_gi_chapters, #landing_gi_school, #landing_gi_intern, #landing_gi_event, #landing_gi_rotary, #landing_gi_partners').hover(
			
	function () {
    	$(this).css('border', '1px solid #666');
    	$(this).css('width', '383px');
    	$(this).css('height', '128px');
 	},
  	function () {
    	$(this).css('border', 'none');
    	$(this).css('width', '385px');
    	$(this).css('height', '130px');
  	}

);

//ABOUT

$('#landing_about_mission').click(function(){
  	window.location = '/about_mission.php';
});

$('#landing_about_news').click(function(){
  	window.location = 'http://www.powerupgambia.org/blog';
});

$('#landing_about_board').click(function(){
  	window.location = '/about_board.php';
});

$('#landing_about_media').click(function(){
  	window.location = '/about_media.php';
});

$('#landing_about_kathryn').click(function(){
  	window.location = '/about_kathrynsstory.php';
});

$('#landing_about_projects').click(function(){
  	window.location = '/about_projects.php';
});

$('#landing_about_team').click(function(){
  	window.location = '/about_team.php';
});

$('#landing_about_faq').click(function(){
  	window.location = '/about_faq.php';
});

$('#about_nav li').not('#about_nav .current').hover(
	function(){
		$(this).css('background-color', '#FEB866');
		$(this).children('a').css('color', '#252525');
	},
	function(){
		$(this).css('background-color', '#363636');
		$(this).children('a').css('color', '#b7b7b7');
	}

);

//GET INVOLVED
$('#landing_gi_donate').click(function(){
  	window.location = '/getinvolved_donate.php';
});

$('#landing_gi_chapters').click(function(){
  	window.location = '/getinvolved_chapters.php';
});

$('#landing_gi_school').click(function(){
  	window.location = '/getinvolved_school.php';
});

$('#landing_gi_intern').click(function(){
  	window.location = '/getinvolved_internvolunteer.php';
});

$('#landing_gi_event').click(function(){
  	window.location = '/getinvolved_event.php';
});

$('#landing_gi_rotary').click(function(){
  	window.location = '/getinvolved_rotary.php';
});

$('#landing_gi_partners').click(function(){
  	window.location = '/getinvolved_partner.php';
});




//FAQ
$('#content_bar .faq_section .answer').hide();

$('#content_bar .faq_section').hover(function(){
	$(this).css('cursor', 'default');
});

$('#content_bar .faq_section').click(function()
	{
		//$(this).children('.answer').slideToggle('medium');
		//$(this).children('.faq_indicator').text('Ð');
		//return false;
		
		$(this).children('.answer').slideToggle("medium");
});


//INDEX PAGE

$('#featured').hover(
	function(){
		$('#featured .feat_overlay .over').css('color', '#ff0300');
	},
	function(){
		$('#featured .feat_overlay .over').css('color', '#fff');
	}

);

$('#featured').click(function(){
	window.location = '/about_projects.php';
	$('#featured .feat_overlay .over').css('color', '#fff');
});

$('#link1, #link2, #link3').hover(
	function(){
		$(this).children('.link_overlay').children('.over').css('color', '#ff0300');
	},
	function(){
		$(this).children('.link_overlay').children('.over').css('color', '#fff');
	}

);

$('#link1').click(function(){
	window.location = '/about_mission.php';
	$(this).children('.link_overlay').children('.over').css('color', '#fff');
});

$('#link2').click(function(){
	window.location = '/about_media.php';
	$(this).children('.link_overlay').children('.over').css('color', '#fff');
});

$('#link3').click(function(){
	window.location = '/get_involved.php';
	$(this).children('.link_overlay').children('.over').css('color', '#fff');
});



});
