var timer;
var AddCol = 0;
function SetAddress(a_top,a_left,a_id,h_top,h_left,h_w,h_h)
{
	AddCol++;
    a_text = document.getElementById("info_block"+a_id).innerHTML;
	
	//document.write('<div style="top:'+h_top+'px; position:absolute; background:red; left:'+h_left+'px; width:'+h_w+'px; height:'+h_h+'px">'+a_text+'</div>');	

	//document.write('<div style="top:'+a_top+'px; position:absolute; background:green; left:'+a_left+'px; width:10px; height:10px"></div>');	
	
	document.write('<div class="address_hover_box" style="top:'+h_top+'px; left:'+h_left+'px; width:'+h_w+'px; height:'+h_h+'px" OnMouseOver="openAddress('+a_id+')" onMouseOut="closeAddress('+a_id+')"></div>');
	document.write('<div class="address_box" style="top:'+a_top+'px; margin-left:'+a_left+'px;" id="address_'+a_id+'" OnMouseOver="clearTimeout(timer)"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="9" height="9"><img src="/Portals/0/address_corner_tl.gif" width="9" height="9"></td>    <td class="addres_box_top"><img src="/Portals/0/spacer.gif" width="9" height="9"></td>    <td width="9" height="9"><img src="/Portals/0/address_corner_tr.gif" width="9" height="9"></td></tr>');
	document.write('<tr><td class="addres_box_left"><img src="/Portals/0/spacer.gif" width="9" height="9"></td><td class="franchise_txt"><div class="address_text">'+a_text+'</div></td><td class="addres_box_right"><img src="/Portals/0/spacer.gif" width="9" height="9"></td></tr>');
	document.write('<tr><td width="9" height="9"><img src="/Portals/0/address_corner_bl.gif" width="9" height="9"></td><td class="addres_box_bottom"><img src="/Portals/0/spacer.gif" width="9" height="9"></td><td width="9" height="9"><img src="/Portals/0/address_corner_br.gif" width="9" height="9"></td></tr></table></div>');
}
function openAddress(a_id)
{
	for (i=1; i<=AddCol; i++) if (i==a_id) ShowBlock('address_'+a_id); else closeAddress(i);
}
function closeAddress(a_id)
{
	timer = window.setTimeout("HideBlock('address_"+a_id+"');",10,"JavaScript");
}
