determine default language in XSL sheet and apply the 'active' class to the appropriate language strings & media labels, #333
added profiler