var PageNo = 1;

var loaded = false;

if (document.images) {
	/* PreCache all images */
	var aryContentImage = new Array();
	aryContentImage[0] = new Image(285,237);
	aryContentImage[1] = new Image(285,197);
	aryContentImage[2] = new Image(285,237);
	aryContentImage[3] = new Image(285,197);
	aryContentImage[4] = new Image(285,197);
	aryContentImage[5] = new Image(285,237);
	
	/* set image path for each photo */
	aryContentImage[0].src = "/portfolio/images/HTI-1.jpg";
	aryContentImage[1].src = "/portfolio/images/HTI-2.jpg";
	aryContentImage[2].src = "/portfolio/images/HTI-3.jpg";
	aryContentImage[3].src = "/portfolio/images/HTI-4.jpg";
	aryContentImage[4].src = "/portfolio/images/HTI-5.jpg";
	aryContentImage[5].src = "/portfolio/images/HTI-6.jpg";
	
	loaded = true;
}// end if
	
var aryContentText = new Array();
	aryContentText[0] = 'Daily deliveries of raw solid core wood slabs from our many suppliers'; 
	aryContentText[1] = 'Primed Wood Doors staged for direct shipment to jobsite';
	aryContentText[2] = 'Pre-machined Wood Doors direct from the mill, staged for jobsite delivery';
	aryContentText[3] = 'Solid Core Wood Doors prepped and staged for direct shipment to jobsite';
	aryContentText[4] = '3-piece Hollow Metal &quot;Drywall&quot; Frames being loaded for jobsite delivery';
	aryContentText[5] = 'Pre-Finished Stained Wood Doors direct from the mill, securely packaged and staged for direct shipment and installation at site by Hardware Tech’s service/installation crew';
	
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;
}

function swap(imageNo){
	swapImage(imageNo);
	swapText(imageNo);
	return;
}


