// http://www.dithered.com/javascript/browser_detect/index.html
// Modified by Chris Nott (chris_at_dithered.com - replace _at_ by @)
// Lighten for vossey.com by Darck

function BrowserDetectLite() {
	var ua = navigator.userAgent.toLowerCase(); 
	this.isIE		  = ( (ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && (ua.indexOf('webtv') == -1) ); 
	this.isOpera	  = (ua.indexOf('opera') != -1); 	
	if (this.isIE && this.versionMinor >= 4) {
		this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
	}
	else if (this.isOpera) {
		if (ua.indexOf('opera/') != -1) {
			this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera/') + 6 ) );
		}
		else {
			this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera ') + 6 ) );
		}
	}
	this.versionMajor = parseInt(this.versionMinor); 
	this.isDOM1 = (document.getElementById);
	this.isMac	= (ua.indexOf('mac') != -1);
}
var browser = new BrowserDetectLite();
