// How to change the pricing: Read and understand these comments. Change the price_increase constant at the top of this file.  Then check and change the exceptions. Be sure that they are put in correctly by hand or change the exception to increase to 1.12 for a ten percent increase from 2011 for example.

// How the calculator works:
// price: is the cost of 75 of those things.  
// Price25 is how much more for an additional 25 of that thing.... (but only after 200 quantity).  
// For quantities of 100, 125, 150, 175, and 200 the price is calculated like this: 
//  --  quantity 100 costs price + 11%
//  --  quantity 125 costs (price + 11%) + 9% 
//  --  quantity 150 costs ((price + 11%) + 9%) + 8%
//  --  quantity 175 costs (((price + 11%) + 9%) + 8%) + 7%
//  --  quantity 200 costs ((((price + 11%) + 9%) + 8%) + 7%) + 6%

// 12% Price increase of 2011:
// Exceptions to 2011 price upping: (You have to change these by hand or multiply by the price_increase variable) 
//  --  UNPRINTED ENVELOPE LINER:   price left alone in 2011
//  --  2nd ink 350:                price left alone in 2011
//  --  rounded corners 55:         increased to an even, particular amount in 2011
//  --  two sided printing 325:     increased to an even, particular amount in 2011

// I did the increase by multiplying MOST of the prices by 1.1.
// to up the price again in a few years say another 10% for example just change these two numbers. Change price_increase to 1.2 for a total of a 20% increase from when the site started. And then change exception_to_increase to 1.1 to up those special specified prices ten percent from the proper price in 2011: 
var price_increase = 1.12;
var exception_to_increase = 1;


// Element options are reference by ID number; actual names and so forth are in the markup
// These elements are unique to various styles
var indie_elements = {
	'1': { // style 1, tier 1
		name: 'MAIN ENVELOPE, INVITATION, REPLY SET',
		price: 1155 * price_increase,
		price25: 83 * price_increase,
		ink: 4,
		corners: 2,
		twosided: 2
	},
	'2': { // style 1, tier 2
		name: 'MAIN ENVELOPE, INVITATION, REPLY SET, 1 EXTRA CARD*',
		price: 1441 * price_increase,
		price25: 105 * price_increase,
		ink: 5,
		corners: 3,
		twosided: 3
	},
	'3': { // style 1, tier 3
		name: 'MAIN ENVELOPE, INVITATION, REPLY SET, 3 EXTRA CARDS*',
		price: 1964 * price_increase,
		price25: 137 * price_increase,
		ink: 7,
		corners: 5,
		twosided: 5
	},
	'4': { // belly band
		name: 'BELLY BAND',
		price: 275 * price_increase,
		price25: 44 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 0
	},
	'5': { // folder
		name: 'FOLDER',
		price: 347 * price_increase,
		price25: 50 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 1
	},
	'6': { // style 2, tier 1
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, REPLY SET',
		price: 1403 * price_increase,
		price25: 88 * price_increase,
		ink: 5,
		corners: 0,
		twosided: 3
	},
	'7': { // style 2, tier 2
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, REPLY SET, 1 EXTRA CARD*',
		price: 1678 * price_increase,
		price25: 110 * price_increase,
		ink: 6,
		corners: 0,
		twosided: 4
	},
	'8': { // style 2, tier 3
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, REPLY SET, 3 EXTRA CARDS*',
		price: 2217 * price_increase,
		price25: 149 * price_increase,
		ink: 8,
		corners: 0,
		twosided: 6
	},
	'9': { // style 3, tier 1
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, STAMP, REPLY SET',
		price: 1403 * price_increase,
		price25: 88 * price_increase,
		ink: 6,
		corners: 0,
		twosided: 3
	},
	'10': { // style 3, tier 2
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, STAMP, REPLY SET, 1 EXTRA CARD*',
		price: 1678 * price_increase,
		price25: 110 * price_increase,
		ink: 7,
		corners: 0,
		twosided: 4
	},
	'11': { // style 3, tier 3
		name: 'MAIN ENVELOPE, INVITATION & FOLDER, STAMP, REPLY SET, 3 EXTRA CARDS*',
		price: 2217 * price_increase,
		price25: 149 * price_increase,
		ink: 9,
		corners: 0,
		twosided: 6
	},
	'12': { // custom icon
		name: 'CUSTOM ICON',
		flat: 165 * price_increase
	},
	'13': { // stamp
		name: 'CUSTOM DESIGNED STAMP',
		flat: 165 * price_increase
	},
	'14': { // calligraphy
		name: 'CUSTOM CALLIGRAPHY',
		peritem: 28 * price_increase,
		select_id: 'el_quantity_words'
	}
};

// These elements are available regardless of style
var univ_elements = {
	'1': { // envelope liners
		name: 'UNPRINTED ENVELOPE LINER',
		price25: 43.75 * exception_to_increase // 1.75 per liner
	},
	'14': {
		name: 'PRINTED ENVELOPE LINER',
		price25: 103.12 * price_increase // 3.75 per liner plus 12%
	},
	'2': { // save the date
		name: 'SAVE THE DATE SET (2 CARDS WITH ENVELOPE)',
		price: 605 * price_increase,
		price25: 39 * price_increase,
		ink: 3,
		corners: 2,
		twosided: 2
	},
	'3': { // flat thank you
		name: 'FLAT THANK YOU SET',
		price: 429 * price_increase,
		price25: 33 * price_increase,
		ink: 2,
		corners: 1,
		twosided: 1
	},
	'4': { // folded thank you
		name: 'FOLDED THANK YOU SET',
		price: 616 * price_increase,
		price25: 39 * price_increase,
		ink: 2,
		corners: 0,
		twosided: 1
	},
	'5': { // menu
		name: 'MENU',
		price: 633 * price_increase,
		price25: 39 * price_increase,
		ink: 1,
		corners: 1,
		twosided: 1
	},
	'6': { // map
		name: 'MAP',
		price: 633 * price_increase,
		price25: 39 * price_increase,
		ink: 1,
		corners: 1,
		twosided: 1
	},
	'7': { // single program card
		name: 'SINGLE PROGRAM CARD',
		price: 660 * price_increase,
		price25: 39 * price_increase,
		ink: 1,
		corners: 1,
		twosided: 1
	},
	'8': { // single program folder
		name: 'PROGRAM FOLDER',
		price: 660 * price_increase,
		price25: 39 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 1
	},
	'9': { // flat place card
		name: 'FLAT PLACE CARD',
		price: 215 * price_increase,
		price25: 11 * price_increase,
		ink: 1,
		corners: 1,
		twosided: 1
	},
	'10': { // folded place card
		name: 'FOLDED PLACE CARD',
		price: 297 * price_increase,
		price25: 17 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 1
	},
	'11': { // extra card, flat
		name: 'EXTRA CARD, FLAT*',
		price: 407 * price_increase,
		price25: 33 * price_increase,
		ink: 1,
		corners: 1,
		twosided: 1
	},
	'12': { // extra card, folded
		name: 'EXTRA CARD, FOLDED*',
		price: 594 * price_increase,
		price25: 36.3 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 1
	},
	'13': { // envelopes
		name: 'EXTRA ENVELOPES',
		price25: 28 * price_increase,
		ink: 1,
		corners: 0,
		twosided: 0
	}
};

var ink_first = 350 * exception_to_increase; // price left alone in 2011
var ink_following = 165 * exception_to_increase;	//left as is in 2011
var corners = 55 * exception_to_increase;  // increased to a even particular amount in 2011
var twosided = 325 * exception_to_increase; // increased to a even particular amount in 2011
