function msg(text) { $("#log").prepend(text + "<br/>"); }
var sess = wialon.core.Session.getInstance();
var unit_flags = wialon.util.Number.or(wialon.item.Item.dataFlag.base),
res_flags = wialon.util.Number.or(wialon.item.Item.dataFlag.base, wialon.item.Resource.dataFlag.drivers);
sess.loadLibrary("resourceDrivers");
sess.loadLibrary("itemIcon");
[{type: "type", data: "avl_unit", flags: unit_flags, mode: 0},
{type: "type", data: "avl_resource", flags: res_flags, mode: 0}],