Object.extend(Date, {
	/*
	 *parses date from seagull cms which is in a different (UK) format 
	 *dates in format:YYYY-MM-DD HH:MM:SS
	*/
	parseCmsDate : function(v_date_string) {
		if (v_date_string) {
			aDate = v_date_string.split(' ');
			aDate_h = aDate[0].split('-');//splits up YYYY-MM-DD
			aDate_l = aDate[1].split(':');//splits up HH:DD:SS
			
			return Date.parse(aDate_h[1]+"/"+aDate_h[2]+"/"+aDate_h[0]+" "+aDate[1]);
		} else {
			return false;
		}
	}	
});

Object.extend(Date.prototype, {
	/*
	 *over-rides the default to string method to not show all the minutes and seconds garbage
	*/
	toStringNice : function() {
		var aDate = this.toString().split(' ');
		
		return aDate[0] + ' ' + aDate[1] + ' ' + aDate[2] + ' ' + aDate[3];
	}
});