(function($) {
	if (typeof $.validator == 'object')
	{
		$.validator.defaultErrorMessages = {
			required: 	'Please fill in the above field',
			requiredby: 'Please fill in the above field',
			postcode: 	'Invalid zipcode',
			email: 		'Invalid e-mailaddress',
			emailunique:'E-mailaddress is already registered',
			loginunique:'Username is already registered',
			select: 	'Please select an option',
			time:		'Invalid time',
			date: 		'Invalid date',
			mindate:	'Date is too far in the past',
			maxdate:	'Date is too far in the future',
			phone:		'Please enter a valid phonenumber',
			minlength: 	'Entered text is too short',
			maxlength:	'Entered text is too long',
			minvalue:	'Bigger value expected',
			maxvalue:	'Smaller value expected',
			pattern:	'Invalid value',
			equalto:	'Fields are not equal',
			user:		'Invalid username',
			website:	'Invalid website address. An address has to start with http://',
			name:		'Use of invalid characters in name',
			unique:		'Duplicate value',
			chars:		'Only characters allowed',
			numeric:	'Only numbers allowed',
			bank:		'Invalid banknumber',
			greater:	'Value is bigger than the related value',
			less:		'Value is smaller than the related value',
			file: {
				image:	'File is not a valid image (supported formats: jpg/png/gif)',
				doc:	'File is not a valid document (supported formats: doc/xls/pdf)',
				video:	'File is not a valid movie (supported formats: mov/avi/wmv/mpg)'
			},
			ajax:		'An error accured while validating this field. Please try again. When you keep getting this error, please contact the owner of this website.'
		};
	}
})(jQuery);
