$(document).ready(
	function() {
		
		$('.button').click(
			function() {
				
				$('#os0').val($(this).attr('name'));
				$('#paypal-form').submit();
			}
		);
		
		$('a[href^=http]:not([href^=http://' + location.host + ']):not([href^=https://' + location.host + '])').live(
			'click',
			function() {
				
				window.open($(this).attr('href'), $(this).text());
				return false;
			}
		);
	}
);
