/* 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(6445,'Large Square Print Only','160.00');
paypalOptions[1] = new payPalOption(6344,'Small Square Print Only','100.00');
paypalOptions[2] = new payPalOption(6762,'Large Square Print Mounted','190.00');
paypalOptions[3] = new payPalOption(6763,'Small Square Print Mounted','120.00');
paypalOptions[4] = new payPalOption(6764,'Large Square Print Framed','270.00');
paypalOptions[5] = new payPalOption(6765,'Small Square Print Framed','170.00');
paypalOptions[6] = new payPalOption(6446,'Large Portrait Print Only','180.00');
paypalOptions[7] = new payPalOption(6447,'Small Portrait Print Only','120.00');
paypalOptions[8] = new payPalOption(6766,'Large Portrait Print Mounted','210.00');
paypalOptions[9] = new payPalOption(6767,'Small Portrait Print Mounted','140.00');
paypalOptions[10] = new payPalOption(6768,'Large Portrait Print Framed','295.00');
paypalOptions[11] = new payPalOption(6769,'Small Portrait Print Framed','195.00');
paypalOptions[12] = new payPalOption(6448,'Large Landscape Print Only','180.00');
paypalOptions[13] = new payPalOption(6449,'Small Landscape Print Only','120.00');
paypalOptions[14] = new payPalOption(6770,'Large Landscape Print Mounted','210.00');
paypalOptions[15] = new payPalOption(6771,'Small Landscape Print Mounted','140.00');
paypalOptions[16] = new payPalOption(6772,'Large Landscape Print Framed','295.00');
paypalOptions[17] = new payPalOption(6773,'Small Landscape Print Framed','195.00');
paypalOptions[18] = new payPalOption(6450,'Large Panoramic Print Only','250.00');
paypalOptions[19] = new payPalOption(6451,'Small Panoramic Print Only','160.00');
paypalOptions[20] = new payPalOption(6774,'Large Panoramic Print Mounted','290.00');
paypalOptions[21] = new payPalOption(6775,'Small Panoramic Print Mounted','190.00');
paypalOptions[22] = new payPalOption(6776,'Large Panoramic Print Framed','395.00');
paypalOptions[23] = new payPalOption(6777,'Small Panoramic Print Framed','295.00');

