// Clear Input v2.0 | David Link | upsidestudio.com
// Requires jQuery
$(document).ready(function(){
	var fields = new Array();
	var values = new Array();
	
	$('.ci').each(function(i){
		$(this).removeClass('ci').addClass('ci'+i);
		fields.push('ci'+i);
		values.push($(this).val());

		$(this).focus(function(){
			$(this).val('');
		});
		$(this).blur(function(){
			var valStore = values[i];
			if($(this).val()==''){
				$(this).val(valStore);
			}
		});
	});
	$('#volunteer, #donate').hide();
	$('#signup_tab, #volunteer_tab, #donate_tab').click(function(e){
		$('.active').removeClass('active');
		$(this).addClass('active');
		e.preventDefault();
		var tab=$(this).attr('id').replace('_tab','');
		$('#topright div').not('.clear, .buttons').hide();
		$('#'+tab).show();
	})
});