hlColor = "#ffffff";
offColor = "#222222";


function hl( tgt, state )
{
  if (document.getElementById) {
  		var txt = document.getElementById("txt_"+tgt);
			var tn 	 = document.getElementById("tn_"+tgt);
			
			if (state == "on"){
				 	 //console.log("over");
					 txt.style.background = hlColor;
					 txt.style.color = offColor;
					 tn.style.border = "1px solid "+ hlColor;
			}
				
			else if (state == "off")
			{
			 		 txt.style.background = "";
					 txt.style.color = hlColor;
					 tn.style.border = "1px solid "+ offColor;
			}
			
			
			
			//.style.color = (state == 1 ? '#ffa3d1' : '#fff');
  		//document.getElementById("borderimage"+id).style.border = (state == 1 ? '1px solid #ffa3d1' : '1px solid #2159A3');
    }
}


function hm( tgt, state )
{
  if (document.getElementById) {
  		var txt = document.getElementById("txt_"+tgt);
			var tn 	 = document.getElementById("map_"+tgt);
			
			if (state == "on"){
					 txt.style.background = hlColor;
					 txt.style.color = offColor;
					 changeImages(tgt, 'mapimgs/'+tgt+'-over.jpg')
			}
				
			else if (state == "off")
			{
			 		 txt.style.background = "";
					 txt.style.color = hlColor;
					 changeImages(tgt, 'mapimgs/'+tgt+'.jpg')
			}
			
    }
}
