// Copyright (c) 2001 thinkgiant.com  All rights reserved.				 
// Developer: Kevin Rose												 
// Email: kevin@thinkgiant.com											 
// visit http://www.thinkgiant.com, our innovation becomes your success! 														 
// NOTE to developers: you may use this code freely as long as these	 
// comments are NOT omitted.											 
											 
function browserDetect() {
	var an = navigator.appName;
	var v = navigator.userAgent;
	if (an == "Netscape") {
		this.type = "nn";
		this.version = parseInt(v);		
		this.shortName="nn";
		if (document.getElementById) {
			this.version = 6;	
			this.shortName="nn6";	
		}
	}
	else if (an == "Microsoft Internet Explorer") {
		if (v.indexOf("Opera")>-1) {
			this.type = "op";
			this.version = parseInt(v);
		}
		else {
			var iStart = v.indexOf("MSIE") + 5;
			var iEnd = iStart + 1;		
			this.type = "ie";	
			this.version = v.substring(iStart,iEnd);	
		}
		this.shortName = this.type;
	}
	else {
		this.type = "unknown";
		this.version = 0;		
		this.shortName = "";
	}
}
var browser = new browserDetect();
var bType = browser.type;
var bVersion = browser.version;
var bN = browser.shortName;

