function hpa_pageLeft(){
	
	if(hpa_currInd > 0){
		
		hpa_currInd = hpa_currInd-hpa_cols;
		
	}
	else{
		
		hpa_currInd = hpa_articles.length - hpa_cols;				
		
	}
	
	changeArticleView();
	
}

function hpa_pageRight(){
	
	if(hpa_currInd < hpa_articles.length - hpa_cols){
		
		hpa_currInd = hpa_currInd+hpa_cols;
		
	}
	else{
		
		hpa_currInd = 0;				
		
	}
	
	changeArticleView();
	
}

function changeArticleView(){
	
	var col1_link_obj = document.getElementById('homePageNewsArticle_link1');
	var col1_teaser_obj = document.getElementById('homePageNewsArticle_teaser1');
	
	var col2_link_obj = document.getElementById('homePageNewsArticle_link2');
	var col2_teaser_obj = document.getElementById('homePageNewsArticle_teaser2');
	
	var col3_link_obj = document.getElementById('homePageNewsArticle_link3');
	var col3_teaser_obj = document.getElementById('homePageNewsArticle_teaser3');
		
	col1_link_obj.href = hpa_articles[hpa_currInd][2];
	col1_link_obj.innerHTML = hpa_articles[hpa_currInd][0];
	
	col1_teaser_obj.innerHTML = hpa_articles[hpa_currInd][1];
	
	col2_link_obj.href = hpa_articles[hpa_currInd+1][2];
	col2_link_obj.innerHTML = hpa_articles[hpa_currInd+1][0];
	
	col2_teaser_obj.innerHTML = hpa_articles[hpa_currInd+1][1];
	
	col3_link_obj.href = hpa_articles[hpa_currInd+2][2];
	col3_link_obj.innerHTML = hpa_articles[hpa_currInd+2][0];
	
	col3_teaser_obj.innerHTML = hpa_articles[hpa_currInd+2][1];
	
}


