Hello, I'm wondering if it's possible to setup Zencart to have sub attributes

basically what I need is


And I need these in a drop down list that populates the sub attribute;
for example to match the above layout


The reason I need it like this is because certain colours only have certain sizes available. Where as others might have all sizes available.