Added THEME_STYLE constant for easy checking of the currently selected theme style. CSSORDER also added, but subject to change.
Removed global $pref.