Item 12 Months Number of months is set to 12
Item [3,4] Months Number of months is set to [3,4]
For item Right of left a dynamic action on page load is used
to set the option isRTL to true.
The javascript code is
apex.jQuery('#P17_RTL').datepicker("option","isRTL",true);