﻿$(document).ready(function() {
	$('#pg_news .subtitle').each( function() {
			nDate = $(this).text().substr( ($(this).parent().parent().attr("id") == "newsarticle") ? "7" : "0" ,'10' ).split('-');
			$(this).html(nDate['2'] + '-' + nDate['1'] + '<br /><small>' + nDate['0'] + '</small>');
	});					
	
	$('p.subtitle').corner().css({
								  'padding-top': '0px'
								 ,'padding-left': '5px'
								 ,'padding-right': '5px'
								 });
});
