var PageNo = 1;

var loaded = false;

if (document.images) {
	/* PreCache all images */
	var aryContentImage = new Array();
	aryContentImage[0] = new Image(320,250);
	aryContentImage[1] = new Image(339,250);
	aryContentImage[2] = new Image(241,250);
	aryContentImage[3] = new Image(266,250);
	aryContentImage[4] = new Image(362,250);
	
	/* set image path for each photo */
	aryContentImage[0].src = "/portfolio/images/HM-Frame1.jpg";
	aryContentImage[1].src = "/portfolio/images/HM-Frame3.jpg";
	aryContentImage[2].src = "/portfolio/images/HM-Frame4.jpg";
	aryContentImage[3].src = "/portfolio/images/HM-Frame5.jpg";
	aryContentImage[4].src = "/portfolio/images/HTI-5.jpg";
	
	loaded = true;
}// end if
	
var aryContentText = new Array();
	aryContentText[0] = 'Custom Hollow Metal Door Frame with Transom and Sidelites. Square and dimensionally true to insure proper fit and function.'; 
	aryContentText[1] = 'Custom 3070 16GA Hollow Metal Frame with (2) three tiered 3020 left-side sidelites x Welded one-piece units';
	aryContentText[2] = 'Custom 3070 16GA Hollow Metal Frame with (1) three tiered 2020 left-side sidelite x Welded one-piece unit';
	aryContentText[3] = 'Custom 3070 16GA Hollow Metal Frame with (2) three tiered 3020 left-side sidelites x Welded one-piece units';
	aryContentText[4] = '3-Piece Drywall Hollow Metal Frames being loaded for HTI direct shipment to jobsite';
	
function swapImage(imageNo) {
	var contentId = document.getElementById('contentImage');
	var content = aryContentImage[imageNo].src;
	contentId.src = content; 
}

function swapText(imageNo) {
	var contentId = document.getElementById('contentText');
	var content = aryContentText[imageNo];
	contentId.innerHTML = content;
	/*alert(content);*/
}

function swap(imageNo){
	swapImage(imageNo);
	swapText(imageNo);
	return;
}


