/**
 * help.js
 * Last Modified: 20 June 2006 11:40
 * Purpose: Creates an alert box containing help text
 *			that is dependent upon the argument.
 */

function help(which) {
	var help_string;
	
	switch (which) {
		case 'state': help_string = 'Enter in the State locate in two letter abbreviated format';break;
		case 'zip'  : help_string = 'Type in zip code using five number format';break;
		case 'city' : help_string = 'Select a city location from the drop down menu\n' +
									'Also hold down the Ctrl button to select multiple cities';break;
		case 'price': help_string = 'Type in a minimum dollar amount in the first box, and\n' +
									'a maximum dollar amount in the second box to view all\n' +
									'restaurants in your selected price range, such as 5 to\n' +
									'10 dollars. To indicate five dollars, type in 5. There is\n' +
									'no need to add zeroes. To indicate five dollars and fifty\n' +
									'cents, type in 5.50. DO NOT TYPE IN A DOLLAR SIGN ($)!'; break;
		case 'cuisine': help_string = 'Select desired cuisine type.'; break;
		case 'setting': help_string = 'This indicates the type of atmosphere, from casual to\n' +
									  'formal, which may determine how you need to dress (a\n' +
									  'tie or jacket for men at a formal restaurant), or the\n' +
									  'level of service expected.'; break;
		case 'payment': help_string = 'The restaurant will accept the following types of\n' +
									  'American currency as payment such as checks and\n' +
									  'specific credit cards.'; break;
		case 'smoking': help_string = 'This indicates whether the restaurant allows\n' +
									  'smoking on its property. This may be indoors\n' +
									  'or outdoors.'; break;
		case 'live_music': help_string = 'A singer or band entertains the restaurant\n' +
										 'patrons at a specific time. Usually, this\n' +
										 'occurs in the evening and on weekends.'; break;
		case 'outdoor': help_string = 'This indicates whether the customer can dine\n' +
									  'in a confined area outdoors. This does not\n' +
									  'indicate whether the customer receives full\n' +
									  'waiter/waitress service while outdoors.'; break;
		case 'kids': help_string = 'Some restaurants offer a specific menu and\n' +
								   'pricing for children under a certain age.'; break;
		case 'delivery': help_string = 'Indicates whether the restaurant will deliver\n' +
									   'your meal to your home. Some restaurants will\n' +
									   'do this for free, while others will add a\n' +
									   'charge to your bill.'; break;
		case 'buffet': help_string = 'Indicates whether the restaurant offers a serve\n' +
									 'yourself system of menu choices.'; break;
		case 'alcohol': help_string = 'Beer, wine or hard liquor is sold.'; break;
		case 'handicap': help_string = 'The restaurant offers wheelchair access in and\n' +
									   'out of their establishment.'; break;
		case 'party': help_string = 'Customers (usually more than 10 in number) can reserve a\n' +
									'dining room that is away from the main part of the\n' +
									'restaurant, offering privacy.'; break;
		case 'open': help_string = 'By selecting certain criteria, you are able to view restaurants\n' +
								   'that are open on a specific day or hour.\n\n' +
								   'Any day ? You must select a day of the week in order for\n' +
								   'the guide to determine which restaurants are open on a\n' +
								   'specific day.\n' +
								   'Time: Click on the clock to select a specific time to\n' +
								   'determine which restaurants are open at that time of\n' +
								   'the day.\n' +
								   'Open now: By clicking on this button, you will be\n' +
								   'given a list of restaurants that are open right now.\n' +
								   'Clear Time: By clicking on this button, you will\n' +
								   'erase the time you selected and can start over.\n' +
								   'AM/PM: You must select one of these to determine\n' +
								   'which time of the day restaurants are open for your\n' +
								   'search.'; break;
		case 'reservations': help_string = 'The restaurant allows reservations to be made in advance.'; break;
		case 'call_ahead': help_string = 'The restaurant allows you to call ahead and arrange seating.'; break;
		
		// RESTAURANT EDITOR
		case 'a_name': help_string = 'This is where you enter the name of your restaurant.'; break;
		case 'a_address1': help_string = 'This is where you enter the address of your restaurant.'; break;
		case 'a_address2': help_string = 'In this field you enter the second line of your address if applicable.'; break;
		case 'a_city': help_string = 'In this field you enter the city/town where your restaurant is located.'; break;
		case 'a_state': help_string = 'In this field you enter the state where your restaurant is located.'; break;
		case 'a_zip': help_string = 'In this field you enter the ZIP code of the location of your restaurant.'; break;
		case 'a_phone': help_string = 'In this field you enter the phone number for your restaurant.'; break;
		case 'a_url': help_string = 'In this field you enter the web page link for your restaurant.'; break;
		case 'a_email': help_string = 'In this field you enter your own e-mail address. It is not going to\n' +
									  'be available to the web page visitors.'; break;
		case 'a_pw': help_string = 'In this field you enter your password which you would always use in order\n' +
								   'to make any changes on the web page of your restaurant.'; break;
		case 'a_info': help_string = 'In this field you enter the information about your restaurant (your\n' +
									 'favorite dishes offered, special nights and special offers, whether\n' +
									 'drive thru is available, work hours, etc.)'; break;
		case 'a_menu_text': help_string = 'In this field you enter information about your menu, specialties,\n' +
										  'types of cuisine, etc.'; break;
		case 'a_menu_file': help_string = 'This is where you upload and save the copy of the menu of your\n' +
										  'restaurant.'; break;
		case 'a_price_max': help_string = 'In this field you enter the maximum price of your dishes offered.'; break;
		case 'a_price_min': help_string = 'In this field you enter the minimum price of your dishes offered.'; break;
		case 'a_veg': help_string = 'In this field you enter the number of vegetarian dishes offered in\n' +
									'your restaurant.'; break;
		case 'a_delivery': help_string = 'In this field you enter whether the delivery of the orders is available.'; break;
		case 'a_buffet': help_string = 'In this field you enter whether there is a buffet at your restaurant.'; break;
		case 'a_smoking': help_string = 'In this field you enter if there is a smoking section available for the\n' +
										'customers at your restaurant.'; break;
		case 'a_outdoors': help_string = 'In this field you enter whether there are any outdoor seats at your restaurant.'; break;
		case 'a_party': help_string = 'In this field you enter if there is a room available for parties\n' +
									  'at your restaurant.'; break;
		case 'a_alcohol': help_string = 'In this field you enter whether your restaurant sells alcohol to the customers.'; break;
		case 'a_kids': help_string = 'In this field you enter whether the kids menu is available at your restaurant.'; break;
		case 'a_handicap': help_string = 'In this field you enter whether there is an access to the restaurant\n' +
										 'available to people with disabilities.'; break;
		case 'a_reservations': help_string = 'In this field you enter whether your customers can make reservations\n' +
											 'to dine at your restaurant at a particular time.'; break;
		case 'a_call': help_string = 'In this field you enter whether your customers are allowed to call and\n' +
									 'have their party added to the waiting list before they arrive to the restaurant.'; break;
		case 'a_live': help_string = 'This is where you enter whether you have live music at your restaurant\n' +
									 '(\'call for details\' option is available).'; break;
		case 'a_setting': help_string = 'In this field you enter whether the setting inside your restaurant is\n' +
										'casual, formal, or semi-formal.'; break;
		case 'a_cuisine': help_string = 'In this field you enter the type/types of cuisine served at your restaurant.\n' +
										'In order to select more than one type of cuisine, you should press the \'ctrl\'' +
										' key to select multiple types.'; break;
		case 'a_payment': help_string = 'In this field you chose the type/types of payment methods accepted at your\n' +
										'restaurant. In order to select more than one payment type, you should press\n' +
										'the \'ctrl\' key to select multiple types.'; break;
		case 'a_time': help_string = 'In these fields you insert the hours of when your restaurant works. In order\n' +
									 'to select your hours, you may select them manually by clicking on each field\n' +
									 'separately, or you also can click on a clock picture next to each field in\n' +
									 'order to select the desirable hour.'; break;
		case 'a_media': help_string = 'This is where you attach the pictures to the main page of your web page\n' +
									  'for the visitors to look at.\n\n' +
									  'When you are done with entering of your changes, please, do not forget\n' +
									  'to save them and then logout from the restaurant editor\'s page.'; break;
	}
	alert(help_string);
}