
var hdrImgBasePath = '/images/header_graphic_main/'

var headerInfoOn = false;

var hdrImgArr = [];

hdrImgArr[0] = []; // Grants
hdrImgArr[0][0] = 'banner_grants_1.jpg';
hdrImgArr[0][1] = 'banner_grants_2.jpg';
hdrImgArr[0][2] = 'banner_grants_3.jpg';
hdrImgArr[0][3] = 'banner_grants_4.jpg';
hdrImgArr[0][4] = 'banner_grants_5.jpg';

hdrImgArr[1] = []; // Fellowships
hdrImgArr[1][0] = 'banner_fellowships_1.jpg';
hdrImgArr[1][1] = 'banner_fellowships_2.jpg';
hdrImgArr[1][2] = 'banner_fellowships_3.jpg';
hdrImgArr[1][3] = 'banner_fellowships_4.jpg';
hdrImgArr[1][4] = 'banner_fellowships_5.jpg';

hdrImgArr[2] = []; // Kress Collection
hdrImgArr[2][0] = 'banner_kress_collection_1.jpg';
hdrImgArr[2][1] = 'banner_kress_collection_2.jpg';
hdrImgArr[2][2] = 'banner_kress_collection_3.jpg';
hdrImgArr[2][3] = 'banner_kress_collection_4.jpg';
hdrImgArr[2][4] = 'banner_kress_collection_5.jpg';

hdrImgArr[3] = []; // News
hdrImgArr[3][0] = 'banner_news_1.jpg';
hdrImgArr[3][1] = 'banner_news_2.jpg';
hdrImgArr[3][2] = 'banner_news_3.jpg';
hdrImgArr[3][3] = 'banner_news_4.jpg';
hdrImgArr[3][4] = 'banner_news_5.jpg';

hdrImgArr[4] = []; // About
hdrImgArr[4][0] = 'banner_about_us_1.jpg';
hdrImgArr[4][1] = 'banner_about_us_2.jpg';
hdrImgArr[4][2] = 'banner_about_us_3.jpg';
hdrImgArr[4][3] = 'banner_about_us_4.jpg';
hdrImgArr[4][4] = 'banner_about_us_5.jpg';

function headerInfo(tS, sce) {

	var headerInfoLayer = document.getElementById('MptHeaderInfo');
	var headerInfoLabel = document.getElementById('MptHeaderInfoLabel');
	
	if (tS == 'show') {
		
		if (headerInfoLayer.style.display != 'block') {
		
			headerInfoLayer.style.visibility = 'visible';
			headerInfoLabel.style.visibility = 'hidden';
			headerInfoOn = true;
			
		}
	
	} else if (tS == 'hide') {
		
		headerInfoLayer.style.visibility = 'hidden';
		headerInfoLabel.style.visibility = 'visible';
		headerInfoOn = false;
			
	}

}

function viewNextHeaderImage() {
	
	var nextImageID;
	var imageCount = (hdrImgArr[currentHeaderImageSection].length - 1);
	if (currentHeaderImageID < imageCount) {
		nextImageID = (currentHeaderImageID + 1);
	} else {
		nextImageID = 0;
	}
	document['MptHeaderMainImage'].src = hdrImgBasePath + hdrImgArr[currentHeaderImageSection][nextImageID];
	currentHeaderImageID = nextImageID;

}
