//*---------------------------------------------*
//* Create the static object and find versions. *
//*---------------------------------------------*
var Version        = new Object;
	a              = navigator.userAgent;
	ie             = a.indexOf("MSIE");
//*-----------------------------------------------------------------*
//* Netscape - If "Gecko" is found, version follows the last slash. *
//*            If no "Gecko", version follows "Mozilla/".           *
//*    Note:   IE  also  contains "Mozilla/" so its Netscape        *
//*            only if it does not contain "MSIE".                  *
//*-----------------------------------------------------------------*
Version.Netscape   = a.indexOf("Gecko")+1 ? 
					 parseFloat(a.substring(a.lastIndexOf("/")+1))
				   : a.indexOf("Mozilla")+1 && !(ie+1) ? 
					 parseFloat(a.substring(a.indexOf("/")+1,a.indexOf
(" ")))
				   : 0;

//*----------------------------------*
//* MSIE - Format is "MSIE version;" *
//*----------------------------------*
Version.MSIE       = ie+1 
				   ? parseFloat(a.substring(ie+5,a.indexOf(";",ie+5))) 
				   : 0;

//*-------------------------------------------------------*
//* JavaScript - Version determined by available methods. *
//*-------------------------------------------------------*
Version.JavaScript = window.clearInterval ? 1.2 : window.blur ? 1.1 : 1.0;
delete a;
delete ie;

//*----------------------------*
//* Version Comparison Methods *
//*----------------------------*

Version.IE = function(V) { return((V <= this.MSIE)     || (!V && this.MSIE)     ? true : false); }
Version.JS = function(V) { return( V <= this.JavaScript                         ? true : false); }
Version.NS = function(V) { return((V <= this.Netscape) || (!V && this.Netscape) ? true : false); }
