/* 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(8086,'12x8 Matte','17.00');
paypalOptions[1] = new payPalOption(8085,'12x8 Mettalic','22.00');
paypalOptions[2] = new payPalOption(8212,'20x16 Matte','27.00');
paypalOptions[3] = new payPalOption(8213,'20x16 Metallic','35.00');
paypalOptions[4] = new payPalOption(8210,'20x6.5 Matte','22.00');
paypalOptions[5] = new payPalOption(8211,'20x6.5 Metallic','25.00');
paypalOptions[6] = new payPalOption(8214,'30x10 Matte','67.00');
paypalOptions[7] = new payPalOption(8215,'30x10 Metallic','85.00');
paypalOptions[8] = new payPalOption(8216,'30x20 Matte','77.00');
paypalOptions[9] = new payPalOption(8217,'30x20 Metallic','95.00');
paypalOptions[10] = new payPalOption(8219,'45x15 Matte','162.00');
paypalOptions[11] = new payPalOption(8218,'45x15 Metallic','202.00');
paypalOptions[12] = new payPalOption(8220,'50x30 Matte','172.00');
paypalOptions[13] = new payPalOption(8221,'50x30 Metallic','215.00');

