function matchHeight(adjustHeight, element){
	 var lis, contLis, maxHeight, liHeight, li;

	 // get all elements in the document
	 lis = document.getElementsByTagName(element);
	 contLis=[];
	 
	 // initialize maximum height value
	 maxHeight=0;
	 
	 // iterate over all elements in the document
	 for(var i = 0; i < lis.length; i++){
	 
		  // make collection with elements with class attribute adjustHeight
		  if(lis[i].className.match(adjustHeight)){
				
				li = lis[i];
				contLis[contLis.length] = li;
				
				// determine height for element
				if(li.offsetHeight){
					 liHeight = li.offsetHeight;
					 //alert("element "+i+" "+liHeight);
				}
				else if(li.style.pixelHeight){
					 liHeight = li.style.pixelHeight;
					 //alert("element "+i+" "+liHeight);
				}
				
				// calculate maximum height
				maxHeight = Math.max(maxHeight,liHeight);
		  } // end if
	 } // end for

	 // assign maximum height value to elements
	 for(var i = 0; i < contLis.length; i++){
		  contLis[i].style.height = (maxHeight) + 'px';
	 }
}  // end mathcHeight function()


// This function performs nearly the exact same tasks as the matchHeight function, except for the 
// fact that the search can be narrowed down to a specific set of elements in a row.
function expandSpecialElements(outterContainer, listItemClassName, listItemElement, subListItemElement){

	var container	= document.getElementById(outterContainer);
	var itemList	= container.getElementsByTagName(listItemElement);
	
	for (var i = 0; i < itemList.length; i++){
		var nodeClass = itemList[i].className;
		var maxHeight = 0;
		var subItemHeight;
		
		if (nodeClass.indexOf(listItemClassName) != -1){
			var subItems = itemList[i].getElementsByTagName(subListItemElement);
			
			for(var j = 0; j < subItems.length; j++){
				
				if(subItems[j].offsetHeight){
					 subItemHeight = subItems[j].offsetHeight;
					 //alert("offsetHeight"+subItemHeight);
				}
				
				else if(subItems[j].style.pixelHeight){
					 subItemHeight = subItems[j].style.pixelHeight;
					 //alert("pixelHeight"+subItemHeight);
				}
				
				maxHeight = Math.max(maxHeight,subItemHeight);
			 }
		
			 for(var k = 0; k < subItems.length; k++){
			 	//alert('expanding element '+k);
			 	if (outterContainer == "enhancements-column" && k>0) {
				subItems[k].style.height = (maxHeight) + 'px';
				}	
			 }
		}
	}
}