function get_news_3(year, id, type, number_articles, link_to){

	$(document).ready(function()
	{
			// ajax to retrieve xml for press and news but only limited amount
			// for home page and news and press page
			
		        $.get('includes/'+type+'_'+year+'.xml', function(d){
		        	        
					i = 1;
					
			        $(d).find('article').each(function(){
						
						if(i <= number_articles){
			            var $article = $(this); 
			            var date = $article.find('article_date').text();
			            var title = $article.find('article_title').text();
			            var subtitle = $article.find('article_subtitle').text();
			            
			            var content = $article.find('article_content').text();
						var html = '<p class="date">'+date+'</p>';
			            html += '<p><a href="'+link_to+'">'+title+'</a></p>';
			
			            $(id).append($(html));
			            
			            $('.loadingPic').fadeOut(1400);
			            		            
			            i++;
			            }
			        });
			    });
	});
	
};