var number = $('.ofice .ofice_status').map(function() {
return $(this).html();
});
var number_js = [];
for (var p = 0, len = number.length; p <= len; p++) {
if (number[p] == 'Свободен') {
number_js[p] = $('.ofice:eq(' + p + ')>.ofice_number>a').map(function() {
return $(this).html();
})[0];
for (var i = 0, le = rsrGroups.length; i <= le; i++) {
// console.log(number_js[p]);
// console.log(rsrGroups[i].data("room"));
if (number_js[p]==rsrGroups[i].data("room")) {
rsrGroups[i].attr('fill','red');
}
}
}
}