/* Create a PayPal option */
function payPalOption(id,paypal_option,price) {
	this.id = id;
	this.paypal_option = paypal_option;
	this.price = price;
}

/***************************************************************************
* Update the PayPal submission form with the price and item description *
* When a user selects an option from the list *
***************************************************************************/
function updateItemValues(form,id) {
	for (i = 0 ; i < paypalOptions.length; i ++) {
		if (paypalOptions[i].id == id) {
			form.amount.value = paypalOptions[i].price;
			form.item_name.value = paypalOptions[i].paypal_option;
			break;
		}	
	}
}

/***************************************************************************
* Create the array of PayPal options. This contains all options for the *
* site. The options available for a given photo are hardwired into the *
* photo page which is why we can't use the quick browse methods on PayPal *
* enabled sites *
***************************************************************************/
paypalOptions = new Array();
paypalOptions[0] = new payPalOption(31674,'12x8 Print only','28.00');
paypalOptions[1] = new payPalOption(31675,'12x8 With mount','32.00');
paypalOptions[2] = new payPalOption(31676,'18x12 Print only','40.00');
paypalOptions[3] = new payPalOption(31677,'18x12 With mount','45.00');
paypalOptions[4] = new payPalOption(31670,'10x10 Print only','28.00');
paypalOptions[5] = new payPalOption(31671,'10x10 With mount','32.00');
paypalOptions[6] = new payPalOption(31672,'12x12 Print only','32.00');
paypalOptions[7] = new payPalOption(31673,'12x12 With mount','38.00');
paypalOptions[8] = new payPalOption(31678,'20x16 Print only','90.00');
paypalOptions[9] = new payPalOption(31679,'20x16 With mount','160.00');
paypalOptions[10] = new payPalOption(31680,'20x16 Framed print','250.00');
paypalOptions[11] = new payPalOption(31683,'18x6 Print only','32.00');
paypalOptions[12] = new payPalOption(31684,'18x6 With mount','38.00');
paypalOptions[13] = new payPalOption(31681,'24x8 Print only','38.00');
paypalOptions[14] = new payPalOption(31682,'24x8 With mount','42.00');

