// JavaScript Document
window.onload = function(){

		if(typeof markers!='undefined'){
			for(c=0;c<markers.length;c++){
				map.addOverlay(markers[c]);
			}

			for(var ids in company_ids)
			{
				var divId =	"paid_items_div_"+ company_ids[ids] ;
				var currentDiv = document.getElementById(divId) ;
				currentDiv.setAttribute("markerId",ids) ;
				currentDiv.onmouseover = function(){
					var marker = markers[this.getAttribute("markerId")] ;
					marker.setImage(overIcon);
				}
				currentDiv.onmouseout =  function(){
					var marker = markers[this.getAttribute("markerId")] ;
					marker.setImage(outIcon);
				}
			
				GEvent.addListener(markers[ids], "mouseover", CreateCustomFunctionToHighlight(divId));
				GEvent.addListener(markers[ids], "mouseout", CreateCustomFunctionToUnhighlight(divId));
			}
		}
		
}
function CreateCustomFunctionToHighlight(divId)
{
	return new Function("document.getElementById('"+divId +"').style.fontWeight='bold';") ;
}
function CreateCustomFunctionToUnhighlight(divId)
{
   return new Function("document.getElementById('"+divId +"').style.fontWeight='normal';") ;
}