// Moo Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Judd Kussrow (http://octopusinc.com)
// Co-author:             Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors

Element.implement({
	tag: function(){
		var 
			ua=navigator.userAgent.toLowerCase(),
			is=function(t){ return ua.indexOf(t) != -1; },
			b=(window.opera)?'opera':(window.webkit420)?'webkit webkit420':(window.webkit419)?'webkit webkit419':(window.webkit)?'webkit':(window.geko)?'gecko':(window.ie7)?'ie ie7':(window.ie6)?'ie ie6':(window.ie)?'ie':'',
			os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
		var c=b+os+' js';
		this.className += this.className?' '+c:c;
		return this;
	}
});

//window.addEvent('domready', function(){ $$('html').tag(); });