/*
Description: JavaScript for the MediPAL Custom Theme
Author: James Mansson
Version: 1.1.4

(c) Copyright 2009 GM-RAM Limited
This theme is licensed for the exclusive use of MediPAL Limited.

Change Log
==========

Version		Description
-------		-----------
1.1.0		Removed support for image cycling from theme; now handled by a plugin.
1.1.1		Added limits to length of form fields.
1.1.2		Modified code for rounding corners to take into account new IDs.
1.1.3		Modified code for rounding corners to take into account "widgets" ID.
1.1.4		Modified code for rounding corners to round corners of "sidebar" not "widgets".
*/

jQuery(document).ready(function() {
	// Rounded corners for page sections
	jQuery("#header").corner("round");
	jQuery("#nav").corner("round");
	jQuery("#basket").corner("round");
	jQuery("#sidebar").corner("round");
	jQuery("#column-right").corner("round");
	
	// DOB form field should be a date/time picker
	jQuery("input[name='collected_data[20]']").datepicker({ dateFormat: 'dd/mm/yy', yearRange: '1900:2009' });
	
	// Text form fields should have a maximum length of 50 (except for e-mail field)
	jQuery("input:text[name^='collected_data']").attr('maxlength', 50);
	jQuery("input[name='collected_data[8]']").attr('maxlength', 255);
});
