/************************************************************************
			Instructions
The products are listed in the Array below. There is one entry per item. 
The first field is the product id. This is not related to the product numbers
you have on the page. These must begin at 0 and be consecutive with no gaps.

The second field is the product name. This is what will appear in the paypal shopping cart.

The third field is the price of the item. Note there are no quotes.

Make sure to put a comma after every line but the last or it will not work.


To add an item to the actual web page you need to have three fields: quantity (where the user enters the quantity),
disp_quantity (the quantity in the "Your Order Section")  and total (the total for this item in the "Your Order Section").


The quantity field should look like this: 
<input name="qtyporc" type="text" class="quant" id="quantity_x" onfocus="blankQuantity(event.target);" onchange="updateFields();"  value="0" size="3"/>

You can add whatever you need to this for formatting but it must have the id set equal to "quantity_x" where x is the id from the array below. 
Also the onfocus and onchange events need to be present.


The disp_quantity field should look like this:
<input class="order" type="text" name="textfieldName" readonly="readonly" size="8" id="disp_quantity_x"/>

The id must be set to "disp_quantity_x" where x is the id from the array. Everything else you can change.

The total field should look like this:
<input class="order" type="text" name="textfieldName" readonly="readonly" size="8" id="total_x"/>

The id must be set to "total_x" where x is the id from the array. Everything else you can change.

If you add those 3 fields to the page and add the line below, it will hook everything up for you.

The other fields you can do whatever you want to, but they must all keep the same id they have now. Those fields are:
subtotal, shipping, grandtotal, note and gift_wrap.

The image for the billing button must be set in the file below. It cannot be placed in the page because it has to be wired up to pay pal.
I had to make it a static image but you can change the src image if you want. You must leave the name field as "submit" or it will not function. 
You can change the height and width etc.

A note about the note: I made it so that when you click on the note field it makes the "Please write your note here." text dissapear. That way people
don't have to erase it themselves. However for this to work properly the defaultNoteText property in the file below must be set to EXACTLY the same text
as the note textarea. This is neccessary to prevent me from erasing peoples notes when they click in the box a second time.

Also, the note will appear next to the "custom" field when you look at a transaction detail in paypal.

*************************************************************************/

var products = new Array;
products =[
		new Array(0, 'Bacon Scarf', 35.00, 0),
		new Array(1, 'Pencil Case', 35.00, 0),
		new Array(2, 'Count the Triangles', 15.00, 0),
		new Array(3, 'The Best', 10.00, 0),	
		new Array(4, 'Tongue Depressor', 1.00, 0),
		new Array(5, 'Spare Button', 15.00, 0),
		new Array(6, 'Five Year Diary', 24.95, 1),
		new Array(7, '16 Ton Doorstop', 40.00, 0),
		new Array(8, 'The Pining Porcupine', 12.00, 0),
		new Array(9, 'Honest Abe.', 15.00, 0),
		new Array(10, 'Tank Yew Vedy Much', 12.00, 0),
		new Array(11, 'The Bawling Berry', 12.00, 0),
		new Array(12, 'Snow Bunny', 15.00, 0),
		new Array(13, 'Nudisme', 12.50, 0),
		new Array(14, 'Washington Walnuts', 15.00, 0),
		new Array(15, 'Edo Napkins', 48.50, 0),
		new Array(16, 'Wolfie', 24.99, 0),
		new Array(17, 'Flynn Matchbook', .75, 0),
		new Array(18, 'Letterhead', 9.99, 0)
		];

var paypalAccount = "tamara@modwest.com";

var billingImage = '<input type="image" src="media/SGSNEWSMALLS/billingbuttons/billing_over.jpg" width="126" height="32" border="0 name="submit" alt="Pay With PayPal">'; 


var firstShippingPrice = 6.00;
var additionalShippingPrice = .25;


