WE.AddReady(function()
{
    $$('.table').each(function(table)
    {
        var firstrow = table.getElement('tr');
        firstrow.addClass('head');
        
        table.getElements('tr').each(function(tr)
        {
            if(tr.getElement('td'))
            {
                tr.getElement('td').addClass('first');
            }
        });
    });
});