// used in display_partners.php

// puts border on top of image and defines hoverCaption 
function highlightImg(elem, colnum, thistext)
{
	var thisid = "hoverCaption";
	if (colnum > 7) {
		colnum = colnum - 7;
		thisid = "hoverCaption2";
	}
	var thismargin = (92 * (colnum - 1)) + (colnum * 2);
	var thiswidth = "";
	elem.className = "bordertop";
	document.getElementById(thisid).style.marginLeft = thismargin + "px";
	document.getElementById(thisid).innerHTML = thistext;
	if (colnum == 7 && thistext.length > 17) {
		document.getElementById(thisid).style.textAlign = "right";
		document.getElementById(thisid).style.marginLeft = thismargin - 92 + "px";
	} else {
		document.getElementById(thisid).style.textAlign = "left";
	}
	// these didn't get the actual width of the text so used character length as a guess (above)
	//var curr_width = parseInt(document.getElementById(thisid).style.offsetWidth); // removes the "px" at 
	//var curr_width = document.getElementById(thisid).clientWidth; 
	//alert("width=" + curr_width);
	//thiswidth = document.getElementById(thisid).style.width;
	//alert("width=" + thiswidth);
}
function normalImg(elem, colnum)
{
	elem.className = "noborder";
	document.getElementById("hoverCaption").innerHTML = "";
	document.getElementById("hoverCaption2").innerHTML = "";
}

