// Hidden Earth Booking Form
// Copyright 2007 David Gibson
// This file is catalogue-specific - not a 'shared' file
// This file contains text specific to the year 2007, which must be edited for 2008

// ** no prices altered for 2008 **
// ** This file has to reside in two locations: <caves.org.uk/payments/he08> and <hidden-earth.org.uk/prices.js>

// Set up fees and list Form element names for convenience

fees = new Array(1);  // make array intentionally too small
j=0;

fees[j++] = 15; // 0	Saturday, on the door
fees[j++] = 15;	// 1	Sunday, on the door
fees[j++] = 25;	// 2	Weekend, on the door
fees[j++] = 13;	// 3	NAME="saturday"
fees[j++] = 13;	// 4	NAME="sunday"
fees[j++] = 22;	// 5	NAME="weekend"	NAME="fee_weekend"
fees[j++] = 1;	// 6	NAME="member"	NAME="fee_member"
fees[j++] = 2;	// 7	NAME="package"	NAME="fee_package"
fees[j++] = 2;	// 8	NAME="group" 	NAME="fee_group" 
		// 	NAME="lecturer" NAME="fee_lecturer"
		// 	NAME="child"	NAME="fee_child"
		//	 <OPTION VALUE="0">No discount</OPTION> 
		//	 <OPTION VALUE="1"><12s, 50%</OPTION> 
		//	 <OPTION VALUE="2"><18s, 25%</OPTION> 
fees[j++] = 14;	// 9	NAME="dinner"	NAME="fee_dinner"
		//	 <OPTION VALUE="0">No meal</OPTION> 
		//	 <OPTION VALUE="1">Meat option</OPTION> 
		//	 <OPTION VALUE="2">Vege option</OPTION> 
fees[j++] = 5;	// 10	NAME="stomp"	NAME="fee_stomp" 
fees[j++] = 10;	// 11	NAME="tshirt"	NAME="fee_tshirt"
		//	 <OPTION VALUE="0">No T-shirt</OPTION> 
		//	 <OPTION VALUE="1">Size S</OPTION> 
		//	 <OPTION VALUE="2">Size M</OPTION> 
		//	 <OPTION VALUE="3">Size L</OPTION> 
		//	 <OPTION VALUE="4">Size XL</OPTION> 
		//	 <OPTION VALUE="5">Size XXL</OPTION> 
fees[j++] = 5;	// 12	NAME="camping"	NAME="fee_camping"

		//	NAME="poster"	
		//	NAME="display" 
		//	NAME="stand"
fees[j++] = 10;	// 13	NAME="tables"	NAME="fee_tables"
		//	 <OPTION VALUE="0">No extras</OPTION> 
		//	 <OPTION VALUE="1">1 extra</OPTION> 
		//	 <OPTION VALUE="2">2 extra</OPTION> 
		//	 <OPTION VALUE="3">3 extra</OPTION> 
fees[j++] = 5;	// 14	NAME="power"	NAME="fee_power"

jmax = j-1;
j=0;

function writeFee(s1,s2)
  // Fees must be integer pounds for this function.
  // Write Fee with optional string arguments either side.
  // (Needed because my HTML editor inserts unwanted spaces around SCRIPT tags)

  // Firefox is a pain! it wont accept 'null' in JS1.2 (see book) so we have 
  // to use undefined instead, viz:
     // var undefined;  // undefined is a variable wihch is undefined because it has not been given a value
     // if (s1 === undefined) { s1 = ''}
     // if (s2 === undefined) { s2 = ''}
  // But, in fact, I can solve this by just deleting the language=JS1.2, since this
  // file does not need it.

  {
  if (s1 == null) { s1 = ''}
  if (s2 == null) { s2 = ''}
  document.write(s1, fees[j++], s2);
  if (j > jmax) { j = 0; }
  document.close();
  }

