$(document).ready(function() {

	// Expand Panel
	$("#openDonate").click(function(){
		$("div#donatePanel").animate({width: 'show'});
		$("div.donateTab").animate({right: '270px'});
	});
	
	// Collapse Panel
	$("#closeDonate").click(function(){
		$("div#donatePanel").animate({width: 'hide'});
		$("div.donateTab").animate({right: '0px'});
	});
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggleDonate a").click(function () {
		$("#toggleDonate a").toggle();
	});
	
	// Expand Panel
	$("#openSponsors").click(function(){
		$("div#sponsorsPanel").animate({width: 'show'});
		$("div.sponsorsTab").animate({left: '270px'});
	});
	
	// Collapse Panel
	$("#closeSponsors").click(function(){
		$("div#sponsorsPanel").animate({width: 'hide'});
		$("div.sponsorsTab").animate({left: '0px'});
	});
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggleSponsors a").click(function () {
		$("#toggleSponsors a").toggle();
	});
		
});