// Sitewide Javascript Functions


// changes color to #FFFFFF of whatever id element it gets
function brightenById(strElmtId) {
	document.getElementById(strElmtId).style.color="#FFFFFF";
}

function boldenById(strElmtId) {
	document.getElementById(strElmtId).style.color="#FFFFFF";
	document.getElementById(strElmtId).style.fontWeight="bold";
}

function darkenById(strElmtId) {
	if (document.getElementById(strElmtId)) {
	document.getElementById(strElmtId).style.color="#CCCCCC";
	document.getElementById(strElmtId).style.fontWeight="";
	}
}

function setPortImg(objImage,strFolder,strTitle) {
	document.getElementById("id_k12").style.borderColor="#29292a";
	document.portBig.src=strFolder+'/sectorpic.jpg';
	document.getElementById("portBigText").innerHTML=strTitle;
	objImage.style.borderColor="#cccccc";
}

function setBorderColor(objImage,strColor) {
	objImage.style.borderColor=strColor;
}

function setImage(intImgNum) {
	for (i=1;i<13;i++) {darkenById("choosepic_"+i);}
	document.prjImage.src=prjimg[intImgNum].src;
	if (typeof(prjcap[intImgNum])=="string") {document.getElementById("caption").innerHTML=prjcap[intImgNum];} else {document.getElementById("caption").innerHTML="&nbsp;";}
	boldenById("choosepic_"+intImgNum);
}