initScripts.push( function() {
	var article = $$('#articles .article').first();
	
	if ( ! article )
		return;
	
	// this is just for IE, which doesn't work with the
	// :first-child we already use in the CSS
	article.style.borderTopWidth = "0px";
});

function updateCalendarLinks() {
	var ls = $$('.calendarTable .archivesRow A');
	
	ls.each( function( link ) {
		link.observe( 'click', function( e ) {
			var href = e.element().href.replace( /(http:\/\/www.officenewswire.com\/)/, "$1m/" );
			
			new Ajax.Updater( 'archivesPopup', href, {
				method: "get",
				onSuccess: function( t ) {
					window.setTimeout( window.updateCalendarLinks, 1 );
				}
			});
			
			e.stop();
		});
	});
}

initScripts.push( window.updateCalendarLinks );