$(document).ready(function() {
$('.week-days td').click(function() {
var num = $(this).index();
if (num != 0) {
$('.days tr').find('td:eq('+num+')').each(function() {
if ($(this).parent().index() != 0) {
$(this).addClass('busy-day')
}
});
}
});
$('.days tr td:first-child').click(function() {
var trNum = $(this).parent().index();
if (trNum != 0) {
$('.days tr:eq('+trNum+')').find('td').each(function() {
if ($(this).index() != 0) {
$(this).addClass('busy-day');
}
})
}
});
});