/* special paypal */
function paypalCreditChange(e){
	e = $(e);
	var o = eval('p'+e.val());
	paypalBuy(o);
	var html = o.label;
	if(o.free>0)
		html += '<br /><span class="pt">'+o.free+'% de bonus !</span>';

	$('#paypalBo').html(html);
}

function paypalBuy(o){
	if($('#amount').length>0)		$('#amount').val(o.usd);
	if($('#item_name').length>0)	$('#item_name').val('Achat de '+o.label + ' sur www.spacefight.fr');
	if($('#item_number').length>0)	$('#item_number').val(o.usd);
}


/* commun */

function Palier(usd, galaxor, free, label){
	this.usd	=	usd;
	this.galaxor = galaxor;
	this.free	=	free;
	this.label	=	label;
}



/*autre fichier*/

/* special paypal */
function paypalBoChange(e){
	e = $(e);
	var o = eval('p'+e.val());
	paypalBuy(o);
	var html = o.label;
	//alert(html);
	if(o.free>0)
		html += '<br /><span class="pt">'+o.free+'% de bonus !</span>';

	$('#paypalBo').html(html);
}
