for example, just before the end of `SMIL_parseHandleParTag`: 
```javascript
attachmentsNotFound = (attachment === null);
```

I'd prefer this because this way we'd set and use this boolean only in this function.

`attachment` will be `undefined` if we get neither a media nor a text. BTW, is that possible or should that be an error case too ?