Does anyone have an idea how to sniff the layout engine by javascript? We know Gecko is for FF and Trident is for IE (windows) and Tasman for IE(Mac), however how can we use js to detect them? It's not a good idea to map the result directly according to the browser and os, but I have no other choice so far.