// -----------------------------------------------
function arrow_hs(id, hid, force_to)
{
	var r = hide_show(hid, false, false, false, force_to);
	if( !(id = $_(id)) ) return null;
    if(id.tagName.toUpperCase() == 'A') id = id.parentNode;
    var c = id.getAttribute('class');
	var s = r ? c.replace('arr_r', 'arr_d') : c.replace('arr_d', 'arr_r');
	id.setAttribute('class', s);
	return r;
}
// -----------------------------------------------
function colapse_blocks(expand)
{
	var cl = expand ? '.arr_d-icon' : '.arr_r-icon';
	$(cl).each(function () {
		if(typeof this.onclick == 'function') this.onclick.call(this);
		else
		{
			var func = arguments.callee;
			$('a', this).each(func);
		}
	});
}
// -----------------------------------------------

