function navSection(destination){

	window.opener.location.href = "catalog/" + destination + ".html";

}

function viewHat(imageSrc, label){

	document.bigHat.src = "../library/hats/big/" + imageSrc + ".png";
	var colorViewed = label;
	var colorLabel = document.getElementById("currentColorLabel");
   	colorLabel.firstChild.nodeValue=colorViewed;

}

function viewAcc(imageSrc, title, subtitle){

	document.acc.src = "../library/hats/big/" + imageSrc + ".png";

   	accessoriesTitle.firstChild.nodeValue=title;
	accessoriesSubtitle.firstChild.nodeValue=subtitle;

}

function viewHatInfo(imageSrc, label, labelHead, subTitleSrc, style1labelSrc, style1textSrc, style2labelSrc, style2textSrc, style3labelSrc, style3textSrc, styleDetailSrc, style4labelSrc, style4textSrc, style5labelSrc, style5textSrc){

	document.bigHat.src = "../library/hats/big/" + imageSrc + ".png";
	var colorViewed = label;
	var colorLabel = document.getElementById("currentColorLabel");
   	colorLabel.firstChild.nodeValue=colorViewed;

	
   	styleLabelHead.firstChild.nodeValue = labelHead;
	subTitleText.firstChild.nodeValue = subTitleSrc;

	styleLabel1Label.firstChild.nodeValue = style1labelSrc;
	styleLabel1Text.firstChild.nodeValue = style1textSrc;

	styleLabel2Label.firstChild.nodeValue = style2labelSrc;
	styleLabel2Text.firstChild.nodeValue = style2textSrc;

	styleLabel3Label.firstChild.nodeValue = style3labelSrc;
	styleLabel3Text.firstChild.nodeValue = style3textSrc;

	styleDetailText.firstChild.nodeValue = styleDetailSrc;

	styleLabel4Label.firstChild.nodeValue = style4labelSrc;
	styleLabel4Text.firstChild.nodeValue = style4textSrc;

	styleLabel5Label.firstChild.nodeValue = style5labelSrc;
	styleLabel5Text.firstChild.nodeValue = style5textSrc;

	

	

}
