	HM_DOM = (document.getElementById)? true : false;
	HM_IE = (document.all)? true : false;
	
	function highlightDivs(divID){
		var theDiv = getDiv(divID);
		if (theDiv == null){
			return;
		} else {
			//theDiv.className = 'overlay highlight';
			theDiv.className = 'highlight';
		}
	}
	
	function unHighlightDivs(divID){
		var theDiv = getDiv(divID);
		if (theDiv == null){
			return;
		} else {
			//theDiv.className = 'overlay';
			theDiv.className = '';
		}
	}
	
	function clearDivs(){
		for (i=0;i<overlayDivs.length;i++){
			//overlayDivs[i].className = 'overlay';
			overlayDivs[i].className = '';
		}
	}

	function showAllDivs(mainID){
		for (x=0;x<10;x++){
			highlightDivs(mainID + "-" + x);
		}
	}

	function hideAllDivs(mainID){
		for (x=0;x<10;x++){
			unHighlightDivs(mainID + "-" + x);
		}
	}
	
	function getOffset(element,value,left){
		if (element.offsetParent != null){
			if (left){
				value = getOffset(element.offsetParent,value,1);
				value+= element.offsetLeft;
			} else {
				value = getOffset(element.offsetParent,value,0);
				value+= element.offsetTop;
			}
		}
		return value;
	}
	
	function adjustOverlays(divName){
		var image = getDiv(divName);
		if (image != null){
			var left = getOffset(image,0,1);
			var top = getOffset(image,0,0);
//			window.alert("image left is " + left + " and top is " + top);
			for (x=0;x<overlayDivs.length;x++){
			/*	var myLeft = getOffset(overlayDivs[x],0,1);
				var myTop = getOffset(overlayDivs[x],0,0);
				window.alert("overlay left is " + myLeft + " and top is " + myTop);*/
				overlayDivs[x].style.left = overlayDivs[x].offsetLeft + left + "px";
				overlayDivs[x].style.top = overlayDivs[x].offsetTop + top + "px";
			/*	overlayDivs[x].style.left = myLeft + left + "px";
				overlayDivs[x].style.top = myTop + top + "px";*/
			}
		}
	}
