$(document).ready(function() {
   $(".iso_date").each(function (i) {                // For each element with class iso_date
       if ($(this).text()!="") {                       // Check there is text to manipulate
           var isoDate = $(this).text().split(' ')[0]; // Grab the date only from the date/time
       } else {
           return true;                                // If no text move onto next .iso_date
       }
       isoDate = isoDate.split('-');                   // Split date into 3 tokens
       $(this).text(isoDate[2]+'/'+isoDate[1]+'/'+isoDate[0]); // Set text of current element to format: 28/10/2008
   });

   var isoDateMonthText = ["","January","February","March","April","May","June","July","August","September","October","November","December"];

   $(".iso_date_month").each(function (i) {                // For each element with class iso_date_month
       if ($(this).text()!="") {                       // Check there is text to manipulate
           var isoDateMonth = $(this).text().split(' ')[0]; // Grab the date only from the date/time
       } else {
           return true;                                // If no text move onto next .iso_date_month
       }
       isoDateMonth = isoDateMonth.split('-');                   // Split date into 3 tokens
       if (!((isoDateMonth[1] == 10) ||(isoDateMonth[1] == 11) || (isoDateMonth[1] == 12))) {
	  isoDateMonth[1] = isoDateMonth[1].substring(1,isoDateMonth[1].length);
       }

       $(this).text(isoDateMonthText[isoDateMonth[1]]+' '+isoDateMonth[0]); // Set text of current element to format: October 2008
   });

   $(".iso_date_day_month").each(function (i) {                // For each element with class iso_date_day_month
       if ($(this).text()!="") {                       // Check there is text to manipulate
           var isoDateDayMonth = $(this).text().split(' ')[0]; // Grab the date only from the date/time
       } else {
           return true;                                // If no text move onto next .iso_date_day_month
       }
       isoDateDayMonth = isoDateDayMonth.split('-');                   // Split date into 3 tokens
       if (!((isoDateDayMonth[1] == 10) ||(isoDateDayMonth[1] == 11) || (isoDateDayMonth[1] == 12))) {
	  isoDateDayMonth[1] = isoDateDayMonth[1].substring(1,isoDateDayMonth[1].length);
       }

       $(this).text(isoDateDayMonth[2]+' '+isoDateMonthText[isoDateDayMonth[1]]+' '+isoDateDayMonth[0]); // Set text of current element to format: 28 October 2008
   });


});