} else if (obj instanceof PageRule) {
((PageRule)obj).setPos(++pCount);
_pageRules.add(obj);
} else if (obj instanceof MediaRule) {
MediaRule mediaRule = (MediaRule)obj;
if (mediaRule.matches(medium)) {
for (Iterator k = mediaRule.getContents().iterator(); k.hasNext(); ) {
Ruleset ruleset = (Ruleset)k.next();
for (Iterator l = ruleset.getFSSelectors().iterator(); l.hasNext(); ) {
Selector selector = (Selector)l.next();
selector.setPos(++count);