function browseCap()	{	this.browser = null;	this.platform = null;	this.version = null;	this.seed = seedBrowseCap;	}function seedBrowseCap()	{	var ua = navigator.userAgent;	//grab the platform	if (navigator.platform.indexOf('Win') >=0)	{		this.platform = "Windows";		} else if (navigator.platform.indexOf('Mac') >=0)	{		this.platform = "Mac";		} else if (navigator.platform.indexOf('X11') >=0)	{		this.platform = "Linux";		this.browser = "Netscape";		} else	{		this.platform = navigator.platform;		}	//grab the browser	if (this.platform != "Linux")	{		if (navigator.appName == 'Netscape')	{			this.browser = 'Netscape';			} else	{			if (ua.indexOf('MSIE') >=0)	{				this.browser = "IE";				}			if (ua.indexOf('Opera') >=0)	{				this.browser = "Opera";				} 			}		}	//grab the version number	if (this.browser == "Netscape")	{		if (parseInt(navigator.appVersion) == 5)	{			this.version = 6;			} else	{				this.version = parseInt(navigator.appVersion);				if (ua.indexOf('zilla/4.01') >= 0)	{					this.version = 4.01;					} else if (ua.indexOf('zilla/4.04') >=0)	{					this.version = 4.04;					} else if (ua.indexOf('zilla/4.03') >= 0)	{					this.version = 4.03;					} else if (ua.indexOf('zilla/4.61') >= 0)	{					this.version = 4.61;					} else if (ua.indexOf('zilla/4.72') >= 0)	{					this.version = 4.72;					} else if (ua.indexOf('zilla/4.73') >= 0)	{					this.version = 4.73;					} else if (ua.indexOf('zilla/4.76') >= 0)	{					this.version = 4.76;					} else if (ua.indexOf('zilla/4.78') >= 0)	{					this.version = 4.78;					}			}		} else if (this.browser == "IE")	{			this.version = 3;			if (ua.indexOf('MSIE 4') >=0)	{				this.version = 4;				if (ua.indexOf('MSIE 4.5') >= 0)	{					this.version = '4.5';					this.platform = 'Mac';					}				}			if (ua.indexOf('MSIE 5') >=0)	{				this.version = 5;				if (ua.indexOf('MSIE 5.5') >=0)	{					this.version = 5.5;					}				}			if (ua.indexOf('MSIE 6') >=0)	{				this.version = 6;				}		} else	{			this.version = parseInt(navigator.appVersion);			}	}		var bc = new browseCap();	bc.seed();