$(document).ready(init);
function init()
{

	// OPTIONALLY SET THE DATE FORMAT FOR ALL DATE PICKERS ON THIS PAGE
	//$.datePicker.setDateFormat('ymd', '-');
	
	// OPTIONALLY SET THE LANGUAGE DEPENDANT COPY IN THE POPUP CALENDAR

	$.datePicker.setLanguageStrings(
		['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
		['Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December'],
		{p:'Vorige', n:'Volgende', c:'Sluiten', b:'Kies datum'}
	);

//$('selector').datePicker({firstDayOfWeek:1}); // set the calendar weeks to start from Mondays
	
	// DIFFERENT OPTIONS SHOWING HOW YOU MIGHT INITIALISE THE DATE PICKER (UNCOMMENT ONE AT A TIME) //
	
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date in the future
	//$('input.date-picker').datePicker();
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date after 05/03/2006
	//$('input.date-picker').datePicker({startDate:'05/03/2006'});
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date from today till 05/011/2006
$('input.date-picker').datePicker({endDate:'31/12/2020'});
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date from 05/03/2006 till 05/11/2006
	//$('input.date-picker').datePicker({startDate:'05/03/2006', endDate:'05/11/2006'});
	// OR 
	// the input with an id of "date" will have a date picker that lets you pick any day in the future...
	//$('input#date1').datePicker();
	// ...and the input with an id of "date2" will have a date picker that lets you pick any day between the 02/11/2006 and 13/11/2006
	//$('input#date2').datePicker({startDate:'02/11/2006', endDate:'13/11/2006'});

	/*
	// testing code to check the change event is fired...
	$('input#date1').bind(
		'change',
		function()
		{
			alert($(this).val());
		}
	);
	*/
	



/*
Optionally set the date format (possible values are 'dmy' (european), 'mdy' (americian) or 'ymd' (unicode)) [defaults to 'dmy'] and seperator (any character) [defaults to '/']:
$.datePicker.setDateFormat('dmy','/'); // default - UK style
$.datePicker.setDateFormat('ymd','-'); // unicode
$.datePicker.setDateFormat('dmy','.'); // german

And optionally change the displayed language [default strings are in English]:

Then you are ready to initialise your date pickers. The basic syntax for this is as follows:
$('selector').datePicker();

This will add a date picker button to any input element matched by the query selector and the date picker will allow you to select any future date.

You can also optionally pass a start date (the first selectable date) or end date (the last selectable date) to the plugin like so:
$('selector').datePicker({startDate:'05/03/2006', endDate:'05/11/2006'});*/

//You can additionally pass a value for the first day of the week on the calendars (from 0 for Sunday to 6 for Saturday)
//

	// END DIFFERENT OPTIONS //
}