/**
 *	NS Application Config
 *	--------------------------
 *	Lost Boys - http://www.lostboys.nl
 *
 *	This file contains message and url properties for all applications within 
 *	the NS website. The generic POST urls "autocomplete" and "validate" are 
 *	defaults unless overwritten by individual applications.
 *	Applications may do so by adding a hidden input to the app's <form> with
 *	the same name as the global variable's. The input's value then indicates 
 *	the alternate url to post to.
 *	
 */


var Globals = {
		
	// messages
	MSG_REQUIRED:				'Niet alle verplichte velden zijn (juist) ingevuld.',
	MSG_ILLEGAL:				'Niet alle velden zijn (juist) ingevuld',
	MSG_DEPENDENT:				'Het veld is afhankelijk van een ander veld.',
	MSG_LOADING:				'Ik ben bezig de juiste informatie voor u op te zoeken. Een ogenblik geduld a.u.b.',
	                    		
	MSG_REQUIRED_EN:			'Not all mandatory fields are filled out correctly.',
	MSG_ILLEGAL_EN:				'Not all fields are filled out correctly.',
	MSG_DEPENDENT_EN:			'the field is dependent on another field.',
	MSG_LOADING_EN:				'[engels] Ik ben bezig de juiste informatie voor u op te zoeken. Een ogenblik geduld a.u.b.',
                        	
                        		                    		
	// locations        		
	URL_PRINT_PREVIEW:			'/ns2009/static/printspipreview.html',
	URL_SHOP_POPUP:				'NS.OVChip.Tx.Uitloggen_BestellingNietGeplaatst.html',
	URL_PRINT_MAP:				'/ns2009/static/printmap.html',
	URL_NETSTAT:				'http://nl.sitestat.com/ns/ns/s',
	

	// generic posts
	POST_AUTOCOMPLETE:			'/applications/post_autocomplete?autocomplete=true',
	POST_VALIDATE:				'/applications/post_validate?validate=true',


	// reisplanner posts
	POST_ALT_TRAVEL:			'/reisplanner-v2/alternativeTravelMethod.ajax',
	POST_ADVICE:				'/reisplanner-v2/tripSchedule.ajax',
	POST_TIMETABLE:	  			'/reisplanner-v2/earlierLater.ajax',
	POST_PREFERENCES:			'/reisplanner/servlet/ReisplannerServlet?datatype=2',
	POST_TICKETRATES:			'/reisplanner-v2/ticketPrice.ajax',
	POST_STOPS:					'/reisplanner-v2/stationFacilities.ajax',
	POST_RETURNFORM:			'/reisplanner-v2/returnTrip.ajax',
	
	GET_REMEMBERED:				'/reisplanner-v2/rememberAddress.ajax',
	
	POST_POI_SEARCH:			'/reisplanner-v2/findPOI.ajax',

	// OV Chip posts
	//To simulate a server error comment next line and uncomment the second next line
	POST_OVCHIP_ORDER:	 		'/applications/post_ovchip_order',
	POST_OVCHIP_DETAILS: 			'/applications/post_ovchip_details',
	//POST_OVCHIP_DETAILS:			'/ns2007/static/xml/ovchipkaart/error.xml',	
	POST_OVCHIP_PRICE:		 	'/applications/post_ovchip_price',
	POST_OVCHIP_NUMBERS:			'/applications/post_ovchip_numbers',


	// tochtenplanner posts
	POST_TOCHT_DETAILS:  		   	'/applications/post_tocht_details?pagename=NS2007/Tocht_C/XMLTochtDetail',                              
	POST_TOCHT_OPTIONS:     		'/applications/post_tocht_options?pagename=NS2007/XMLTochtenFilter',                                    
	POST_TOCHT_RECOMMEND	:		'/applications/post_tocht_recommend?pagename=NS2007/Tocht_C/EMailTochtMening',                            
	
	
	// actuele vertrektijden posts
	POST_AVT_DETAILS: 			'/actuele-vertrektijden/main.action?xml=true',
	//POST_AVT_DETAILS: '/ns2007/static/xml/actuele-vertrektijden/error.xml', // error demo

	// stationsvoorzieningen posts
	POST_FACILITIES: 			'/applications/post_facilities?pagename=NS2007/Service/FacilityOnStationXML',	
	

	// wonderkaartje posts
	POST_WK_REDUCTIE:   			'wonderkaartje.ajax?actionTypeSelected=REDUCTION',
	POST_WK_CARDTYPES:   			'wonderkaartje.ajax?actionTypeSelected=CARDTYPE',
	POST_WK_ARRIVALSTATION:  		'wonderkaartje.ajax?actionTypeSelected=ARRIVALSTATION', 	

	// Vergaderen posts
	POST_MEETINGS:				'/applications/vergaderstations.xml',
	
	// vraag en antwoord
	POST_VEA_FORM:        		'/zva/escalation?ajaxRequest=true',
	POST_VEA_DETAILS:			'/zva/VraagEnAntwoordResult',
	POST_VEA_ZIP:				'/autocomplete-service/address.do',
	GET_VEA_LOADER:				'/ns2009/static/images/icons/loader.gif',
	GET_VEA_AGENT:				'/ns2009/static/swf/vera.swf',
	GET_VEA_BASE:				'/ns2009/static/swf/',
	
	// JKF
	POST_JKF_ZIP:				'/ns2007/static/xml/jkf/zipcode.xml',

	// alt locations for searching, contains static html fragments
	GET_ALT_LOCATIONS:			'/applications/get_alt_locations?alt=true',

	//static servicepunten info
	GET_SERVICEPOINTS_INFO:			'/applications/get_servicepoints_info',


	//static vergoedingen info
	GET_COMPENSATION_INFO:			'/applications/get_compensation_info',


	// static recommendation form
	GET_RECOMMENDATION_FORM:		'/ns2007/static/xml/tochtenplanner/aanbevelenform.xml',
	
	
	// external locations, used for dialogs
	URL_STATION_VERTREKTIJDEN:		'/actuele-vertrektijden/main.link',
	URL_STATION_VOORZIENINGEN:		'/cs/Satellite?pagename=NS2007/Generic/GetStation',
		
	// poll results
	GET_POLL_RESULTS: '/crmod/poll',

	// send a friend feedback
	GET_SENDAFRIEND_FEEDBACK: '/crmod/sendafriend',
	
	// google api
	GOOGLE_API_KEY: 'ABQIAAAAPH6o7faFXMWMROx8H_aMRxTBY95LTLJJs3ptoRrBw3KontYlXhRDkhzknbQYhqmUbv43dS2So07u-Q',
	GOOGLE_API_URL: 'http://www.google.com/jsapi'
};
