$(document).ready(function() {
	$(".alpinist").click(function() {
		$('#localfeed').hide();
		var alpinist = "http://feeds.feedburner.com/alpinist/Efcn";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: alpinist
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});

$(document).ready(function() {
	$(".access_fund").click(function() {
		$('#localfeed').hide();
		var access_fund = "http://www.accessfund.org/site/apps/nl/rss2.asp?c=tmL5KhNWLrH&b=5071835";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: access_fund
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});

$(document).ready(function() {
	$(".climbing").click(function() {
		$('#localfeed').hide();
		var climbing = "http://www.climbing.com/news/hotflashes/rss/standard_rss.xml";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: climbing
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});

$(document).ready(function() {
	$(".rockandice").click(function() {
		$('#localfeed').hide();
		var rockandice = "http://www.rockandice.com/newsfeed.xml";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: rockandice
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});

$(document).ready(function() {
	$(".youtube").click(function() {
		$('#localfeed').hide();
		var youtube = "http://gdata.youtube.com/feeds/base/users/AmericanAlpineClub/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: youtube
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});

$(document).ready(function() {
	$(".aaj").click(function() {
		$('#localfeed').hide();
		var aaj = "http://aaj.americanalpineclub.org/feed/";

		$('#contentLoading').ajaxSend(function(){
			$("#contentLoading").show();
		});

		$('#contentLoading').ajaxStop(function(){
			$("#contentLoading").fadeOut("fast");
		});

		$.post('./include/utilities/newsfeed.inc.php',  {
		 url: aaj
		 }, function(txt) {
			  $('#newsfeed').fadeIn("fast").html(txt);
		});

		return false;
	 });
});



$(document).ready(function() {
	$("#contentLoading").hide();
	$(".aac").click(function() {
		$('#localfeed').fadeIn("fast").show();
		$('#newsfeed').hide();
		$("#contentLoading").hide();
		return false;
	 });
});