$('.ofice').each(function(){
$(this).find('.ofice_status:first').css('display','block');
});
function getSomeHtml() {
return $(this).html();
}
for (var p = 0, len = number.length; p < len; p++) {
if (number[p] == 'Свободен') {
number_js[p] = $('.ofice:eq(' + p + ')>.ofice_number>strong').map(getSomeHtml)[0];
for (var i = 0, len = rsrGroups.length; i < len; i++) {
if (number_js[p] == rsrGroups[i].data("room")) {
rsrGroups[i].attr('fill', '#F4DA6C');
}
}
}
}
number_js[p] = $('.ofice:eq(' + p + ')>.ofice_number>strong').first().html();
for (var i = 0, le = rsrGroups.length; i <= le; i++) {
for (var i = 0, len = rsrGroups.length; i < len; i++) {
if (number_js[p] == rsrGroups[i].data("room")) {
rsrGroups[i].attr('fill', 'red');
}
}