Each page on this site I'm working on uses Stewart Rosenberger's
Dynamic Text Replacement Script to replace the content of h1 and h2 tags with dynamically-generated images (without changing the page structure, for accessibility reasons.)
Normally, a visitor would follow the link for "Text Only" to turn off the image replacement script, and swap the preferred stylesheet with a text-only stylesheet.
However, if a visitor switches to the alternate text stylesheet using their client, the image generator script is not disabled.
What I want to know is, can JavaScript be used to detect the stylesheet that the client is currently using?
If so I will be able to turn off the DTR script, and I won't need to remove the option of having the alternate style sheet.