Что делает эта функция?
function
clearMap(visible)
{
for ( var id = 0; id < b_adverts.length; id++)
{
if (null != b_adverts[id]) b_adverts[id].setVisible (visible);
if (null != e_adverts[id]) e_adverts[id].setVisible (visible);
}
for (var ovr = 0; ovr < i_adverts.length; ovr++) i_adverts[ovr].close();
if (visible)
{
El('adverts_line').style.visibility = 'visible';
}
else
{
El('adverts_line').style.visibility = 'hidden';
}
}