/* Simple Authorize Payments WPversion 1Visit http://www.social-ink.net/blog/simple-authorize-payments-wordpress-plugin-collect-donations-payments-on-your-site-echeck-credit-cardThis plugin to securely integrate Authorize.net payment-acceptance with your WordPress install.  Use for donations, contributions, memberships, etc. Copyright 2011  Yonatan Reinberg (email : yoni [a t ] s o cia l-ink DOT net) - http://social-ink.net*//* 	jQuery for AJAX and other in-page features*/	jQuery(document).ready(function($) {						/* Other/multiple choice */	$('.contribution_choices').click(function() {		$('#contributionAmount_other').val("");	});						$('#contributionAmount_other').click(function() {		$('.contribution_choices').attr('checked', false);	});				/* payment option */		$('.paymentoption').hide();					$('#link_paytype_creditcard').click(function() {		$('#payment_echeck').removeClass('paymentoption');		$('#payment_creditcard').addClass('paymentoption');				$('#payment_echeck').slideUp();		$('#payment_echeck :input').removeClass('required');				//add validation classes in the credit card section						$('#payment_creditcard :input').addClass('required');			$('#contrib_cvv').addClass('number');			$('#contrib_cardnumber').addClass('creditcard');					$('#payment_creditcard').slideDown();				$('#contrib_frequency').attr('disabled', false);		$('#contrib_frequency_msg').hide();	});				$('#link_paytype_echeck').click(function() {		$('#payment_creditcard').removeClass('paymentoption');		$('#payment_echeck').addClass('paymentoption');				$('#payment_creditcard').slideUp();		$('#payment_creditcard :input').removeClass('required');								//add validation classes in echeck sections		$('#payment_echeck :input').addClass('required');			$('#x_bank_acct_num').addClass('number');					$('#payment_echeck').slideDown();		$('#contrib_frequency').attr('disabled', true);		$('#contrib_frequency_msg').show();	});										/* payment option and echeck */		$('#contrib_frequency').click(function() {		var id = $("input[@name=paytype]:checked").attr('id');				if(id == 'link_paytype_echeck')			alert("Sorry, you cannot make a recurring payment with eCheck.  Please close this box and choose credit card payment to make a recurring donation.");		});					/* CCV BOX */		$('#show_ccv').click(function() {			$('#ccv_info').slideToggle();		return false;			});	});
