function setImages() {
	for(i=1;i<5;i++){
		document.getElementById('thumb_'+i).src = eval('thumbImgSrc_'+i);
		}

	document.getElementById('NewsStoryIntro').innerHTML = intro_5 + '<br/><br/><a href="article.asp?id='+ articleID_5 +'"><strong>More</strong></a>';
	document.getElementById('NewsStoryTitle').innerHTML = title_5;
	document.getElementById('large_image_link').href = 'article.asp?id='+ articleID_5
	document.getElementById('main_image').src = largeImgSrc_5;
	}
	
function ImageSwap(intIndex){
	//intIndex 5 is the current main data
	var largeImgSrc_Temp = largeImgSrc_5
	var thumbImgSrc_Temp = thumbImgSrc_5
	var title_Temp = title_5
	var intro_Temp = intro_5
	var articleID_Temp = articleID_5
	
	switch (intIndex){
		case 1:	
			largeImgSrc_5 = largeImgSrc_1;
			thumbImgSrc_5 = thumbImgSrc_1;
			title_5 = title_1;
			intro_5 = intro_1;
			articleID_5 = articleID_1;
			
			largeImgSrc_1 = largeImgSrc_Temp;
			thumbImgSrc_1 = thumbImgSrc_Temp;
			title_1 = title_Temp;
			intro_1 = intro_Temp;
			articleID_1 = articleID_Temp;
			break;
		case 2:
			largeImgSrc_5 = largeImgSrc_2;
			thumbImgSrc_5 = thumbImgSrc_2;
			title_5 = title_2;
			intro_5 = intro_2;
			articleID_5 = articleID_2;
			
			largeImgSrc_2 = largeImgSrc_Temp;
			thumbImgSrc_2 = thumbImgSrc_Temp;
			title_2 = title_Temp;
			intro_2 = intro_Temp;
			articleID_2 = articleID_Temp;	
			break;
		case 3:
			largeImgSrc_5 = largeImgSrc_3;
			thumbImgSrc_5 = thumbImgSrc_3;
			title_5 = title_3;
			intro_5 = intro_3;
			articleID_5 = articleID_3;
			
			largeImgSrc_3 = largeImgSrc_Temp;
			thumbImgSrc_3 = thumbImgSrc_Temp;
			title_3 = title_Temp;
			intro_3 = intro_Temp;
			articleID_3 = articleID_Temp;
			break;
		case 4:
			largeImgSrc_5 = largeImgSrc_4;
			thumbImgSrc_5 = thumbImgSrc_4;
			title_5 = title_4;
			intro_5 = intro_4;
			articleID_5 = articleID_4;
			
			largeImgSrc_4 = largeImgSrc_Temp;
			thumbImgSrc_4 = thumbImgSrc_Temp;
			title_4 = title_Temp;
			intro_4 = intro_Temp;
			articleID_4 = articleID_Temp;
			break;
		}
	
	setImages();
}